summaryrefslogtreecommitdiffstats
path: root/src/core/arm/dyncom
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-08-29 03:09:42 +0200
committerbunnei <bunneidev@gmail.com>2017-09-30 20:28:53 +0200
commit3411883fe32786c08bbdb28fd35e0b39a420be41 (patch)
tree5d041dd65fcc20f2b8226f70b718a9c72e0bae5a /src/core/arm/dyncom
parentelf: Check if machine is ARM. (diff)
downloadyuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.gz
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.bz2
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.lz
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.xz
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.zst
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.zip
Diffstat (limited to 'src/core/arm/dyncom')
-rw-r--r--src/core/arm/dyncom/arm_dyncom.cpp8
-rw-r--r--src/core/arm/dyncom/arm_dyncom.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp
index 81f9bf99e..1c55496b5 100644
--- a/src/core/arm/dyncom/arm_dyncom.cpp
+++ b/src/core/arm/dyncom/arm_dyncom.cpp
@@ -25,19 +25,19 @@ void ARM_DynCom::ClearInstructionCache() {
trans_cache_buf_top = 0;
}
-void ARM_DynCom::SetPC(u32 pc) {
+void ARM_DynCom::SetPC(u64 pc) {
state->Reg[15] = pc;
}
-u32 ARM_DynCom::GetPC() const {
+u64 ARM_DynCom::GetPC() const {
return state->Reg[15];
}
-u32 ARM_DynCom::GetReg(int index) const {
+u64 ARM_DynCom::GetReg(int index) const {
return state->Reg[index];
}
-void ARM_DynCom::SetReg(int index, u32 value) {
+void ARM_DynCom::SetReg(int index, u64 value) {
state->Reg[index] = value;
}
diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.h
index 62c174f3c..90cc56c41 100644
--- a/src/core/arm/dyncom/arm_dyncom.h
+++ b/src/core/arm/dyncom/arm_dyncom.h
@@ -17,10 +17,10 @@ public:
void ClearInstructionCache() override;
- void SetPC(u32 pc) override;
- u32 GetPC() const override;
- u32 GetReg(int index) const override;
- void SetReg(int index, u32 value) override;
+ void SetPC(u64 pc) override;
+ u64 GetPC() const override;
+ u64 GetReg(int index) const override;
+ void SetReg(int index, u64 value) override;
u32 GetVFPReg(int index) const override;
void SetVFPReg(int index, u32 value) override;
u32 GetVFPSystemReg(VFPSystemRegister reg) const override;