We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ace1e3 commit 859ae3aCopy full SHA for 859ae3a
src/vmprof_config.h
@@ -32,6 +32,8 @@
32
#define PC_FROM_UCONTEXT uc_mcontext.pc
33
#elif defined(__powerpc64__)
34
#define PC_FROM_UCONTEXT uc_mcontext.gp_regs[PT_NIP]
35
+#elif defined(__riscv)
36
+ #define PC_FROM_UCONTEXT uc_mcontext.__gregs[REG_PC]
37
#else
38
/* linux, gnuc */
39
#define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP]
0 commit comments