Commit 2d8ee4e7193806d1c7f6bf2f06af118f9bc2a633
1 parent
ad8efe4b
Fix Sparc host compile problem reported by Shaddy Baddah
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3750 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
31 additions
and
0 deletions
target-alpha/op_helper.c
... | ... | @@ -1072,6 +1072,23 @@ void helper_mtpr (int iprn) |
1072 | 1072 | } |
1073 | 1073 | #endif |
1074 | 1074 | |
1075 | +#if defined(HOST_SPARC) || defined(HOST_SPARC64) | |
1076 | +void helper_reset_FT0 (void) | |
1077 | +{ | |
1078 | + FT0 = 0; | |
1079 | +} | |
1080 | + | |
1081 | +void helper_reset_FT1 (void) | |
1082 | +{ | |
1083 | + FT1 = 0; | |
1084 | +} | |
1085 | + | |
1086 | +void helper_reset_FT2 (void) | |
1087 | +{ | |
1088 | + FT2 = 0; | |
1089 | +} | |
1090 | +#endif | |
1091 | + | |
1075 | 1092 | /*****************************************************************************/ |
1076 | 1093 | /* Softmmu support */ |
1077 | 1094 | #if !defined (CONFIG_USER_ONLY) | ... | ... |
target-alpha/op_helper.h
... | ... | @@ -138,3 +138,9 @@ void helper_mtpr (int iprn); |
138 | 138 | void helper_ld_phys_to_virt (void); |
139 | 139 | void helper_st_phys_to_virt (void); |
140 | 140 | void helper_tb_flush (void); |
141 | + | |
142 | +#if defined(HOST_SPARC) || defined(HOST_SPARC64) | |
143 | +void helper_reset_FT0 (void); | |
144 | +void helper_reset_FT1 (void); | |
145 | +void helper_reset_FT2 (void); | |
146 | +#endif | ... | ... |
target-alpha/op_template.h
... | ... | @@ -26,11 +26,19 @@ void OPPROTO glue(op_reset_T, REG) (void) |
26 | 26 | RETURN(); |
27 | 27 | } |
28 | 28 | |
29 | +#if !defined(HOST_SPARC) && !defined(HOST_SPARC64) | |
29 | 30 | void OPPROTO glue(op_reset_FT, REG) (void) |
30 | 31 | { |
31 | 32 | glue(FT, REG) = 0; |
32 | 33 | RETURN(); |
33 | 34 | } |
35 | +#else | |
36 | +void OPPROTO glue(op_reset_FT, REG) (void) | |
37 | +{ | |
38 | + glue(helper_reset_FT, REG)(); | |
39 | + RETURN(); | |
40 | +} | |
41 | +#endif | |
34 | 42 | |
35 | 43 | /* XXX: This can be great on most RISC machines */ |
36 | 44 | #if !defined(__i386__) && !defined(__x86_64__) | ... | ... |