#
# Authors: Andrew Bardsley
# Curtis Dunham
+# Christian Menard
from m5.params import *
+from m5.proxy import *
from MemObject import MemObject
class ExternalMaster(MemObject):
port_data = Param.String('stub', 'A string to pass to the port'
' handler (in a format specific to the handler) to describe how'
' the port should be bound/bindable/discoverable')
+
+ system = Param.System(Parent.any, 'System this external port belongs to')
*
* Authors: Andrew Bardsley
* Curtis Dunham
+ * Christian Menard
*/
#include "mem/external_master.hh"
#include "base/trace.hh"
#include "debug/ExternalPort.hh"
+#include "sim/system.hh"
std::map<std::string, ExternalMaster::Handler *>
ExternalMaster::portHandlers;
externalPort(NULL),
portName(params->name + ".port"),
portType(params->port_type),
- portData(params->port_data)
+ portData(params->port_data),
+ masterId(params->system->getMasterId(params->name))
{}
BaseMasterPort &