Commit 808bc202 by imaiguo Committed by GitHub

Add support of loongarch64 (#1110)

parent 7f850b31
...@@ -82,6 +82,8 @@ void* GetProgramCounter(void* vuc) { ...@@ -82,6 +82,8 @@ void* GetProgramCounter(void* vuc) {
return reinterpret_cast<void*>(context->uc_mcontext.gregs[16]); return reinterpret_cast<void*>(context->uc_mcontext.gregs[16]);
#elif defined(__e2k__) #elif defined(__e2k__)
return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi); return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi);
#elif defined(__loongarch__)
return reinterpret_cast<void*>(context->uc_mcontext.__pc);
#else #else
#error "Undefined Architecture." #error "Undefined Architecture."
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment