diff options
| author | Yang Liu <numbksco@gmail.com> | 2023-05-12 14:13:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 08:13:22 +0200 |
| commit | 61f14ffbbc5573ca9a3007c1bfe6e5b03cecfd26 (patch) | |
| tree | 2e3cb29477dea80ec28b5d5aa66a1d659d8f2abd /src | |
| parent | 377a55f60f6dca906402825df3634f4ec20da217 (diff) | |
| download | box64-61f14ffbbc5573ca9a3007c1bfe6e5b03cecfd26.tar.gz box64-61f14ffbbc5573ca9a3007c1bfe6e5b03cecfd26.zip | |
[RV64_DYNAREC] Forget mmx float reg only needed (#782)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynarec/rv64/dynarec_rv64_helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_helper.c b/src/dynarec/rv64/dynarec_rv64_helper.c index d61c8001..2743ec71 100644 --- a/src/dynarec/rv64/dynarec_rv64_helper.c +++ b/src/dynarec/rv64/dynarec_rv64_helper.c @@ -1230,6 +1230,8 @@ static int isx87Empty(dynarec_rv64_t* dyn) // forget ext register for a MMX reg, does nothing if the regs is not loaded void mmx_forget_reg(dynarec_rv64_t* dyn, int ninst, int a) { + if (dyn->e.mmxcache[a] == -1) + return; FSD(dyn->e.mmxcache[a], xEmu, offsetof(x64emu_t, mmx[a])); fpu_free_reg(dyn, dyn->e.mmxcache[a]); return; |