mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
[a64] Use offsetof to reload membase
This commit is contained in:
parent
47665fddb8
commit
2d093ae4ba
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue