fix struct uc_mcontext

Change-Id: Ib95d9486a6bedbace3573bb88bf62a20116b2d3c
This commit is contained in:
Fuxin Zhang
2024-11-27 11:47:14 +08:00
parent 6905472e9c
commit cbd8cb1959

View File

@ -194,7 +194,7 @@ void* GetProgramCounter(void* const vuc) {
#elif defined(__e2k__)
return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi);
#elif defined(__loongarch__)
return reinterpret_cast<void*>(context->uc_mcontext.__pc);
return reinterpret_cast<void*>(context->uc_mcontext.sc_pc);
#else
#error "Undefined Architecture."
#endif