diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-30 11:06:17 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-30 11:06:17 +0100 |
| commit | 39189a746bbe9f93617eda2b35c7b97ed105542a (patch) | |
| tree | 5d4d4d571293a0718bd16b01ad4c890a58e5363f /src | |
| parent | f82e938ae8e9124796562abbaf5725084db12f42 (diff) | |
| download | box64-39189a746bbe9f93617eda2b35c7b97ed105542a.tar.gz box64-39189a746bbe9f93617eda2b35c7b97ed105542a.zip | |
Generate a SIGILL on unimplemented opcode
Diffstat (limited to 'src')
| -rw-r--r-- | src/emu/x64run.c | 1 |
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) { |