summaryrefslogtreecommitdiff
path: root/src/cpu/base_dyn_inst.hh
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-02 16:28:08 +0800
committerIru Cai <mytbk920423@gmail.com>2019-04-02 16:28:08 +0800
commitb28522528109f87d9420e59a31cef88a045ed0e6 (patch)
tree34eabdfbdc99f12416aba91b13fd4ae808afc276 /src/cpu/base_dyn_inst.hh
parent05098cf70b668b9eac91db71c5bd44765ee1e6d5 (diff)
downloadgem5-b28522528109f87d9420e59a31cef88a045ed0e6.tar.xz
methods to set taint
Diffstat (limited to 'src/cpu/base_dyn_inst.hh')
-rw-r--r--src/cpu/base_dyn_inst.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu/base_dyn_inst.hh b/src/cpu/base_dyn_inst.hh
index 6301864b7..4d8014445 100644
--- a/src/cpu/base_dyn_inst.hh
+++ b/src/cpu/base_dyn_inst.hh
@@ -478,6 +478,13 @@ class BaseDynInst : public ExecContext, public RefCounted
_prevDestRegIdx[idx] = previous_rename;
}
+ void taintDestRegs(void)
+ {
+ for (auto dstreg: _destRegIdx) {
+ cpu->setTaint(dstreg);
+ }
+ }
+
/** Renames a source logical register to the physical register which
* has/will produce that logical register's result.
* @todo: add in whether or not the source register is ready.