diff options
author | Bjoern A. Zeeb <baz21@cam.ac.uk> | 2016-04-15 10:02:58 -0500 |
---|---|---|
committer | Bjoern A. Zeeb <baz21@cam.ac.uk> | 2016-04-15 10:02:58 -0500 |
commit | bc45e930e4d7368a21270767e3530aa8f3306a93 (patch) | |
tree | 9676f7c785088ef40a3545f420b6c589f3beaab2 /src | |
parent | 1b46c175fcab7af3c24bf11e32118cb7c2257b2f (diff) | |
download | gem5-bc45e930e4d7368a21270767e3530aa8f3306a93.tar.xz |
mem: FreeBSD does not provide MAP_NORESERVE either
Like OS X, FreeBSD does not support MAP_NORESERVE.
Handle accordingly and update comment.
Committed by Jason Lowe-Power <power.jg@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/physical.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc index 5fd459121..82e331fe1 100644 --- a/src/mem/physical.cc +++ b/src/mem/physical.cc @@ -59,10 +59,10 @@ /** * On Linux, MAP_NORESERVE allow us to simulate a very large memory * without committing to actually providing the swap space on the - * host. On OSX the MAP_NORESERVE flag does not exist, so simply make - * it 0. + * host. On FreeBSD or OSX the MAP_NORESERVE flag does not exist, + * so simply make it 0. */ -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__FreeBSD__) #ifndef MAP_NORESERVE #define MAP_NORESERVE 0 #endif |