diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-03-06 14:10:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-06 14:10:31 +0100 |
| commit | da34156267c483c3621e447ba78842aa37694751 (patch) | |
| tree | 708f241077a395cd84e66c173d4efe8e967ab3c9 /src/libtools | |
| parent | 67dd40dc083b9c37d027b75efaffe66501768029 (diff) | |
| parent | 113ef45c6c310980512ff746781ee401579b39ae (diff) | |
| download | box64-da34156267c483c3621e447ba78842aa37694751.tar.gz box64-da34156267c483c3621e447ba78842aa37694751.zip | |
Merge pull request #536 from ksco/fix-rv64-warning
[RISCV] Get pc from ucontext_t for RV64
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/signals.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c index 0bb9767f..0558a88a 100755 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -841,6 +841,8 @@ void my_box64signalhandler(int32_t sig, siginfo_t* info, void * ucntx) void * pc = (void*)p->uc_mcontext.__pc; #elif defined(SW64) void * pc = (void*)p->uc_mcontext.sc_pc; +#elif defined(RV64) + void * pc = (void*)p->uc_mcontext.__gregs[REG_PC]; #else void * pc = NULL; // unknow arch... #warning Unhandled architecture |