diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-01-08 16:41:47 +0000 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-01-09 12:04:30 +0100 |
commit | 4e136629f003d0f5be2985b15176acbec2c5a344 (patch) | |
tree | 4942a5fe7c6c04c5830cca66d6bcddbbc4c9c92a | |
parent | 0969e00b3933a10a481f5bc13c834bf1abbc438d (diff) | |
download | qemu-4e136629f003d0f5be2985b15176acbec2c5a344.zip qemu-4e136629f003d0f5be2985b15176acbec2c5a344.tar.gz qemu-4e136629f003d0f5be2985b15176acbec2c5a344.tar.bz2 |
macfb: fix VRAM dirty memory region logging
The macfb VRAM memory region was configured with coalescing rather than dirty
memory logging enabled, causing some areas of the screen not to redraw after
a full screen update.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: 8ac919a065 ("hw/m68k: add Nubus macfb video card")
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220108164147.30813-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r-- | hw/display/macfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/macfb.c b/hw/display/macfb.c index 277d3e6..4bd7c3a 100644 --- a/hw/display/macfb.c +++ b/hw/display/macfb.c @@ -661,9 +661,9 @@ static bool macfb_common_realize(DeviceState *dev, MacfbState *s, Error **errp) memory_region_init_ram(&s->mem_vram, OBJECT(dev), "macfb-vram", MACFB_VRAM_SIZE, &error_abort); + memory_region_set_log(&s->mem_vram, true, DIRTY_MEMORY_VGA); s->vram = memory_region_get_ram_ptr(&s->mem_vram); s->vram_bit_mask = MACFB_VRAM_SIZE - 1; - memory_region_set_coalescing(&s->mem_vram); s->vbl_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, macfb_vbl_timer, s); macfb_update_mode(s); |