summaryrefslogtreecommitdiff
path: root/src/cpu/simple
diff options
context:
space:
mode:
authorMin Kyu Jeong <minkyu.jeong@arm.com>2010-08-23 11:18:41 -0500
committerMin Kyu Jeong <minkyu.jeong@arm.com>2010-08-23 11:18:41 -0500
commit03286e9d4e797c7ca824a72627a947a42e01795f (patch)
tree6c873877ad9e5af85dcb7d319570c47d2622ad41 /src/cpu/simple
parent92ae620be8b46742042dcfe6dfaf38ecac24ad09 (diff)
downloadgem5-03286e9d4e797c7ca824a72627a947a42e01795f.tar.xz
CPU: Make Exec trace to print predication result (if false) for memory instructions
Diffstat (limited to 'src/cpu/simple')
-rw-r--r--src/cpu/simple/base.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cpu/simple/base.hh b/src/cpu/simple/base.hh
index 90cb81c0c..24527f9eb 100644
--- a/src/cpu/simple/base.hh
+++ b/src/cpu/simple/base.hh
@@ -295,7 +295,12 @@ class BaseSimpleCPU : public BaseCPU
void setNextMicroPC(uint64_t val) { thread->setNextMicroPC(val); }
void setNextNPC(uint64_t val) { thread->setNextNPC(val); }
void setPredicate(bool val)
- { return thread->setPredicate(val); }
+ {
+ thread->setPredicate(val);
+ if (traceData) {
+ traceData->setPredicate(val);
+ }
+ }
MiscReg readMiscRegNoEffect(int misc_reg)
{