[a64] Use `offsetof` to reload membase

This commit is contained in:
Wunkolo 2024-05-08 09:29:03 -07:00
parent 47665fddb8
commit 2d093ae4ba
1 changed files with 2 additions and 2 deletions

View File

@ -661,8 +661,8 @@ void A64Emitter::ReloadContext() {
}
void A64Emitter::ReloadMembase() {
// mov(GetMembaseReg(), qword[GetContextReg() + 8]); // membase
LDR(GetMembaseReg(), GetContextReg(), 8); // membase
LDR(GetMembaseReg(), GetContextReg(),
offsetof(ppc::PPCContext, virtual_membase));
}
bool A64Emitter::ConstantFitsIn32Reg(uint64_t v) {