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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user