qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v1 06/15] translate: move real_host_page setting to


From: Peter Crosthwaite
Subject: [Qemu-devel] [PATCH v1 06/15] translate: move real_host_page setting to -common
Date: Thu, 10 Sep 2015 22:39:36 -0700

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: address@hidden
Signed-off-by: Peter Crosthwaite <address@hidden>
---

 translate-all.c    | 2 --
 translate-common.c | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/translate-all.c b/translate-all.c
index 950e991..7532fe3 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -117,8 +117,6 @@ typedef struct PageDesc {
 
 #define V_L1_SHIFT (L1_MAP_ADDR_SPACE_BITS - TARGET_PAGE_BITS - V_L1_BITS)
 
-uintptr_t qemu_real_host_page_size;
-uintptr_t qemu_real_host_page_mask;
 uintptr_t qemu_host_page_size;
 uintptr_t qemu_host_page_mask;
 
diff --git a/translate-common.c b/translate-common.c
index 368a117..339aac2 100644
--- a/translate-common.c
+++ b/translate-common.c
@@ -21,6 +21,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)
-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]