Fail* CPUState: set/getRegisterContent() uses "const Register*" as 1st param

The first parameter (Register* reg) is only used as input (const-correctness).

Change-Id: I5a75a9f7378913e491a8a22872f51a385e910af6
This commit is contained in:
Adrian Böckenkamp
2013-04-29 16:09:28 +02:00
committed by Gerrit Code Review
parent 72c9ba6363
commit 515eb9973b
7 changed files with 14 additions and 14 deletions

View File

@ -20,13 +20,13 @@ public:
* Gets the content of the passed Register.
* @param reg the register to get the content from
*/
virtual regdata_t getRegisterContent(Register* reg) const = 0;
virtual regdata_t getRegisterContent(const Register* reg) const = 0;
/**
* Writes the passed value into the given register.
* @param reg the register that should be written to
* @param value the value that should be written into the register
*/
virtual void setRegisterContent(Register* reg, regdata_t value) = 0;
virtual void setRegisterContent(const Register* reg, regdata_t value) = 0;
/**
* Returns the current instruction pointer.
* @return the current eip