diff options
author | bunnei <bunneidev@gmail.com> | 2015-12-07 22:24:08 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-12-07 22:24:08 +0100 |
commit | 2589a68c428da231ba7814437fa77cd432c8693c (patch) | |
tree | 27fa840b335e0898bd7220638e5e6b9ffeef79f9 /src/core/arm/dyncom/arm_dyncom_run.h | |
parent | Merge pull request #1252 from Subv/cam (diff) | |
parent | dyncom: Remove static keyword from header functions (diff) | |
download | yuzu-2589a68c428da231ba7814437fa77cd432c8693c.tar yuzu-2589a68c428da231ba7814437fa77cd432c8693c.tar.gz yuzu-2589a68c428da231ba7814437fa77cd432c8693c.tar.bz2 yuzu-2589a68c428da231ba7814437fa77cd432c8693c.tar.lz yuzu-2589a68c428da231ba7814437fa77cd432c8693c.tar.xz yuzu-2589a68c428da231ba7814437fa77cd432c8693c.tar.zst yuzu-2589a68c428da231ba7814437fa77cd432c8693c.zip |
Diffstat (limited to 'src/core/arm/dyncom/arm_dyncom_run.h')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom_run.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_run.h b/src/core/arm/dyncom/arm_dyncom_run.h index 13bef17fc..8eb694fee 100644 --- a/src/core/arm/dyncom/arm_dyncom_run.h +++ b/src/core/arm/dyncom/arm_dyncom_run.h @@ -30,7 +30,7 @@ * @return If the PC is being read, then the word-aligned PC value is returned. * If the PC is not being read, then the value stored in the register is returned. */ -static inline u32 CHECK_READ_REG15_WA(ARMul_State* cpu, int Rn) { +inline u32 CHECK_READ_REG15_WA(const ARMul_State* cpu, int Rn) { return (Rn == 15) ? ((cpu->Reg[15] & ~0x3) + cpu->GetInstructionSize() * 2) : cpu->Reg[Rn]; } @@ -43,6 +43,6 @@ static inline u32 CHECK_READ_REG15_WA(ARMul_State* cpu, int Rn) { * @return If the PC is being read, then the incremented PC value is returned. * If the PC is not being read, then the values stored in the register is returned. */ -static inline u32 CHECK_READ_REG15(ARMul_State* cpu, int Rn) { +inline u32 CHECK_READ_REG15(const ARMul_State* cpu, int Rn) { return (Rn == 15) ? ((cpu->Reg[15] & ~0x1) + cpu->GetInstructionSize() * 2) : cpu->Reg[Rn]; } |