diff -r 84281e7a9b9e -r 60cd4773f745 src/mem/physical.cc --- a/src/mem/physical.cc Thu Mar 10 13:50:49 2016 +0000 +++ b/src/mem/physical.cc Thu Mar 10 14:06:46 2016 +0000 @@ -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