diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-07-16 18:45:00 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2013-07-22 21:54:52 +0300 |
commit | 24cb36a61c663d98a53338620e88e4cd3403459a (patch) | |
tree | f50ee27aca89b80b87bb4f63d3a40cadd830b782 /linux-user/mmap.c | |
parent | 2667e71c3d9262d756bea1473e2ea28eb2c9c070 (diff) | |
download | qemu-24cb36a61c663d98a53338620e88e4cd3403459a.zip qemu-24cb36a61c663d98a53338620e88e4cd3403459a.tar.gz qemu-24cb36a61c663d98a53338620e88e4cd3403459a.tar.bz2 |
configure: Make NPTL non-optional
Now all linux-user targets support building with NPTL, we can make it
mandatory. This is a good idea because:
* NPTL is no longer new and experimental; it is completely standard
* in practice, linux-user without NPTL is nearly useless for
binaries built against non-ancient glibc
* it allows us to delete the rather untested code for handling
the non-NPTL configuration
Note that this patch leaves the CONFIG_USE_NPTL ifdefs in the
bsd-user codebase alone. This makes no change for bsd-user, since
our configure test for NPTL had a "#include <linux/futex.h>"
which means bsd-user would never have been compiled with
CONFIG_USE_NPTL defined, and it still is not.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/mmap.c')
-rw-r--r-- | linux-user/mmap.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c index de22197..a249f0c 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -33,7 +33,6 @@ //#define DEBUG_MMAP -#if defined(CONFIG_USE_NPTL) static pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER; static __thread int mmap_lock_count; @@ -66,16 +65,6 @@ void mmap_fork_end(int child) else pthread_mutex_unlock(&mmap_mutex); } -#else -/* We aren't threadsafe to start with, so no need to worry about locking. */ -void mmap_lock(void) -{ -} - -void mmap_unlock(void) -{ -} -#endif /* NOTE: all the constants are the HOST ones, but addresses are target. */ int target_mprotect(abi_ulong start, abi_ulong len, int prot) |