From 41a61589545c284d109019c3cb528762b8345aa0 Mon Sep 17 00:00:00 2001 From: Christian Menard Date: Thu, 9 Feb 2017 19:14:58 -0500 Subject: misc: add a MasterId to the ExternalPort The Request constructor requires a MasterID. However, an external transactor has no chance of getting a MasterID as it does not have a pointer to the System. This patch adds a MasterID to ExternalMaster to allow external modules to easily genrerate new Requests. Signed-off-by: Jason Lowe-Power --- src/mem/ExternalMaster.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mem/ExternalMaster.py') diff --git a/src/mem/ExternalMaster.py b/src/mem/ExternalMaster.py index 492da1dd1..44b49971a 100644 --- a/src/mem/ExternalMaster.py +++ b/src/mem/ExternalMaster.py @@ -35,8 +35,10 @@ # # Authors: Andrew Bardsley # Curtis Dunham +# Christian Menard from m5.params import * +from m5.proxy import * from MemObject import MemObject class ExternalMaster(MemObject): @@ -50,3 +52,5 @@ 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') -- cgit v1.2.3