projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7712232
)
Avoid accessing objects directly within the XC.
author
Kevin Lim
<ktlim@umich.edu>
Wed, 8 Mar 2006 03:23:14 +0000
(22:23 -0500)
committer
Kevin Lim
<ktlim@umich.edu>
Wed, 8 Mar 2006 03:23:14 +0000
(22:23 -0500)
--HG--
extra : convert_revision :
abda610caab885ae39b4e48df4f75cddb93b27ed
sim/faults.cc
patch
|
blob
|
history
diff --git
a/sim/faults.cc
b/sim/faults.cc
index 2b93353ce8a2bf6223345b62022ccc78ed84df3e..701384989e28287f112de494e35e1f60f3ae87bb 100644
(file)
--- a/
sim/faults.cc
+++ b/
sim/faults.cc
@@
-38,8
+38,8
@@
void FaultBase::invoke(ExecContext * xc)
#else
void FaultBase::invoke(ExecContext * xc)
{
- DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), xc->re
gs.pc
);
- xc->
cpu
->recordEvent(csprintf("Fault %s", name()));
+ DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), xc->re
adPC()
);
+ xc->
getCpuPtr()
->recordEvent(csprintf("Fault %s", name()));
assert(!xc->misspeculating());
}