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/external_master.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mem/external_master.hh') diff --git a/src/mem/external_master.hh b/src/mem/external_master.hh index 3a5627d49..7303de062 100644 --- a/src/mem/external_master.hh +++ b/src/mem/external_master.hh @@ -36,6 +36,7 @@ * * Authors: Andrew Bardsley * Curtis Dunham + * Christian Menard */ /** @@ -129,6 +130,8 @@ class ExternalMaster : public MemObject Handler *handler); void init(); + + const MasterID masterId; }; -- cgit v1.2.3