From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEytv-0006zM-Su for qemu-devel@nongnu.org; Fri, 21 Sep 2012 04:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEyts-0004a2-KL for qemu-devel@nongnu.org; Fri, 21 Sep 2012 04:47:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEyts-0004Zt-BW for qemu-devel@nongnu.org; Fri, 21 Sep 2012 04:47:52 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8L8lphA019065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Sep 2012 04:47:51 -0400 From: Juan Quintela Date: Fri, 21 Sep 2012 10:47:05 +0200 Message-Id: <1348217255-22441-12-git-send-email-quintela@redhat.com> In-Reply-To: <1348217255-22441-1-git-send-email-quintela@redhat.com> References: <1348217255-22441-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 11/41] ram: Export last_ram_offset() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Is the only way of knowing the RAM size. Signed-off-by: Juan Quintela --- cpu-all.h | 2 ++ exec.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu-all.h b/cpu-all.h index 74d3681..5408782 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -517,6 +517,8 @@ extern int mem_prealloc; void dump_exec_info(FILE *f, fprintf_function cpu_fprintf); #endif /* !CONFIG_USER_ONLY */ +ram_addr_t last_ram_offset(void); + int cpu_memory_rw_debug(CPUArchState *env, target_ulong addr, uint8_t *buf, int len, int is_write); diff --git a/exec.c b/exec.c index f22e9e6..ad2cc2e 100644 --- a/exec.c +++ b/exec.c @@ -2464,7 +2464,7 @@ static ram_addr_t find_ram_offset(ram_addr_t size) return offset; } -static ram_addr_t last_ram_offset(void) +ram_addr_t last_ram_offset(void) { RAMBlock *block; ram_addr_t last = 0; -- 1.7.11.4