changeset ae6e3dd1c32c in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=ae6e3dd1c32c
description:
        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 <[email protected]>

diffstat:

 src/mem/physical.cc |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r a89bc3bc9f1e -r ae6e3dd1c32c src/mem/physical.cc
--- a/src/mem/physical.cc       Fri Apr 15 09:55:26 2016 -0500
+++ b/src/mem/physical.cc       Fri Apr 15 10:02:58 2016 -0500
@@ -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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to