diff options
author | bunnei <bunneidev@gmail.com> | 2015-02-13 15:59:17 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-02-13 15:59:17 +0100 |
commit | c44d75787b03e84591aac3ab3cc07eaf8c023188 (patch) | |
tree | fb2a89cbc953be437c43db3b16654be8f4d7efb8 /src/core/arm/dyncom/arm_dyncom_run.h | |
parent | Merge pull request #569 from lioncash/modeswitch (diff) | |
parent | arm: General cleanup (diff) | |
download | yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.tar yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.tar.gz yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.tar.bz2 yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.tar.lz yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.tar.xz yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.tar.zst yuzu-c44d75787b03e84591aac3ab3cc07eaf8c023188.zip |
Diffstat (limited to 'src/core/arm/dyncom/arm_dyncom_run.h')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom_run.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_run.h b/src/core/arm/dyncom/arm_dyncom_run.h index b1c0daaf7..e79439f80 100644 --- a/src/core/arm/dyncom/arm_dyncom_run.h +++ b/src/core/arm/dyncom/arm_dyncom_run.h @@ -18,10 +18,10 @@ #pragma once -void switch_mode(arm_core_t *core, uint32_t mode); +void switch_mode(ARMul_State* core, uint32_t mode); /* FIXME, we temporarily think thumb instruction is always 16 bit */ -static inline u32 GET_INST_SIZE(arm_core_t* core) { +static inline u32 GET_INST_SIZE(ARMul_State* core) { return core->TFlag? 2 : 4; } @@ -33,7 +33,7 @@ static inline u32 GET_INST_SIZE(arm_core_t* core) { * * @return */ -static inline addr_t CHECK_READ_REG15_WA(arm_core_t* core, int Rn) { +static inline addr_t CHECK_READ_REG15_WA(ARMul_State* core, int Rn) { return (Rn == 15)? ((core->Reg[15] & ~0x3) + GET_INST_SIZE(core) * 2) : core->Reg[Rn]; } @@ -45,6 +45,6 @@ static inline addr_t CHECK_READ_REG15_WA(arm_core_t* core, int Rn) { * * @return */ -static inline u32 CHECK_READ_REG15(arm_core_t* core, int Rn) { +static inline u32 CHECK_READ_REG15(ARMul_State* core, int Rn) { return (Rn == 15)? ((core->Reg[15] & ~0x1) + GET_INST_SIZE(core) * 2) : core->Reg[Rn]; } |