about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-07-16 21:34:33 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-07-16 21:34:33 +0200
commitbb8e11e08dae70f7f963a0096de537dae52e9f24 (patch)
tree8d7b53cb652e5a890fbc571676e2b9f512d67f27 /src
parentaee1fe1004f46624f2fb15278035bbac772f6c77 (diff)
downloadbox64-bb8e11e08dae70f7f963a0096de537dae52e9f24.tar.gz
box64-bb8e11e08dae70f7f963a0096de537dae52e9f24.zip
Improved 0F 0B opcode (SIGILL at ip, not ip+2)
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run0f.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index c2b8dcaa..4441b2a0 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -62,6 +62,7 @@ int Run0F(x64emu_t *emu, rex_t rex)
             break;

 

         case 0x0B:                      /* UD2 */

+            R_RIP-=2;

             emit_signal(emu, SIGILL, (void*)R_RIP, 0);

             break;