[a64] Fix `EmitGetCurrentThreadId` type

16-bit word rather than 8-bit
This commit is contained in:
Wunkolo 2024-05-07 06:34:50 -07:00
parent 906d0c6590
commit 540344fd27
1 changed files with 1 additions and 2 deletions

View File

@ -359,8 +359,7 @@ void A64Emitter::MarkSourceOffset(const Instr* i) {
void A64Emitter::EmitGetCurrentThreadId() {
// rsi must point to context. We could fetch from the stack if needed.
// mov(ax, word[GetContextReg() + offsetof(ppc::PPCContext, thread_id)]);
LDRB(W0, GetContextReg(), offsetof(ppc::PPCContext, thread_id));
LDRH(W0, GetContextReg(), offsetof(ppc::PPCContext, thread_id));
}
void A64Emitter::EmitTraceUserCallReturn() {}