Commit 9c2b428ee169dfbc92664f06e466a8bb0f45c702

Authored by blueswir1
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
target-sparc/exec.h
... ... @@ -71,13 +71,14 @@ void do_fcmpes(void);
71 71 void do_fcmped(void);
72 72 #if defined(CONFIG_USER_ONLY)
73 73 void do_fitoq(void);
74   -void do_fabsq(void);
75 74 void do_fsqrtq(void);
76 75 void do_fcmpq(void);
77 76 void do_fcmpeq(void);
78 77 #endif
79 78 #ifdef TARGET_SPARC64
80 79 void do_fabsd(void);
  80 +void do_fxtos(void);
  81 +void do_fxtod(void);
81 82 void do_fcmps_fcc1(void);
82 83 void do_fcmpd_fcc1(void);
83 84 void do_fcmps_fcc2(void);
... ... @@ -91,6 +92,8 @@ void do_fcmped_fcc2(void);
91 92 void do_fcmpes_fcc3(void);
92 93 void do_fcmped_fcc3(void);
93 94 #if defined(CONFIG_USER_ONLY)
  95 +void do_fabsq(void);
  96 +void do_fxtoq(void);
94 97 void do_fcmpq_fcc1(void);
95 98 void do_fcmpq_fcc2(void);
96 99 void do_fcmpq_fcc3(void);
... ...
target-sparc/op_helper.c
... ... @@ -70,6 +70,14 @@ void do_fitod(void)
70 70 {
71 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 81 #ifdef TARGET_SPARC64
74 82 void do_fxtos(void)
75 83 {
... ... @@ -84,6 +92,15 @@ void do_fxtod(void)
84 92 DT0 = int64_to_float64(*((int64_t *)&DT1), &env->fp_status);
85 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 104 #endif
88 105 #endif
89 106  
... ...