projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c245b
)
Use mmap to allocate execute memory
author
Tobias Nygren
<tnn@netbsd.org>
Sun, 7 Aug 2011 09:57:05 +0000
(09:57 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 7 Aug 2011 09:57:05 +0000
(09:57 +0000)
Use mmap to allocate executable memory on NetBSD as well.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index 5bc920313af1395b751528f0586cfe1372fca87f..719fff9a915f07d0ff2f7c313bceacb6a16332ab 100644
(file)
--- a/
exec.c
+++ b/
exec.c
@@
-526,7
+526,8
@@
static void code_gen_alloc(unsigned long tb_size)
}
}
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
- || defined(__DragonFly__) || defined(__OpenBSD__)
+ || defined(__DragonFly__) || defined(__OpenBSD__) \
+ || defined(__NetBSD__)
{
int flags;
void *addr = NULL;