JitArm64_RegCache: Mark register constants as constexpr
Also moves comments to make for less wonky formatting.
This commit is contained in:
parent
e2bb9fd147
commit
e9aaa46c2f
|
@ -15,10 +15,13 @@
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
|
|
||||||
// Dedicated host registers
|
// Dedicated host registers
|
||||||
static const Arm64Gen::ARM64Reg MEM_REG = Arm64Gen::X28; // memory base register
|
|
||||||
static const Arm64Gen::ARM64Reg PPC_REG = Arm64Gen::X29; // ppcState pointer
|
// memory base register
|
||||||
static const Arm64Gen::ARM64Reg DISPATCHER_PC =
|
constexpr Arm64Gen::ARM64Reg MEM_REG = Arm64Gen::X28;
|
||||||
Arm64Gen::W26; // PC register when calling the dispatcher
|
// ppcState pointer
|
||||||
|
constexpr Arm64Gen::ARM64Reg PPC_REG = Arm64Gen::X29;
|
||||||
|
// PC register when calling the dispatcher
|
||||||
|
constexpr Arm64Gen::ARM64Reg DISPATCHER_PC = Arm64Gen::W26;
|
||||||
|
|
||||||
#define PPCSTATE_OFF(elem) (offsetof(PowerPC::PowerPCState, elem))
|
#define PPCSTATE_OFF(elem) (offsetof(PowerPC::PowerPCState, elem))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue