Removed include dependency between WriteMask and RubySystem.
Change-Id: I3e81267341e3875b1bb0fc3cb39f1a308e383dfd
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31258
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
#include "mem/ruby/system/RubySystem.hh"
+WriteMask::WriteMask()
+ : mSize(RubySystem::getBlockSizeBytes()), mMask(mSize, false),
+ mAtomic(false)
+{}
+
void
WriteMask::print(std::ostream& out) const
{
#include <iostream>
#include <vector>
+#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<std::pair<int, AtomicOpFunctor* >> AtomicOpVector;
- WriteMask()
- : mSize(RubySystem::getBlockSizeBytes()), mMask(mSize, false),
- mAtomic(false)
- {}
+ WriteMask();
WriteMask(int size)
: mSize(size), mMask(size, false), mAtomic(false)
#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); }