about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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;