diff options
author | Lioncash <mathew1800@gmail.com> | 2015-04-06 18:57:49 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-04-06 18:57:49 +0200 |
commit | c3ffe8f9c3410521eba90e5bb3b2d6a683506731 (patch) | |
tree | 0820f6da937608e2a9a91b3b73cc6e75c3ae44dc /src/core/arm/dyncom/arm_dyncom.cpp | |
parent | Move CP15 enum definitions into their own enum. (diff) | |
download | yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.tar yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.tar.gz yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.tar.bz2 yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.tar.lz yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.tar.xz yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.tar.zst yuzu-c3ffe8f9c3410521eba90e5bb3b2d6a683506731.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp index cb1a410a0..1b1d01420 100644 --- a/src/core/arm/dyncom/arm_dyncom.cpp +++ b/src/core/arm/dyncom/arm_dyncom.cpp @@ -68,6 +68,14 @@ void ARM_DynCom::SetCPSR(u32 cpsr) { state->Cpsr = cpsr; } +u32 ARM_DynCom::GetCP15Register(CP15Register reg) { + return state->CP15[reg]; +} + +void ARM_DynCom::SetCP15Register(CP15Register reg, u32 value) { + state->CP15[reg] = value; +} + void ARM_DynCom::AddTicks(u64 ticks) { down_count -= ticks; if (down_count < 0) |