mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[a64] Update Membase and Context register
This commit is contained in:
parent
c428d79e18
commit
6a5f4611e2
|
|
@ -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!
|
// Important: If you change these, you must update the thunks in a64_backend.cc!
|
||||||
oaknut::XReg A64Emitter::GetContextReg() { return X14; }
|
oaknut::XReg A64Emitter::GetContextReg() { return X19; }
|
||||||
oaknut::XReg A64Emitter::GetMembaseReg() { return X15; }
|
oaknut::XReg A64Emitter::GetMembaseReg() { return X20; }
|
||||||
|
|
||||||
void A64Emitter::ReloadContext() {
|
void A64Emitter::ReloadContext() {
|
||||||
// mov(GetContextReg(), qword[rsp + StackLayout::GUEST_CTX_HOME]);
|
// mov(GetContextReg(), qword[rsp + StackLayout::GUEST_CTX_HOME]);
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ class A64Emitter : public oaknut::CodeBlock, public oaknut::CodeGenerator {
|
||||||
std::vector<SourceMapEntry>* out_source_map);
|
std::vector<SourceMapEntry>* out_source_map);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Reserved: XSP, X14, X15
|
// Reserved: XSP, X19, X20
|
||||||
// Scratch: X0/X1/X2
|
// Scratch: X0/X1/X2
|
||||||
// V0-2
|
// V0-2
|
||||||
// Available: X1, X10-r15
|
// Available: X1, X10-r15
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue