From b28522528109f87d9420e59a31cef88a045ed0e6 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 2 Apr 2019 16:28:08 +0800 Subject: methods to set taint --- src/cpu/base_dyn_inst.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cpu/base_dyn_inst.hh') 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. -- cgit v1.2.3