summaryrefslogtreecommitdiff
path: root/src/cpu/simple_thread.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/simple_thread.hh')
-rw-r--r--src/cpu/simple_thread.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh
index bc8588041..dcd933ffc 100644
--- a/src/cpu/simple_thread.hh
+++ b/src/cpu/simple_thread.hh
@@ -128,6 +128,9 @@ class SimpleThread : public ThreadState
*/
Addr nextNPC;
+ /** Did this instruction execute or is it predicated false */
+ bool predicate;
+
public:
// pointer to CPU associated with this SimpleThread
BaseCPU *cpu;
@@ -371,6 +374,16 @@ class SimpleThread : public ThreadState
#endif
}
+ bool readPredicate()
+ {
+ return predicate;
+ }
+
+ void setPredicate(bool val)
+ {
+ predicate = val;
+ }
+
MiscReg
readMiscRegNoEffect(int misc_reg, ThreadID tid = 0)
{