summaryrefslogtreecommitdiff
path: root/src/cpu/o3/iew_impl.hh
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-08 10:42:39 +0800
committerIru Cai <mytbk920423@gmail.com>2019-05-31 15:59:17 +0800
commit57eb50e414a3aaa6e8bc96ae158af55246cb6754 (patch)
tree9d7c2d4a2598ae916d3976e6dbcc739c6b16fb59 /src/cpu/o3/iew_impl.hh
parentc0d7cca1d9895f1c3476ce9864584eb4fb2e6ee9 (diff)
downloadgem5-57eb50e414a3aaa6e8bc96ae158af55246cb6754.tar.xz
implement taint propagation
Diffstat (limited to 'src/cpu/o3/iew_impl.hh')
-rw-r--r--src/cpu/o3/iew_impl.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh
index ee6e76ddd..6adbda7fc 100644
--- a/src/cpu/o3/iew_impl.hh
+++ b/src/cpu/o3/iew_impl.hh
@@ -1328,6 +1328,12 @@ DefaultIEW<Impl>::executeInsts()
inst->forwardOldRegs();
}
+ if (inst->srcTainted()) {
+ inst->taintDestRegs(true);
+ } else {
+ inst->taintDestRegs(false);
+ }
+
inst->setExecuted();
instToCommit(inst);