OSDN Git Service
(root)
/
qmiga
/
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
2b99682
..
287b000
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
7899042
..
e63ad0d
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;