about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-30 11:06:17 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-10-30 11:06:17 +0100
commit39189a746bbe9f93617eda2b35c7b97ed105542a (patch)
tree5d4d4d571293a0718bd16b01ad4c890a58e5363f /src
parentf82e938ae8e9124796562abbaf5725084db12f42 (diff)
downloadbox64-39189a746bbe9f93617eda2b35c7b97ed105542a.tar.gz
box64-39189a746bbe9f93617eda2b35c7b97ed105542a.zip
Generate a SIGILL on unimplemented opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index e0dc0062..27232c9e 100644
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -2192,6 +2192,7 @@ if(emu->segs[_CS]!=0x33 && emu->segs[_CS]!=0x23) printf_log(LOG_NONE, "Warning,
     if(unimp) {
         emu->quit = 1;
         UnimpOpcode(emu, is32bits);
+        emit_signal(emu, SIGILL, (void*)R_RIP, 0);
     }
     // fork handling
     if(emu->fork) {