physical.cc (11321:02e930db812d) physical.cc (11446:ae6e3dd1c32c)
1/*
2 * Copyright (c) 2012, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 45 unchanged lines hidden (view full) ---

54#include "debug/AddrRanges.hh"
55#include "debug/Checkpoint.hh"
56#include "mem/abstract_mem.hh"
57#include "mem/physical.hh"
58
59/**
60 * On Linux, MAP_NORESERVE allow us to simulate a very large memory
61 * without committing to actually providing the swap space on the
1/*
2 * Copyright (c) 2012, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 45 unchanged lines hidden (view full) ---

54#include "debug/AddrRanges.hh"
55#include "debug/Checkpoint.hh"
56#include "mem/abstract_mem.hh"
57#include "mem/physical.hh"
58
59/**
60 * On Linux, MAP_NORESERVE allow us to simulate a very large memory
61 * without committing to actually providing the swap space on the
62 * host. On OSX the MAP_NORESERVE flag does not exist, so simply make
63 * it 0.
62 * host. On FreeBSD or OSX the MAP_NORESERVE flag does not exist,
63 * so simply make it 0.
64 */
64 */
65#if defined(__APPLE__)
65#if defined(__APPLE__) || defined(__FreeBSD__)
66#ifndef MAP_NORESERVE
67#define MAP_NORESERVE 0
68#endif
69#endif
70
71using namespace std;
72
73PhysicalMemory::PhysicalMemory(const string& _name,

--- 377 unchanged lines hidden ---
66#ifndef MAP_NORESERVE
67#define MAP_NORESERVE 0
68#endif
69#endif
70
71using namespace std;
72
73PhysicalMemory::PhysicalMemory(const string& _name,

--- 377 unchanged lines hidden ---