diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-04-02 16:28:08 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-05-31 15:59:17 +0800 |
commit | cb5562bb15f32e9040eccb57271d86fddc614230 (patch) | |
tree | 27386c5b4c2ab2ff3b7e8865f1300c7c54609c2b /src/cpu/base_dyn_inst.hh | |
parent | 679ca8b4cff6b683dff69a96eb8eb61716b61ad8 (diff) | |
download | gem5-cb5562bb15f32e9040eccb57271d86fddc614230.tar.xz |
methods to set taint
Diffstat (limited to 'src/cpu/base_dyn_inst.hh')
-rw-r--r-- | src/cpu/base_dyn_inst.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu/base_dyn_inst.hh b/src/cpu/base_dyn_inst.hh index 01a2d1c80..6684a4765 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. |