Commit d1401f41 authored by Aleksey R.'s avatar Aleksey R.

fix: ARM64 use x0 as return register (proof: uf PsgetCurrentThread)

parent 5606c91a
......@@ -1631,7 +1631,7 @@ MEMOFFSET_64 getReturnReg()
return static_cast<MEMOFFSET_64>(getRegisterByName(L"rax").asULongLong());
case CPU_ARM64:
return static_cast<MEMOFFSET_64>(getRegisterByName(L"r8").asULongLong());
return static_cast<MEMOFFSET_64>(getRegisterByName(L"x0").asULongLong());
}
throw DbgException( "Unknown processor type" );
......
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