Commit 9c2b428ee169dfbc92664f06e466a8bb0f45c702
1 parent
66d4557e
Fix compilation and warnings on PPC host
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3746 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
21 additions
and
1 deletions
target-sparc/exec.h
@@ -71,13 +71,14 @@ void do_fcmpes(void); | @@ -71,13 +71,14 @@ void do_fcmpes(void); | ||
71 | void do_fcmped(void); | 71 | void do_fcmped(void); |
72 | #if defined(CONFIG_USER_ONLY) | 72 | #if defined(CONFIG_USER_ONLY) |
73 | void do_fitoq(void); | 73 | void do_fitoq(void); |
74 | -void do_fabsq(void); | ||
75 | void do_fsqrtq(void); | 74 | void do_fsqrtq(void); |
76 | void do_fcmpq(void); | 75 | void do_fcmpq(void); |
77 | void do_fcmpeq(void); | 76 | void do_fcmpeq(void); |
78 | #endif | 77 | #endif |
79 | #ifdef TARGET_SPARC64 | 78 | #ifdef TARGET_SPARC64 |
80 | void do_fabsd(void); | 79 | void do_fabsd(void); |
80 | +void do_fxtos(void); | ||
81 | +void do_fxtod(void); | ||
81 | void do_fcmps_fcc1(void); | 82 | void do_fcmps_fcc1(void); |
82 | void do_fcmpd_fcc1(void); | 83 | void do_fcmpd_fcc1(void); |
83 | void do_fcmps_fcc2(void); | 84 | void do_fcmps_fcc2(void); |
@@ -91,6 +92,8 @@ void do_fcmped_fcc2(void); | @@ -91,6 +92,8 @@ void do_fcmped_fcc2(void); | ||
91 | void do_fcmpes_fcc3(void); | 92 | void do_fcmpes_fcc3(void); |
92 | void do_fcmped_fcc3(void); | 93 | void do_fcmped_fcc3(void); |
93 | #if defined(CONFIG_USER_ONLY) | 94 | #if defined(CONFIG_USER_ONLY) |
95 | +void do_fabsq(void); | ||
96 | +void do_fxtoq(void); | ||
94 | void do_fcmpq_fcc1(void); | 97 | void do_fcmpq_fcc1(void); |
95 | void do_fcmpq_fcc2(void); | 98 | void do_fcmpq_fcc2(void); |
96 | void do_fcmpq_fcc3(void); | 99 | void do_fcmpq_fcc3(void); |
target-sparc/op_helper.c
@@ -70,6 +70,14 @@ void do_fitod(void) | @@ -70,6 +70,14 @@ void do_fitod(void) | ||
70 | { | 70 | { |
71 | DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status); | 71 | DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status); |
72 | } | 72 | } |
73 | + | ||
74 | +#if defined(CONFIG_USER_ONLY) | ||
75 | +void do_fitoq(void) | ||
76 | +{ | ||
77 | + QT0 = int32_to_float128(*((int32_t *)&FT1), &env->fp_status); | ||
78 | +} | ||
79 | +#endif | ||
80 | + | ||
73 | #ifdef TARGET_SPARC64 | 81 | #ifdef TARGET_SPARC64 |
74 | void do_fxtos(void) | 82 | void do_fxtos(void) |
75 | { | 83 | { |
@@ -84,6 +92,15 @@ void do_fxtod(void) | @@ -84,6 +92,15 @@ void do_fxtod(void) | ||
84 | DT0 = int64_to_float64(*((int64_t *)&DT1), &env->fp_status); | 92 | DT0 = int64_to_float64(*((int64_t *)&DT1), &env->fp_status); |
85 | check_ieee_exceptions(); | 93 | check_ieee_exceptions(); |
86 | } | 94 | } |
95 | + | ||
96 | +#if defined(CONFIG_USER_ONLY) | ||
97 | +void do_fxtoq(void) | ||
98 | +{ | ||
99 | + set_float_exception_flags(0, &env->fp_status); | ||
100 | + QT0 = int64_to_float128(*((int32_t *)&DT1), &env->fp_status); | ||
101 | + check_ieee_exceptions(); | ||
102 | +} | ||
103 | +#endif | ||
87 | #endif | 104 | #endif |
88 | #endif | 105 | #endif |
89 | 106 |