From 652d7ec291d1726ad01587e13331d7277fa402ec Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Fri, 20 Jul 2012 10:37:54 +0200 Subject: [PATCH] ram: Export last_ram_offset() Is the only way of knowing the RAM size. Signed-off-by: Juan Quintela Reviewed-by: Paolo Bonzini --- cpu-all.h | 1 + exec.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu-all.h b/cpu-all.h index 2b99682677..287b0003ea 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -518,6 +518,7 @@ extern int mem_prealloc; #define TLB_MMIO (1 << 5) void dump_exec_info(FILE *f, fprintf_function cpu_fprintf); +ram_addr_t last_ram_offset(void); #endif /* !CONFIG_USER_ONLY */ int cpu_memory_rw_debug(CPUArchState *env, target_ulong addr, diff --git a/exec.c b/exec.c index 7899042ce9..e63ad0da3d 100644 --- a/exec.c +++ b/exec.c @@ -2454,7 +2454,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;