diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-02-27 04:02:45 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-02-27 04:02:45 -0500 |
commit | 07cd7e966e6ee6715345b2f6ed2d4ea849fc7a36 (patch) | |
tree | 0fc532ca76620495d20eeb4fd416176acf4954d9 /cpu | |
parent | f9c2b9e74fc459dc221035cb98e2a2e6a1540f9f (diff) | |
download | gem5-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 'cpu')
-rw-r--r-- | cpu/simple/cpu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/simple/cpu.cc b/cpu/simple/cpu.cc index a0a37f45a..4693c78c9 100644 --- a/cpu/simple/cpu.cc +++ b/cpu/simple/cpu.cc @@ -347,7 +347,7 @@ SimpleCPU::copySrcTranslate(Addr src) // translate to physical address Fault fault = xc->translateDataReadReq(memReq); - assert(!fault->isA<AlignmentFault>()); + assert(!fault->isAlignmentFault()); if (fault == NoFault) { xc->copySrcAddr = src; @@ -382,7 +382,7 @@ SimpleCPU::copy(Addr dest) // translate to physical address Fault fault = xc->translateDataWriteReq(memReq); - assert(!fault->isA<AlignmentFault>()); + assert(!fault->isAlignmentFault()); if (fault == NoFault) { Addr dest_addr = memReq->paddr + offset; |