mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
fixed long double accesses when using soft MMU
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@428 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8948b5d613
commit
9951bf39f9
3 changed files with 150 additions and 137 deletions
|
@ -1318,7 +1318,6 @@ void helper_lar(void)
|
|||
|
||||
/* FPU helpers */
|
||||
|
||||
#ifndef USE_X86LDOUBLE
|
||||
void helper_fldt_ST0_A0(void)
|
||||
{
|
||||
int new_fpstt;
|
||||
|
@ -1332,7 +1331,6 @@ void helper_fstt_ST0_A0(void)
|
|||
{
|
||||
helper_fstt(ST0, (uint8_t *)A0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* BCD ops */
|
||||
|
||||
|
@ -1729,11 +1727,7 @@ void helper_fsave(uint8_t *ptr, int data32)
|
|||
ptr += (14 << data32);
|
||||
for(i = 0;i < 8; i++) {
|
||||
tmp = ST(i);
|
||||
#ifdef USE_X86LDOUBLE
|
||||
*(long double *)ptr = tmp;
|
||||
#else
|
||||
helper_fstt(tmp, ptr);
|
||||
#endif
|
||||
ptr += 10;
|
||||
}
|
||||
|
||||
|
@ -1760,11 +1754,7 @@ void helper_frstor(uint8_t *ptr, int data32)
|
|||
ptr += (14 << data32);
|
||||
|
||||
for(i = 0;i < 8; i++) {
|
||||
#ifdef USE_X86LDOUBLE
|
||||
tmp = *(long double *)ptr;
|
||||
#else
|
||||
tmp = helper_fldt(ptr);
|
||||
#endif
|
||||
ST(i) = tmp;
|
||||
ptr += 10;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue