diff options
author | Ali Saidi <Ali.Saidi@arm.com> | 2010-08-23 11:18:40 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@arm.com> | 2010-08-23 11:18:40 -0500 |
commit | bb5377899a2213be2ecaab25fa4858fae81d0a12 (patch) | |
tree | fd8445171c770c6cf7f4869e7d4bca0f0fe79d67 /src/arch/arm/faults.cc | |
parent | 8ed4f0a02cd936f717f5af0c15b64fedddd5af54 (diff) | |
download | gem5-bb5377899a2213be2ecaab25fa4858fae81d0a12.tar.xz |
ARM: Add system for ARM/Linux and bootstrapping
Diffstat (limited to 'src/arch/arm/faults.cc')
-rw-r--r-- | src/arch/arm/faults.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc index aec4df4a0..793f9d3a4 100644 --- a/src/arch/arm/faults.cc +++ b/src/arch/arm/faults.cc @@ -136,9 +136,9 @@ ArmFault::invoke(ThreadContext *tc) panic("unknown Mode\n"); } - Addr pc = tc->readPC(); + Addr pc M5_VAR_USED = tc->readPC(); Addr newPc = getVector(tc) | (sctlr.te ? (ULL(1) << PcTBitShift) : 0); - DPRINTF(Faults, "Invoking Fault: %s cpsr: %#x PC: %#x lr: %#x newVector: %#x\n", + DPRINTF(Faults, "Invoking Fault:%s cpsr:%#x PC:%#x lr:%#x newVec: %#x\n", name(), cpsr, pc, tc->readIntReg(INTREG_LR), newPc); tc->setPC(newPc); tc->setNextPC(newPc + cpsr.t ? 2 : 4 ); |