mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
hw/display/{cg3.tcx}: Do not use memory_region_init_rom_nomigrate()
Use memory_region_init_rom() instead which is what other devices do. This breaks migration but these devices are only used by sparc Sun machines which have no migration compatibility guarantee. Signed-off-by: BALATON Zoltan <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Reviewed-by: Akihiko Odaki <[email protected].i.u-tokyo.ac.jp> Link: https://lore.kernel.org/r/819df754e359b024bc9bf8f971ecd26816552559.1772924151.git.balaton@eik.bme.hu Signed-off-by: Peter Xu <[email protected]>
This commit is contained in:
1 parent
7608a95d2e
commit
653c4fa5b0
2 files changed
+4
-6
No files matched your search
+2
-3
@@ -282,8 +282,8 @@ static void cg3_initfn(Object *obj)
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
|
||||
CG3State *s = CG3(obj);
|
||||
|
||||
memory_region_init_rom_nomigrate(&s->rom, obj, "cg3.prom",
|
||||
FCODE_MAX_ROM_SIZE, &error_fatal);
|
||||
memory_region_init_rom(&s->rom, obj, "cg3.prom", FCODE_MAX_ROM_SIZE,
|
||||
&error_fatal);
|
||||
sysbus_init_mmio(sbd, &s->rom);
|
||||
|
||||
memory_region_init_io(&s->reg, obj, &cg3_reg_ops, s, "cg3.reg",
|
||||
@@ -299,7 +299,6 @@ static void cg3_realizefn(DeviceState *dev, Error **errp)
|
||||
char *fcode_filename;
|
||||
|
||||
/* FCode ROM */
|
||||
vmstate_register_ram_global(&s->rom);
|
||||
fcode_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, CG3_ROM_FILE);
|
||||
if (fcode_filename) {
|
||||
ret = load_image_mr(fcode_filename, &s->rom);
|
||||
|
||||
+2
-3
@@ -756,8 +756,8 @@ static void tcx_initfn(Object *obj)
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
|
||||
TCXState *s = TCX(obj);
|
||||
|
||||
memory_region_init_rom_nomigrate(&s->rom, obj, "tcx.prom",
|
||||
FCODE_MAX_ROM_SIZE, &error_fatal);
|
||||
memory_region_init_rom(&s->rom, obj, "tcx.prom", FCODE_MAX_ROM_SIZE,
|
||||
&error_fatal);
|
||||
sysbus_init_mmio(sbd, &s->rom);
|
||||
|
||||
/* 2/STIP : Stippler */
|
||||
@@ -822,7 +822,6 @@ static void tcx_realizefn(DeviceState *dev, Error **errp)
|
||||
vram_base = memory_region_get_ram_ptr(&s->vram_mem);
|
||||
|
||||
/* 10/ROM : FCode ROM */
|
||||
vmstate_register_ram_global(&s->rom);
|
||||
fcode_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, TCX_ROM_FILE);
|
||||
if (fcode_filename) {
|
||||
ret = load_image_mr(fcode_filename, &s->rom);
|
||||
|
||||
Reference in new issue
Block a user