diff options
author | Gabe Black <gabeblack@google.com> | 2019-03-22 14:23:21 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-03-26 18:17:09 +0000 |
commit | 599d2c91f88ba74098a917eb0b7f901add49276a (patch) | |
tree | 7018c702b25b008893d97959aa7ead613f2d6462 /src/mem/coherent_xbar.cc | |
parent | fcc4c4fed945d0575d40fe314573a2081d66b2ee (diff) | |
download | gem5-599d2c91f88ba74098a917eb0b7f901add49276a.tar.xz |
mem: Clean up the xbars a little.
Get rid of comments which just restate the code, get rid of redundant
"virtual" keywords, add "override"s, fix style, and get rid of
xbar::init which was empty and hiding the parent class init.
Change-Id: I8ce20abee340baa88084d142f2fb8c633ee54ba9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17592
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/mem/coherent_xbar.cc')
-rw-r--r-- | src/mem/coherent_xbar.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/coherent_xbar.cc b/src/mem/coherent_xbar.cc index 2bee5bc9d..3e994dd71 100644 --- a/src/mem/coherent_xbar.cc +++ b/src/mem/coherent_xbar.cc @@ -71,8 +71,8 @@ CoherentXBar::CoherentXBar(const CoherentXBarParams *p) masterPorts.push_back(bp); reqLayers.push_back(new ReqLayer(*bp, *this, csprintf(".reqLayer%d", i))); - snoopLayers.push_back(new SnoopRespLayer(*bp, *this, - csprintf(".snoopLayer%d", i))); + snoopLayers.push_back( + new SnoopRespLayer(*bp, *this, csprintf(".snoopLayer%d", i))); } // see if we have a default slave device connected and if so add @@ -81,10 +81,10 @@ CoherentXBar::CoherentXBar(const CoherentXBarParams *p) defaultPortID = masterPorts.size(); std::string portName = name() + ".default"; MasterPort* bp = new CoherentXBarMasterPort(portName, *this, - defaultPortID); + defaultPortID); masterPorts.push_back(bp); reqLayers.push_back(new ReqLayer(*bp, *this, csprintf(".reqLayer%d", - defaultPortID))); + defaultPortID))); snoopLayers.push_back(new SnoopRespLayer(*bp, *this, csprintf(".snoopLayer%d", defaultPortID))); |