summaryrefslogtreecommitdiff
path: root/src/mem/bus.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-10-11 20:54:06 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-10-11 20:54:06 -0400
commit388d484269ea9f68967d22a52edbb9d669ba6cdc (patch)
treea6170a3fcd9304c9d6ee799ff351ecdb8c3ac24e /src/mem/bus.hh
parent14c8e8b2271a78cb3f9f1887a212d9de9f4fcc28 (diff)
downloadgem5-388d484269ea9f68967d22a52edbb9d669ba6cdc.tar.xz
Make default ID unique (not broadcast)
Fix a segfault associated with DefaultId src/mem/bus.cc: Handle a segfault in the bus when DefaultPort was being used src/mem/bus.hh: Make the Default ID more unique (it overlapped with Broadcast ID) --HG-- extra : convert_revision : 9182805c5cf4d9fe004e6c5be8547a8f41ed7bfe
Diffstat (limited to 'src/mem/bus.hh')
-rw-r--r--src/mem/bus.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/bus.hh b/src/mem/bus.hh
index 6e93f60c4..509b8cf9b 100644
--- a/src/mem/bus.hh
+++ b/src/mem/bus.hh
@@ -59,7 +59,7 @@ class Bus : public MemObject
/** the next tick at which the bus will be idle */
Tick tickNextIdle;
- static const int defaultId = -1;
+ static const int defaultId = -3; //Make it unique from Broadcast
struct DevMap {
int portId;
@@ -238,7 +238,7 @@ class Bus : public MemObject
}
/** Port that handles requests that don't match any of the interfaces.*/
- Port *defaultPort;
+ BusPort *defaultPort;
public: