summaryrefslogtreecommitdiff
path: root/arch/alpha
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-02-27 04:02:45 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-02-27 04:02:45 -0500
commit07cd7e966e6ee6715345b2f6ed2d4ea849fc7a36 (patch)
tree0fc532ca76620495d20eeb4fd416176acf4954d9 /arch/alpha
parentf9c2b9e74fc459dc221035cb98e2a2e6a1540f9f (diff)
downloadgem5-07cd7e966e6ee6715345b2f6ed2d4ea849fc7a36.tar.xz
Added isMachineCheckFault and isAlignmentFault virtual functions to the fault base class, and replaced the isA templated function with them where appropriate.
arch/alpha/ev5.cc: cpu/simple/cpu.cc: Changed from the isA templated function to isMachineCheckFault and isAlignmentFault sim/faults.hh: Added isMachineCheckFault and isAlignmentFault virtual functions to the fault base class. --HG-- extra : convert_revision : 3bf3a4369bc24a039648ee4f2a9c1663362ff2e2
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/ev5.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/ev5.cc b/arch/alpha/ev5.cc
index 34b328a39..b89a6d10d 100644
--- a/arch/alpha/ev5.cc
+++ b/arch/alpha/ev5.cc
@@ -92,8 +92,8 @@ AlphaISA::fault_addr(Fault fault)
{
//Check for the system wide faults
if(fault == NoFault) return 0x0000;
- else if(fault->isA<MachineCheckFault>()) return 0x0401;
- else if(fault->isA<AlignmentFault>()) return 0x0301;
+ else if(fault->isMachineCheckFault()) return 0x0401;
+ else if(fault->isAlignmentFault()) return 0x0301;
//Deal with the alpha specific faults
return ((AlphaFault *)(fault.get()))->vect();
};