mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 02:21:26 +02:00
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"
|
||||
|
||||
// Dedicated host registers
|
||||
static const Arm64Gen::ARM64Reg MEM_REG = Arm64Gen::X28; // memory base register
|
||||
static const Arm64Gen::ARM64Reg PPC_REG = Arm64Gen::X29; // ppcState pointer
|
||||
static const Arm64Gen::ARM64Reg DISPATCHER_PC =
|
||||
Arm64Gen::W26; // PC register when calling the dispatcher
|
||||
|
||||
// memory base register
|
||||
constexpr Arm64Gen::ARM64Reg MEM_REG = Arm64Gen::X28;
|
||||
// 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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user