提交 652d7ec2 编写于 作者: J Juan Quintela

ram: Export last_ram_offset()

Is the only way of knowing the RAM size.
Signed-off-by: NJuan Quintela <quintela@redhat.com>
Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 69268cde
......@@ -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,
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册