summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/arm_interface.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index dafde8368..eee4726db 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -43,6 +43,13 @@ public:
43 virtual u32 GetReg(int index) const = 0; 43 virtual u32 GetReg(int index) const = 0;
44 44
45 /** 45 /**
46 * Set an ARM register
47 * @param index Register index (0-15)
48 * @param value Value to set register to
49 */
50 virtual void SetReg(int index, u32 value) = 0;
51
52 /**
46 * Get the current CPSR register 53 * Get the current CPSR register
47 * @return Returns the value of the CPSR register 54 * @return Returns the value of the CPSR register
48 */ 55 */
@@ -59,11 +66,13 @@ public:
59 return m_num_instructions; 66 return m_num_instructions;
60 } 67 }
61 68
62private: 69protected:
63 70
64 /// Execture next instruction 71 /// Execture next instruction
65 virtual void ExecuteInstruction() = 0; 72 virtual void ExecuteInstruction() = 0;
66 73
74private:
75
67 u64 m_num_instructions; ///< Number of instructions executed 76 u64 m_num_instructions; ///< Number of instructions executed
68 77
69 DISALLOW_COPY_AND_ASSIGN(ARM_Interface); 78 DISALLOW_COPY_AND_ASSIGN(ARM_Interface);