Comments
Patch
@@ -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);
@@ -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;
Is the only way of knowing the RAM size. Signed-off-by: Juan Quintela <quintela@redhat.com> --- cpu-all.h | 2 ++ exec.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)