diff options
author | Emilio G. Cota <cota@braap.org> | 2016-04-21 20:01:54 -0400 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2016-05-12 14:06:41 -1000 |
commit | 8bdf4997823126a39bd4c99e4b2283b02cc7865f (patch) | |
tree | 5fc7ff26ded9a0cb2ef69d06d67820fc4671364d /translate-all.c | |
parent | 835154b6e2200460f04719d0028716a37c178368 (diff) |
translate-all: add missing munmap of the code_gen guard page for MIPS
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1461283314-2353-2-git-send-email-cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/translate-all.c b/translate-all.c index 6b0ecb4f9f..93b91ba5e7 100644 --- a/translate-all.c +++ b/translate-all.c @@ -684,11 +684,11 @@ static inline void *alloc_code_gen_buffer(void) case 1: if (!cross_256mb(buf2, size)) { /* Success! Use the new buffer. */ - munmap(buf, size); + munmap(buf, size + qemu_real_host_page_size); break; } /* Failure. Work with what we had. */ - munmap(buf2, size); + munmap(buf2, size + qemu_real_host_page_size); /* fallthru */ default: /* Split the original buffer. Free the smaller half. */ |