From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8nn8-00048Q-JY for qemu-devel@nongnu.org; Mon, 12 Aug 2013 04:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8nn1-0006eI-Pp for qemu-devel@nongnu.org; Mon, 12 Aug 2013 04:47:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8nn1-0006cm-Iq for qemu-devel@nongnu.org; Mon, 12 Aug 2013 04:47:47 -0400 Date: Mon, 12 Aug 2013 11:49:23 +0300 From: "Michael S. Tsirkin" Message-ID: <1376295742-28528-2-git-send-email-mst@redhat.com> References: <1376295742-28528-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376295742-28528-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH for-1.6 1/2] memory: export target page size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Anthony Liguori , Laszlo Ersek , Gerd Hoffmann Add symbol to make it possible to use target page size in target-independent code. Signed-off-by: Michael S. Tsirkin --- exec.c | 2 ++ include/exec/memory.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/exec.c b/exec.c index 3ca9381..965076e 100644 --- a/exec.c +++ b/exec.c @@ -2659,6 +2659,8 @@ bool virtio_is_big_endian(void) #endif +uint64_t qemu_target_page_size = TARGET_PAGE_SIZE; + #ifndef CONFIG_USER_ONLY bool cpu_physical_memory_is_io(hwaddr phys_addr) { diff --git a/include/exec/memory.h b/include/exec/memory.h index ebe0d24..3ed747c 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -1056,6 +1056,8 @@ void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len, int is_write, hwaddr access_len); +extern uint64_t qemu_target_page_size; + #endif #endif -- MST