diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-07-11 17:22:27 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-07-11 17:22:27 +0200 |
| commit | a7422d11edc92f16e8a0d6a479d5efb016a70c19 (patch) | |
| tree | c67c3478dcde19f781b692cdaad844f8c4231147 /src/emu/x64rundf.c | |
| parent | b39fbc0cfddea724f877756c587571127bd22edf (diff) | |
| download | box64-a7422d11edc92f16e8a0d6a479d5efb016a70c19.tar.gz box64-a7422d11edc92f16e8a0d6a479d5efb016a70c19.zip | |
Splitted mmx and x87 register (from box86)
Diffstat (limited to 'src/emu/x64rundf.c')
| -rw-r--r-- | src/emu/x64rundf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/x64rundf.c b/src/emu/x64rundf.c index 7abf665a..a059cfd8 100644 --- a/src/emu/x64rundf.c +++ b/src/emu/x64rundf.c @@ -152,8 +152,8 @@ int RunDF(x64emu_t *emu, rex_t rex) tmp64s = ED->sq[0]; fpu_do_push(emu); ST0.d = tmp64s; - STll(0).ll = tmp64s; - STll(0).ref = ST0.q; + STll(0).sq = tmp64s; + STll(0).sref = ST0.sq; break; case 6: /* FBSTP tbytes, ST0 */ GETED(0); @@ -162,8 +162,8 @@ int RunDF(x64emu_t *emu, rex_t rex) break; case 7: /* FISTP i64 */ GETED(0); - if(STll(0).ref==ST(0).sq) - ED->sq[0] = STll(0).ll; + if(STll(0).sref==ST(0).sq) + ED->sq[0] = STll(0).sq; else { if(isgreater(ST0.d, (double)(int64_t)0x7fffffffffffffffLL) || isless(ST0.d, -(double)(int64_t)0x7fffffffffffffffLL) || !isfinite(ST0.d)) ED->sq[0] = 0x8000000000000000LL; |