mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ram: Export last_ram_offset()
Is the only way of knowing the RAM size. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
69268cde14
commit
652d7ec291
2 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
2
exec.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue