From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jfj2E-0001wb-Hx for qemu-devel@nongnu.org; Sat, 29 Mar 2008 17:56:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jfj2C-0001sd-OA for qemu-devel@nongnu.org; Sat, 29 Mar 2008 17:56:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfj2C-0001sA-Gi for qemu-devel@nongnu.org; Sat, 29 Mar 2008 17:56:20 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jfj2C-00011H-BX for qemu-devel@nongnu.org; Sat, 29 Mar 2008 17:56:20 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e1.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m2TLu9HN028976 for ; Sat, 29 Mar 2008 17:56:09 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m2TLu949232538 for ; Sat, 29 Mar 2008 17:56:09 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m2TLu8r2006412 for ; Sat, 29 Mar 2008 17:56:09 -0400 From: Anthony Liguori Date: Sat, 29 Mar 2008 16:55:55 -0500 Message-Id: <1206827760-4566-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 1/6] Use ram_addr_t for cpu_get_physical_page_desc Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm-devel@lists.sourceforge.net, Marcelo Tosatti , Anthony Liguori , Aurelien Jarno uint32_t is the wrong type to use to represent physical addresses. Signed-off-by: Anthony Liguori diff --git a/cpu-all.h b/cpu-all.h index 2a2b197..9e5d33b 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -834,7 +834,7 @@ typedef uint32_t CPUReadMemoryFunc(void *opaque, target_phys_addr_t addr); void cpu_register_physical_memory(target_phys_addr_t start_addr, unsigned long size, unsigned long phys_offset); -uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr); +ram_addr_t cpu_get_physical_page_desc(target_phys_addr_t addr); ram_addr_t qemu_ram_alloc(unsigned int size); void qemu_ram_free(ram_addr_t addr); int cpu_register_io_memory(int io_index, diff --git a/exec.c b/exec.c index 48dabd6..c25872d 100644 --- a/exec.c +++ b/exec.c @@ -2075,7 +2075,7 @@ void cpu_register_physical_memory(target_phys_addr_t start_addr, } /* XXX: temporary until new memory mapping API */ -uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr) +ram_addr_t cpu_get_physical_page_desc(target_phys_addr_t addr) { PhysPageDesc *p;