From fa232e2e0edb4c72d8fb9a1dc13f8031724184bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tiago=20M=C3=BCck?= Date: Tue, 16 Jun 2020 20:06:49 -0500 Subject: [PATCH] mem-ruby: fix include dependency MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Removed include dependency between WriteMask and RubySystem. Change-Id: I3e81267341e3875b1bb0fc3cb39f1a308e383dfd Signed-off-by: Tiago Mück Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31258 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/mem/ruby/common/WriteMask.cc | 5 +++++ src/mem/ruby/common/WriteMask.hh | 8 +++----- src/mem/ruby/slicc_interface/RubySlicc_Util.hh | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/mem/ruby/common/WriteMask.cc b/src/mem/ruby/common/WriteMask.cc index 4585077a6..54ba8fff0 100644 --- a/src/mem/ruby/common/WriteMask.cc +++ b/src/mem/ruby/common/WriteMask.cc @@ -32,6 +32,11 @@ #include "mem/ruby/system/RubySystem.hh" +WriteMask::WriteMask() + : mSize(RubySystem::getBlockSizeBytes()), mMask(mSize, false), + mAtomic(false) +{} + void WriteMask::print(std::ostream& out) const { diff --git a/src/mem/ruby/common/WriteMask.hh b/src/mem/ruby/common/WriteMask.hh index 6e3ea2982..f1e5f371d 100644 --- a/src/mem/ruby/common/WriteMask.hh +++ b/src/mem/ruby/common/WriteMask.hh @@ -46,18 +46,16 @@ #include #include +#include "base/amo.hh" +#include "mem/ruby/common/DataBlock.hh" #include "mem/ruby/common/TypeDefines.hh" -#include "mem/ruby/system/RubySystem.hh" class WriteMask { public: typedef std::vector> AtomicOpVector; - WriteMask() - : mSize(RubySystem::getBlockSizeBytes()), mMask(mSize, false), - mAtomic(false) - {} + WriteMask(); WriteMask(int size) : mSize(size), mMask(size, false), mAtomic(false) diff --git a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh index 155d134df..a5a18ff6d 100644 --- a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh +++ b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh @@ -55,6 +55,7 @@ #include "mem/ruby/common/DataBlock.hh" #include "mem/ruby/common/TypeDefines.hh" #include "mem/ruby/common/WriteMask.hh" +#include "mem/ruby/protocol/RubyRequestType.hh" inline Cycles zero_time() { return Cycles(0); } -- 2.30.2