diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-10-28 23:06:17 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-10-28 23:06:17 +0000 |
commit | 9951bf39f90519a2a2eb3809eb13a27471b9398d (patch) | |
tree | b57278f408e3c9b8c27c152e2a4fa7dece1f3b96 /target-i386/op.c | |
parent | 8948b5d6136eb0d338a71f94f5d607dd353c421d (diff) |
fixed long double accesses when using soft MMU
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@428 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/op.c')
-rw-r--r-- | target-i386/op.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/target-i386/op.c b/target-i386/op.c index 0f4dbd18e2..f1276f7a64 100644 --- a/target-i386/op.c +++ b/target-i386/op.c @@ -1471,21 +1471,10 @@ void OPPROTO op_fldl_ST0_A0(void) env->fptags[new_fpstt] = 0; /* validate stack entry */ } -#ifdef USE_X86LDOUBLE -void OPPROTO op_fldt_ST0_A0(void) -{ - int new_fpstt; - new_fpstt = (env->fpstt - 1) & 7; - env->fpregs[new_fpstt] = *(long double *)A0; - env->fpstt = new_fpstt; - env->fptags[new_fpstt] = 0; /* validate stack entry */ -} -#else void OPPROTO op_fldt_ST0_A0(void) { helper_fldt_ST0_A0(); } -#endif /* helpers are needed to avoid static constant reference. XXX: find a better way */ #ifdef USE_INT_TO_FLOAT_HELPERS @@ -1595,17 +1584,10 @@ void OPPROTO op_fstl_ST0_A0(void) stfq((void *)A0, (double)ST0); } -#ifdef USE_X86LDOUBLE -void OPPROTO op_fstt_ST0_A0(void) -{ - *(long double *)A0 = ST0; -} -#else void OPPROTO op_fstt_ST0_A0(void) { helper_fstt_ST0_A0(); } -#endif void OPPROTO op_fist_ST0_A0(void) { |