diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-04-08 10:42:39 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-04-08 10:42:39 +0800 |
commit | b6141109804bf4637345d5b8079c9a6debee285c (patch) | |
tree | 95d82200a859dfdffba48100854818380065666c /src/cpu/o3/iew_impl.hh | |
parent | f76b874533045543e56a69c1b5d75b34fbc8a888 (diff) | |
download | gem5-b6141109804bf4637345d5b8079c9a6debee285c.tar.xz |
implement taint propagation
Diffstat (limited to 'src/cpu/o3/iew_impl.hh')
-rw-r--r-- | src/cpu/o3/iew_impl.hh | 6 |
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); |