summaryrefslogtreecommitdiff
path: root/src/mem/ruby/structures/DirectoryMemory.py
diff options
context:
space:
mode:
authorLena Olson <leolson@google.com>2017-02-05 17:20:34 -0600
committerJason Lowe-Power <jason@lowepower.com>2017-03-09 11:20:05 -0600
commitb2669a7875526be1036cfb5c451d210213758c22 (patch)
treefe7ab6602c1334f5a7270a13ec059f2255baa5db /src/mem/ruby/structures/DirectoryMemory.py
parent620bf51ae7bcbcd373d7d7a5179d063af41dd0b1 (diff)
downloadgem5-b2669a7875526be1036cfb5c451d210213758c22.tar.xz
ruby: fix MOESI_hammer directory to work with > 3GB memory
The MOESI_hammer directory assumes a contiguous address space, but X86 has an IO gap from 3-4GB. This patch allows the directory to work with more than 3GB of memory on X86. Assumptions: the physical address space (range of possible physical addresses) is 0-XGB when X <= 3GB, and 0-(X+1)GB when X > 3GB. If there is no IO gap this patch should still work. Change-Id: I5453a09e953643cada2c096a91d339a3676f55ee Reviewed-on: https://gem5-review.googlesource.com/2169 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/mem/ruby/structures/DirectoryMemory.py')
-rw-r--r--src/mem/ruby/structures/DirectoryMemory.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/ruby/structures/DirectoryMemory.py b/src/mem/ruby/structures/DirectoryMemory.py
index bb9765bdb..2518380b2 100644
--- a/src/mem/ruby/structures/DirectoryMemory.py
+++ b/src/mem/ruby/structures/DirectoryMemory.py
@@ -40,3 +40,4 @@ class RubyDirectoryMemory(SimObject):
# the default value of the numa high bit is specified in the command line
# option and must be passed into the directory memory sim object
numa_high_bit = Param.Int("numa high bit")
+ system = Param.System(Parent.any, "system object")