mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Darwin patch (initial patch by Pierre d'Herbemont)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@980 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1d43a71773
commit
83fb7adf6c
14 changed files with 185 additions and 106 deletions
|
@ -1955,24 +1955,6 @@ void OPPROTO op_fldcw_A0(void)
|
|||
int rnd_type;
|
||||
env->fpuc = lduw((void *)A0);
|
||||
/* set rounding mode */
|
||||
#ifdef _BSD
|
||||
switch(env->fpuc & RC_MASK) {
|
||||
default:
|
||||
case RC_NEAR:
|
||||
rnd_type = FP_RN;
|
||||
break;
|
||||
case RC_DOWN:
|
||||
rnd_type = FP_RM;
|
||||
break;
|
||||
case RC_UP:
|
||||
rnd_type = FP_RP;
|
||||
break;
|
||||
case RC_CHOP:
|
||||
rnd_type = FP_RZ;
|
||||
break;
|
||||
}
|
||||
fpsetround(rnd_type);
|
||||
#else
|
||||
switch(env->fpuc & RC_MASK) {
|
||||
default:
|
||||
case RC_NEAR:
|
||||
|
@ -1989,7 +1971,6 @@ void OPPROTO op_fldcw_A0(void)
|
|||
break;
|
||||
}
|
||||
fesetround(rnd_type);
|
||||
#endif
|
||||
}
|
||||
|
||||
void OPPROTO op_fclex(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue