summaryrefslogtreecommitdiff
path: root/src/arch/arm/regfile/regfile.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/regfile/regfile.hh')
-rw-r--r--src/arch/arm/regfile/regfile.hh14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/arch/arm/regfile/regfile.hh b/src/arch/arm/regfile/regfile.hh
index 7f4d21353..5a812fecf 100644
--- a/src/arch/arm/regfile/regfile.hh
+++ b/src/arch/arm/regfile/regfile.hh
@@ -122,22 +122,12 @@ namespace ArmISA
IntReg readIntReg(int intReg)
{
- // In the Arm, reading from the PC for a generic instruction yields
- // the current PC + 8, due to previous pipeline implementations
- if (intReg == PCReg)
- return intRegFile.readReg(intReg) + 8;
- //return pc + 8;
- else
- return intRegFile.readReg(intReg);
+ return intRegFile.readReg(intReg);
}
void setIntReg(int intReg, const IntReg &val)
{
- // Have to trap writes to PC so that they update NPC instead
- if (intReg == PCReg)
- setNextPC(val);
- else
- intRegFile.setReg(intReg, val);
+ intRegFile.setReg(intReg, val);
}
protected: