projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69268cd
)
ram: Export last_ram_offset()
author
Juan Quintela
<quintela@redhat.com>
Fri, 20 Jul 2012 08:37:54 +0000
(10:37 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Wed, 17 Oct 2012 16:34:58 +0000
(18:34 +0200)
Is the only way of knowing the RAM size.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
cpu-all.h
patch
|
blob
|
history
exec.c
patch
|
blob
|
history
diff --git
a/cpu-all.h
b/cpu-all.h
index 2b99682677b86c22625e97fe7667ee397439cae7..287b0003ea00b000e6667864bf225d6b5e4f60da 100644
(file)
--- 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 7899042ce9a3afb49c91fe01ce0ff67a2372fb25..e63ad0da3d87dec1dd9e97baa06d4d807085d46d 100644
(file)
--- 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;