Skip to content

Commit 38d64ba

Browse files
committed
[DYNAREC] Resume regular signal with Dynarec
1 parent 896b965 commit 38d64ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/libtools/signal32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ int my_sigactionhandler_oldcode_32(x64emu_t* emu, int32_t sig, int simple, sigin
597597
uint32_t mmapped = memExist((uintptr_t)info->si_addr);
598598
uint32_t sysmapped = (info->si_addr<(void*)box64_pagesize)?1:mmapped;
599599
uint32_t real_prot = 0;
600-
int skip = 1; // in case sigjump is used to restore exectuion, 1 will switch to interpreter, 3 will switch to dynarec
600+
int skip = 3; // in case sigjump is used to restore exectuion, 1 will switch to interpreter, 3 will switch to dynarec
601601
if(prot&PROT_READ) real_prot|=PROT_READ;
602602
if(prot&PROT_WRITE) real_prot|=PROT_WRITE;
603603
if(prot&PROT_EXEC) real_prot|=PROT_WRITE;

src/libtools/signals.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ int my_sigactionhandler_oldcode_64(x64emu_t* emu, int32_t sig, int simple, sigin
422422
uint32_t mmapped = memExist((uintptr_t)info->si_addr);
423423
uint32_t sysmapped = (info->si_addr<(void*)box64_pagesize)?1:mmapped;
424424
uint32_t real_prot = 0;
425-
int skip = 1; // in case sigjump is used to restore exectuion, 1 will switch to interpreter, 3 will switch to dynarec
425+
int skip = 3; // in case sigjump is used to restore exectuion, 1 will switch to interpreter, 3 will switch to dynarec
426426
if(prot&PROT_READ) real_prot|=PROT_READ;
427427
if(prot&PROT_WRITE) real_prot|=PROT_WRITE;
428428
if(prot&PROT_EXEC) real_prot|=PROT_WRITE;

0 commit comments

Comments
 (0)