aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-04-08 20:38:33 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-04-08 20:38:33 -0400
commitd0674cc98bfa5729168274cde62a4e69343f8524 (patch)
tree78f40a0cf1afa17bbd3aac9e19e33557ea7444da /src/core/arm/arm_interface.h
parentad4fffca0ddadc67f43173d20069295920dc66b4 (diff)
fixed licensing and updated code style naming for arm_interface/arm_interpreter frontend module
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index e5df2d97..dafde836 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -11,7 +11,7 @@
class ARM_Interface {
public:
ARM_Interface() {
- num_instructions_ = 0;
+ m_num_instructions = 0;
}
~ARM_Interface() {
@@ -20,7 +20,7 @@ public:
/// Step CPU by one instruction
void Step() {
ExecuteInstruction();
- num_instructions_++;
+ m_num_instructions++;
}
/**
@@ -33,36 +33,38 @@ public:
* Get the current Program Counter
* @return Returns current PC
*/
- virtual u32 PC() = 0;
+ virtual u32 GetPC() const = 0;
/**
* Get an ARM register
* @param index Register index (0-15)
* @return Returns the value in the register
*/
- virtual u32 Reg(int index) = 0;
+ virtual u32 GetReg(int index) const = 0;
/**
* Get the current CPSR register
* @return Returns the value of the CPSR register
*/
- virtual u32 CPSR() = 0;
+ virtual u32 GetCPSR() const = 0;
/**
* Returns the number of clock ticks since the last rese
* @return Returns number of clock ticks
*/
- virtual u64 GetTicks() = 0;
+ virtual u64 GetTicks() const = 0;
- /// Getter for num_instructions_
- u64 num_instructions() { return num_instructions_; }
+ /// Getter for m_num_instructions
+ u64 GetNumInstructions() {
+ return m_num_instructions;
+ }
private:
/// Execture next instruction
virtual void ExecuteInstruction() = 0;
- u64 num_instructions_; ///< Number of instructions executed
+ u64 m_num_instructions; ///< Number of instructions executed
DISALLOW_COPY_AND_ASSIGN(ARM_Interface);
};