diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-07-21 10:54:38 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-07-21 10:54:38 +0200 |
| commit | 3e74454cf49af05567f494100646db12c0d9bd1a (patch) | |
| tree | 1eb8845de9ad16b40e2c13888fa3e28d89f2658c /src | |
| parent | f3a748ae8fd9a273520ea38c9bd7d6a44b86d7d6 (diff) | |
| download | box64-3e74454cf49af05567f494100646db12c0d9bd1a.tar.gz box64-3e74454cf49af05567f494100646db12c0d9bd1a.zip | |
[DYNAREC] Another fix for RV64 and LA64 builds
Diffstat (limited to 'src')
| -rw-r--r-- | src/libtools/signals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c index e53f9c62..dc805a59 100644 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -364,7 +364,7 @@ void copyUCTXreg2Emu(x64emu_t* emu, ucontext_t* p, uintptr_t ip) { GO(R15); #undef GO emu->ip.q[0] = ip; - emu->eflags.x64 = p->uc_mcontext.regs[xFlags]; + emu->eflags.x64 = CONTEXT_REG(p, xFlags); #endif } @@ -878,9 +878,9 @@ void my_sigactionhandler_oldcode_64(x64emu_t* emu, int32_t sig, int simple, sigi ucontext_t *p = (ucontext_t *)ucntx; void* pc = NULL; if(p) { - pc = (void*)p->uc_mcontext.pc; + pc = (void*)CONTEXT_PC(p); if(db) - frame = (uintptr_t)p->uc_mcontext.regs[xRSP]; + frame = (uintptr_t)CONTEXT_REG(p, xRSP); } #else (void)ucntx; (void)cur_db; |