mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
memory: Rename memory_region_init_ram() to memory_region_init_ram_nomigrate()
Rename memory_region_init_ram() to memory_region_init_ram_nomigrate(). This leaves the way clear for us to provide a memory_region_init_ram() which does handle migration. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1499438577-7674-4-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
a5c0234bb2
commit
1cfe48c1ce
72 changed files with 121 additions and 120 deletions
|
@ -807,7 +807,7 @@ static int onenand_initfn(SysBusDevice *sbd)
|
|||
}
|
||||
s->otp = memset(g_malloc((64 + 2) << PAGE_SHIFT),
|
||||
0xff, (64 + 2) << PAGE_SHIFT);
|
||||
memory_region_init_ram(&s->ram, OBJECT(s), "onenand.ram",
|
||||
memory_region_init_ram_nomigrate(&s->ram, OBJECT(s), "onenand.ram",
|
||||
0xc000 << s->shift, &error_fatal);
|
||||
vmstate_register_ram_global(&s->ram);
|
||||
ram = memory_region_get_ram_ptr(&s->ram);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue