[a64] Use offsetof to reload membase

This commit is contained in:
Wunkolo
2024-06-23 14:00:24 -07:00
parent 80c7f1b3c4
commit ea86ac3ce1
+2 -2
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) {