2a3
> * Copyright (c) 2017 Google Inc.
26a28,29
> *
> * Authors: Lena Olson
35a39
> #include "sim/system.hh"
47c51,58
< m_size_bytes = p->size;
---
> // In X86, there is an IO gap in the 3-4GB range.
> if (p->system->getArch() == Arch::X86ISA && p->size > 0xc0000000){
> // We need to add 1GB to the size for the gap
> m_size_bytes = p->size + 0x40000000;
> }
> else {
> m_size_bytes = p->size;
> }