mem: Add missing flag test functions to Request
Change-Id: I800c45c855332a2dd1ec5f31b135db62181e5204 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38455 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -576,6 +576,12 @@ class Request
|
||||
/**
|
||||
* Accessor for instruction count.
|
||||
*/
|
||||
bool
|
||||
hasInstCount() const
|
||||
{
|
||||
return privateFlags.isSet(VALID_INST_COUNT);
|
||||
}
|
||||
|
||||
Counter getInstCount() const
|
||||
{
|
||||
assert(privateFlags.isSet(VALID_INST_COUNT));
|
||||
@@ -686,6 +692,12 @@ class Request
|
||||
/**
|
||||
* Accessor for hardware transactional memory abort cause.
|
||||
*/
|
||||
bool
|
||||
hasHtmAbortCause() const
|
||||
{
|
||||
return privateFlags.isSet(VALID_HTM_ABORT_CAUSE);
|
||||
}
|
||||
|
||||
HtmFailureFaultCause
|
||||
getHtmAbortCause() const
|
||||
{
|
||||
@@ -805,6 +817,12 @@ class Request
|
||||
return _contextId;
|
||||
}
|
||||
|
||||
bool
|
||||
hasStreamId() const
|
||||
{
|
||||
return privateFlags.isSet(VALID_STREAM_ID);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
streamId() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user