diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-04-01 09:34:54 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-04-01 09:34:54 +0200 |
| commit | 89ca436e916ba54b41e64a2adc2135ec86e7d85b (patch) | |
| tree | 1c0c3dd9ab21aab5919d55e9d218ffa525313a07 /src/emu | |
| parent | d5356bee99b01f8e4771f84f0abb1b69433bba5f (diff) | |
| download | box64-89ca436e916ba54b41e64a2adc2135ec86e7d85b.tar.gz box64-89ca436e916ba54b41e64a2adc2135ec86e7d85b.zip | |
[DYNAREC] Some fine-tunning to cosim
Diffstat (limited to 'src/emu')
| -rwxr-xr-x | src/emu/x64run_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64run_private.h b/src/emu/x64run_private.h index d43ea331..68db0670 100755 --- a/src/emu/x64run_private.h +++ b/src/emu/x64run_private.h @@ -27,8 +27,8 @@ static inline uint64_t Pop(x64emu_t *emu) } #ifdef TEST_INTERPRETER -#define Push(E, V) do{R_RSP -=8; test->memsize = 8; *(uint64_t*)test->mem = (V); test->memaddr = R_RSP;}while(0) -#define Push16(E, V) do{R_RSP -=2; test->memsize = 2; *(uint16_t*)test->mem = (V); test->memaddr = R_RSP;}while(0) +#define Push(E, V) do{E->regs[_SP].q[0] -=8; test->memsize = 8; *(uint64_t*)test->mem = (V); test->memaddr = E->regs[_SP].q[0];}while(0) +#define Push16(E, V) do{E->regs[_SP].q[0] -=2; test->memsize = 2; *(uint16_t*)test->mem = (V); test->memaddr = E->regs[_SP].q[0];}while(0) #else static inline void Push(x64emu_t *emu, uint64_t v) { |