Skip to content

Commit

Permalink
translate-all: add missing munmap of the code_gen guard page for MIPS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cota authored and rth7680 committed May 13, 2016
1 parent 835154b commit 8bdf499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translate-all.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 8bdf499

Please sign in to comment.