mem: Adopt the memory namespace in qos files

Encapsulate everything qos-related in the gem5::memory
namespace.

Change-Id: Ib906ddd6d76b9d4a56f2eb705efe6cd498829155
Issued-on: https://gem5.atlassian.net/browse/GEM5-983
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47308
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Daniel R. Carvalho
2021-06-12 12:59:00 -03:00
committed by Daniel Carvalho
parent 06da510020
commit 5635b3aaa2
22 changed files with 71 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ namespace gem5
{
MemCtrl::MemCtrl(const MemCtrlParams &p) :
qos::MemCtrl(p),
memory::qos::MemCtrl(p),
port(name() + ".port", *this), isTimingMode(false),
retryRdReq(false), retryWrReq(false),
nextReqEvent([this]{ processNextReqEvent(); }, name()),
@@ -1396,7 +1396,7 @@ Port &
MemCtrl::getPort(const std::string &if_name, PortID idx)
{
if (if_name != "port") {
return qos::MemCtrl::getPort(if_name, idx);
return memory::qos::MemCtrl::getPort(if_name, idx);
} else {
return port;
}