summaryrefslogtreecommitdiff
path: root/src/mem/packet.hh
diff options
context:
space:
mode:
authorStephan Diestelhorst <stephan.diestelhorst@arm.com>2013-10-31 13:41:13 -0500
committerStephan Diestelhorst <stephan.diestelhorst@arm.com>2013-10-31 13:41:13 -0500
commit19c2a606fadbf04d1839eec738bbabccb218c7f3 (patch)
tree63b9d0984e856ac244eeb52080639855a6282b6b /src/mem/packet.hh
parent885656f2ed55a0a6432ae2beb960944a2a50efcc (diff)
downloadgem5-19c2a606fadbf04d1839eec738bbabccb218c7f3.tar.xz
mem: Add "const" attribute to Packet getters
Add a "const" keywords to the getters in the Packet class so these can be invoked on const Packet objects.
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r--src/mem/packet.hh22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index fa7070f2e..04ad0ee28 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -506,19 +506,19 @@ class Packet : public Printable
bool isFlush() const { return cmd.isFlush(); }
// Snoop flags
- void assertMemInhibit() { flags.set(MEM_INHIBIT); }
- bool memInhibitAsserted() { return flags.isSet(MEM_INHIBIT); }
- void assertShared() { flags.set(SHARED); }
- bool sharedAsserted() { return flags.isSet(SHARED); }
+ void assertMemInhibit() { flags.set(MEM_INHIBIT); }
+ bool memInhibitAsserted() const { return flags.isSet(MEM_INHIBIT); }
+ void assertShared() { flags.set(SHARED); }
+ bool sharedAsserted() const { return flags.isSet(SHARED); }
// Special control flags
- void setExpressSnoop() { flags.set(EXPRESS_SNOOP); }
- bool isExpressSnoop() { return flags.isSet(EXPRESS_SNOOP); }
- void setSupplyExclusive() { flags.set(SUPPLY_EXCLUSIVE); }
- void clearSupplyExclusive() { flags.clear(SUPPLY_EXCLUSIVE); }
- bool isSupplyExclusive() { return flags.isSet(SUPPLY_EXCLUSIVE); }
- void setSuppressFuncError() { flags.set(SUPPRESS_FUNC_ERROR); }
- bool suppressFuncError() { return flags.isSet(SUPPRESS_FUNC_ERROR); }
+ void setExpressSnoop() { flags.set(EXPRESS_SNOOP); }
+ bool isExpressSnoop() const { return flags.isSet(EXPRESS_SNOOP); }
+ void setSupplyExclusive() { flags.set(SUPPLY_EXCLUSIVE); }
+ void clearSupplyExclusive() { flags.clear(SUPPLY_EXCLUSIVE); }
+ bool isSupplyExclusive() const { return flags.isSet(SUPPLY_EXCLUSIVE); }
+ void setSuppressFuncError() { flags.set(SUPPRESS_FUNC_ERROR); }
+ bool suppressFuncError() const { return flags.isSet(SUPPRESS_FUNC_ERROR); }
// Network error conditions... encapsulate them as methods since
// their encoding keeps changing (from result field to command