Is the only way of knowing the RAM size. Signed-off-by: Juan Quintela <quint...@redhat.com> --- 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 0ff452f..45290b7 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -518,6 +518,8 @@ void dump_exec_info(FILE *f, fprintf_function cpu_fprintf); void qemu_mutex_lock_ramlist(void); void qemu_mutex_unlock_ramlist(void); +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 53da253..1a98621 100644 --- a/exec.c +++ b/exec.c @@ -2481,7 +2481,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.10.4