diff options
author | Lioncash <mathew1800@gmail.com> | 2015-08-07 03:24:25 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-08-07 03:24:25 +0200 |
commit | 3b457a5876fda457b076dcd38e00c6f790d65691 (patch) | |
tree | 7e1cb76cac6ec71751519d9e97325e492ac8cb96 /src/core/arm/dyncom | |
parent | registers: Fix a typo with CPSR's name (diff) | |
download | yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.gz yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.bz2 yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.lz yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.xz yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.zst yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom.cpp | 16 | ||||
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom.h | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp index c665f706f..f3be2c857 100644 --- a/src/core/arm/dyncom/arm_dyncom.cpp +++ b/src/core/arm/dyncom/arm_dyncom.cpp @@ -40,6 +40,22 @@ void ARM_DynCom::SetReg(int index, u32 value) { state->Reg[index] = value; } +u32 ARM_DynCom::GetVFPReg(int index) const { + return state->ExtReg[index]; +} + +void ARM_DynCom::SetVFPReg(int index, u32 value) { + state->ExtReg[index] = value; +} + +u32 ARM_DynCom::GetVFPSystemReg(VFPSystemRegister reg) const { + return state->VFP[reg]; +} + +void ARM_DynCom::SetVFPSystemReg(VFPSystemRegister reg, u32 value) { + state->VFP[reg] = value; +} + u32 ARM_DynCom::GetCPSR() const { return state->Cpsr; } diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.h index 87ab6908a..3664fd728 100644 --- a/src/core/arm/dyncom/arm_dyncom.h +++ b/src/core/arm/dyncom/arm_dyncom.h @@ -25,6 +25,10 @@ public: u32 GetPC() const override; u32 GetReg(int index) const override; void SetReg(int index, u32 value) override; + u32 GetVFPReg(int index) const override; + void SetVFPReg(int index, u32 value) override; + u32 GetVFPSystemReg(VFPSystemRegister reg) const override; + void SetVFPSystemReg(VFPSystemRegister reg, u32 value) override; u32 GetCPSR() const override; void SetCPSR(u32 cpsr) override; u32 GetCP15Register(CP15Register reg) override; |