From b642ad00eb55678f4ce20fdf127a00a6c0bbdcb8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 28 Dec 2006 14:27:45 -0500 Subject: Implement a stub nnpc for alpha that is read only as npc+4. --HG-- extra : convert_revision : d08b740d32757fa5471c9bcde9084d59a1d8102d --- src/arch/alpha/regfile.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/arch/alpha') diff --git a/src/arch/alpha/regfile.hh b/src/arch/alpha/regfile.hh index c73c32bad..54372da36 100644 --- a/src/arch/alpha/regfile.hh +++ b/src/arch/alpha/regfile.hh @@ -78,13 +78,11 @@ namespace AlphaISA Addr readNextNPC() { - return nnpc; + return npc + sizeof(MachInst); } void setNextNPC(Addr val) - { - nnpc = val; - } + { } protected: IntRegFile intRegFile; // (signed) integer register file -- cgit v1.2.3