Fix compilation and warnings on PPC host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3746 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2007-11-28 18:08:28 +00:00
parent 66d4557ec6
commit 9c2b428ee1
2 changed files with 21 additions and 1 deletions

View File

@ -71,13 +71,14 @@ void do_fcmpes(void);
void do_fcmped(void); void do_fcmped(void);
#if defined(CONFIG_USER_ONLY) #if defined(CONFIG_USER_ONLY)
void do_fitoq(void); void do_fitoq(void);
void do_fabsq(void);
void do_fsqrtq(void); void do_fsqrtq(void);
void do_fcmpq(void); void do_fcmpq(void);
void do_fcmpeq(void); void do_fcmpeq(void);
#endif #endif
#ifdef TARGET_SPARC64 #ifdef TARGET_SPARC64
void do_fabsd(void); void do_fabsd(void);
void do_fxtos(void);
void do_fxtod(void);
void do_fcmps_fcc1(void); void do_fcmps_fcc1(void);
void do_fcmpd_fcc1(void); void do_fcmpd_fcc1(void);
void do_fcmps_fcc2(void); void do_fcmps_fcc2(void);
@ -91,6 +92,8 @@ void do_fcmped_fcc2(void);
void do_fcmpes_fcc3(void); void do_fcmpes_fcc3(void);
void do_fcmped_fcc3(void); void do_fcmped_fcc3(void);
#if defined(CONFIG_USER_ONLY) #if defined(CONFIG_USER_ONLY)
void do_fabsq(void);
void do_fxtoq(void);
void do_fcmpq_fcc1(void); void do_fcmpq_fcc1(void);
void do_fcmpq_fcc2(void); void do_fcmpq_fcc2(void);
void do_fcmpq_fcc3(void); void do_fcmpq_fcc3(void);

View File

@ -70,6 +70,14 @@ void do_fitod(void)
{ {
DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status); DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status);
} }
#if defined(CONFIG_USER_ONLY)
void do_fitoq(void)
{
QT0 = int32_to_float128(*((int32_t *)&FT1), &env->fp_status);
}
#endif
#ifdef TARGET_SPARC64 #ifdef TARGET_SPARC64
void do_fxtos(void) void do_fxtos(void)
{ {
@ -84,6 +92,15 @@ void do_fxtod(void)
DT0 = int64_to_float64(*((int64_t *)&DT1), &env->fp_status); DT0 = int64_to_float64(*((int64_t *)&DT1), &env->fp_status);
check_ieee_exceptions(); check_ieee_exceptions();
} }
#if defined(CONFIG_USER_ONLY)
void do_fxtoq(void)
{
set_float_exception_flags(0, &env->fp_status);
QT0 = int64_to_float128(*((int32_t *)&DT1), &env->fp_status);
check_ieee_exceptions();
}
#endif
#endif #endif
#endif #endif