Patchwork [08/27] ram: Export last_ram_offset()

login
register
mail settings
Submitter Juan Quintela
Date July 24, 2012, 6:36 p.m.
Message ID <1343155012-26316-9-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/173027/
State New
Headers show

Comments

Juan Quintela - July 24, 2012, 6:36 p.m.
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(-)

Patch

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;