From fccbfc208c53ef6c3424531d8f4a42d3d23b200a Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 10 Apr 2014 19:57:56 -0400 Subject: missed this file with commit 95e5436f --- src/core/arm/arm_interface.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/core/arm/arm_interface.h') diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index dafde836..eee4726d 100644 --- a/src/core/arm/arm_interface.h +++ b/src/core/arm/arm_interface.h @@ -42,6 +42,13 @@ public: */ virtual u32 GetReg(int index) const = 0; + /** + * Set an ARM register + * @param index Register index (0-15) + * @param value Value to set register to + */ + virtual void SetReg(int index, u32 value) = 0; + /** * Get the current CPSR register * @return Returns the value of the CPSR register @@ -59,11 +66,13 @@ public: return m_num_instructions; } -private: +protected: /// Execture next instruction virtual void ExecuteInstruction() = 0; +private: + u64 m_num_instructions; ///< Number of instructions executed DISALLOW_COPY_AND_ASSIGN(ARM_Interface); -- cgit v1.2.3