summaryrefslogtreecommitdiff
path: root/src/mem/request.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/request.hh')
-rw-r--r--src/mem/request.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mem/request.hh b/src/mem/request.hh
index dde68ca37..ee62ce771 100644
--- a/src/mem/request.hh
+++ b/src/mem/request.hh
@@ -409,6 +409,12 @@ class Request : public FastAlloc
flags.set(VALID_EXTRA_DATA);
}
+ bool
+ hasContextId() const
+ {
+ return flags.isSet(VALID_CONTEXT_ID);
+ }
+
/** Accessor function for context ID.*/
int
contextId() const
@@ -425,13 +431,13 @@ class Request : public FastAlloc
return _threadId;
}
- /** Accessor function for pc.*/
bool
hasPC() const
{
return flags.isSet(VALID_PC);
}
+ /** Accessor function for pc.*/
Addr
getPC() const
{