diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-11-23 19:39:27 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-11-23 19:39:27 +0100 |
| commit | d7e64d3f11e616bb80196033eb8a3c07e0b13a5d (patch) | |
| tree | 2f118dae9fa78f3653a85c8342bdbd94338ee6d8 | |
| parent | ea8d7255463a32d495a08ee8f3cc8c6db11727cf (diff) | |
| download | box64-d7e64d3f11e616bb80196033eb8a3c07e0b13a5d.tar.gz box64-d7e64d3f11e616bb80196033eb8a3c07e0b13a5d.zip | |
[RV64] This should fix RISCV64 build
| -rw-r--r-- | src/libtools/signals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c index 327c9147..c040010e 100644 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -908,7 +908,7 @@ void my_sigactionhandler_oldcode(int32_t sig, int simple, siginfo_t* info, void sigcontext->uc_mcontext.gregs[X64_RIP] = getX64Address(db, (uintptr_t)pc); } #elif defined(RV64) - if(db && p { + if(db && p) { sigcontext->uc_mcontext.gregs[X64_RAX] = p->uc_mcontext.__gregs[16]; sigcontext->uc_mcontext.gregs[X64_RCX] = p->uc_mcontext.__gregs[17]; sigcontext->uc_mcontext.gregs[X64_RDX] = p->uc_mcontext.__gregs[18]; |