[a64] Update Membase and Context register

This commit is contained in:
Wunkolo 2024-05-05 21:15:49 -07:00
parent c428d79e18
commit 6a5f4611e2
2 changed files with 3 additions and 3 deletions

View file

@ -689,8 +689,8 @@ oaknut::XReg A64Emitter::GetNativeParam(uint32_t param) {
}
// Important: If you change these, you must update the thunks in a64_backend.cc!
oaknut::XReg A64Emitter::GetContextReg() { return X14; }
oaknut::XReg A64Emitter::GetMembaseReg() { return X15; }
oaknut::XReg A64Emitter::GetContextReg() { return X19; }
oaknut::XReg A64Emitter::GetMembaseReg() { return X20; }
void A64Emitter::ReloadContext() {
// mov(GetContextReg(), qword[rsp + StackLayout::GUEST_CTX_HOME]);

View file

@ -137,7 +137,7 @@ class A64Emitter : public oaknut::CodeBlock, public oaknut::CodeGenerator {
std::vector<SourceMapEntry>* out_source_map);
public:
// Reserved: XSP, X14, X15
// Reserved: XSP, X19, X20
// Scratch: X0/X1/X2
// V0-2
// Available: X1, X10-r15