From 57eb50e414a3aaa6e8bc96ae158af55246cb6754 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 8 Apr 2019 10:42:39 +0800 Subject: implement taint propagation --- src/cpu/o3/iew_impl.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cpu/o3/iew_impl.hh') 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::executeInsts() inst->forwardOldRegs(); } + if (inst->srcTainted()) { + inst->taintDestRegs(true); + } else { + inst->taintDestRegs(false); + } + inst->setExecuted(); instToCommit(inst); -- cgit v1.2.3