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/cpu.cc | |
parent | f76b874533045543e56a69c1b5d75b34fbc8a888 (diff) | |
download | gem5-b6141109804bf4637345d5b8079c9a6debee285c.tar.xz |
implement taint propagation
Diffstat (limited to 'src/cpu/o3/cpu.cc')
-rw-r--r-- | src/cpu/o3/cpu.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index ad4e6d549..4cbbd0ec6 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -1282,7 +1282,14 @@ template <class Impl> void FullO3CPU<Impl>::setTaint(PhysRegIdPtr phys_reg) { - regFile.setTaint(phys_reg); + regFile.setTaint(phys_reg, true); +} + +template <class Impl> +void +FullO3CPU<Impl>::clearTaint(PhysRegIdPtr phys_reg) +{ + regFile.setTaint(phys_reg, false); } template <class Impl> |