ruby: fix MOESI_hammer directory to work with > 3GB memory
authorLena Olson <leolson@google.com>
Sun, 5 Feb 2017 23:20:34 +0000 (17:20 -0600)
committerJason Lowe-Power <jason@lowepower.com>
Thu, 9 Mar 2017 17:20:05 +0000 (11:20 -0600)
commitb2669a7875526be1036cfb5c451d210213758c22
treefe7ab6602c1334f5a7270a13ec059f2255baa5db
parent620bf51ae7bcbcd373d7d7a5179d063af41dd0b1
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>
src/mem/ruby/structures/DirectoryMemory.cc
src/mem/ruby/structures/DirectoryMemory.py