aboutsummaryrefslogtreecommitdiff
path: root/translate-common.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>2015-09-10 22:39:36 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-16 17:33:33 +0200
commit5f12a788c04cf36442f3be00ebf6fdc3b8c8c4ba (patch)
tree25c67325c843faf0a46d99a454e212da2d684460 /translate-common.c
parent162e992270fd3587b21fa77fd4a8ccc879c402c9 (diff)
translate: move real_host_page setting to -common
Move the size and mask globals for the "real" host page size to translate-common. This is to allow system-level code to use REAL_HOST_PAGE_ALIGN and friends in builds which hide translate-all behind arch-obj. Cc: dgilbert@redhat.com Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Message-Id: <b437638691f044bc690a7f03b1240c8b0f34ab57.1441614289.git.crosthwaite.peter@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'translate-common.c')
-rw-r--r--translate-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/translate-common.c b/translate-common.c
index 681e2bf8d5..619feb466e 100644
--- a/translate-common.c
+++ b/translate-common.c
@@ -20,6 +20,9 @@
#include "qemu-common.h"
#include "qom/cpu.h"
+uintptr_t qemu_real_host_page_size;
+uintptr_t qemu_real_host_page_mask;
+
#ifndef CONFIG_USER_ONLY
/* mask must never be zero, except for A20 change call */
static void tcg_handle_interrupt(CPUState *cpu, int mask)