summaryrefslogtreecommitdiffstats
path: root/src/core/arm/interpreter/arm_interpreter.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-12 04:14:13 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-12 04:14:13 +0200
commitce4d271a53e79814f66a46bd69a8970ea3849ee9 (patch)
treeaca31760727d3ab5bd2d7f28e2e0a3c743640b2a /src/core/arm/interpreter/arm_interpreter.cpp
parentadded initial kernel/thread modules (diff)
downloadyuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.tar
yuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.tar.gz
yuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.tar.bz2
yuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.tar.lz
yuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.tar.xz
yuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.tar.zst
yuzu-ce4d271a53e79814f66a46bd69a8970ea3849ee9.zip
Diffstat (limited to '')
-rw-r--r--src/core/arm/interpreter/arm_interpreter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/arm/interpreter/arm_interpreter.cpp b/src/core/arm/interpreter/arm_interpreter.cpp
index 4045779d7..81147f2d4 100644
--- a/src/core/arm/interpreter/arm_interpreter.cpp
+++ b/src/core/arm/interpreter/arm_interpreter.cpp
@@ -78,6 +78,14 @@ u32 ARM_Interpreter::GetCPSR() const {
}
/**
+ * Set the current CPSR register
+ * @param cpsr Value to set CPSR to
+ */
+void ARM_Interpreter::SetCPSR(u32 cpsr) {
+ m_state->Cpsr = cpsr;
+}
+
+/**
* Returns the number of clock ticks since the last reset
* @return Returns number of clock ticks
*/