about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-10-03 18:15:21 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-10-03 18:15:21 +0200
commitf9aa5651cc122b8fc3a54205158b4362988ee16c (patch)
treeff6f93ee9fdab9764daeb0c12c6a13027fc8f7fe /src
parentb1c10d5ccd9dfea899a86a02627f0ea1a215ff5b (diff)
downloadbox64-f9aa5651cc122b8fc3a54205158b4362988ee16c.tar.gz
box64-f9aa5651cc122b8fc3a54205158b4362988ee16c.zip
[BOX32][DYNAREC] Small fix on 32bits SIGILL handling
Diffstat (limited to 'src')
-rw-r--r--src/libtools/signal32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtools/signal32.c b/src/libtools/signal32.c
index 47975f43..b1fc9454 100644
--- a/src/libtools/signal32.c
+++ b/src/libtools/signal32.c
@@ -670,6 +670,7 @@ void my_sigactionhandler_oldcode_32(x64emu_t* emu, int32_t sig, int simple, sigi
     } else if(sig==X64_SIGILL) {
         info2->si_code = 2;
         sigcontext->uc_mcontext.gregs[I386_TRAPNO] = 6;
+        info2->_sifields._sigfault.__si_addr = sigcontext->uc_mcontext.gregs[I386_EIP];
     } else if(sig==X64_SIGTRAP) {
         if(info->si_code==1) {  //single step
             info2->si_code = 2;