diff options
| author | bunnei <ericbunnie@gmail.com> | 2014-05-22 22:57:45 -0400 |
|---|---|---|
| committer | bunnei <ericbunnie@gmail.com> | 2014-05-22 22:57:45 -0400 |
| commit | 32c314c99290a52f1f870ecf8c677e3792ed09c4 (patch) | |
| tree | 1cea62bc320d51ebb217e7c361ae10b65b71dd45 /src/core/arm/interpreter/arm_interpreter.h | |
| parent | 9a2e7381e66293929d50b08cc55379c800e74d43 (diff) | |
| parent | 51f636b3d44e0c963d73cbc4e1a555633980b3fb (diff) | |
Merge branch 'threading'
Diffstat (limited to 'src/core/arm/interpreter/arm_interpreter.h')
| -rw-r--r-- | src/core/arm/interpreter/arm_interpreter.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/core/arm/interpreter/arm_interpreter.h b/src/core/arm/interpreter/arm_interpreter.h index 509025080..6a531e497 100644 --- a/src/core/arm/interpreter/arm_interpreter.h +++ b/src/core/arm/interpreter/arm_interpreter.h @@ -49,11 +49,29 @@ public: u32 GetCPSR() const; /** + * Set the current CPSR register + * @param cpsr Value to set CPSR to + */ + void SetCPSR(u32 cpsr); + + /** * Returns the number of clock ticks since the last reset * @return Returns number of clock ticks */ u64 GetTicks() const; + /** + * Saves the current CPU context + * @param ctx Thread context to save + */ + void SaveContext(ThreadContext& ctx); + + /** + * Loads a CPU context + * @param ctx Thread context to load + */ + void LoadContext(const ThreadContext& ctx); + protected: /** @@ -64,6 +82,6 @@ protected: private: - ARMul_State* m_state; + ARMul_State* state; }; |
