[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] hw/display/tcx: Avoid clearing dirty bitmap in DeviceReset()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH] hw/display/tcx: Avoid clearing dirty bitmap in DeviceReset() |
Date: |
Sat, 22 Jan 2022 01:07:07 +0100 |
Commit 2dd285b5f3 ("tcx: make display updates thread safe")
converted this model to use the DirtyBitmapSnapshot API,
resetting the dirty bitmap in tcx_update_display(). There
is no need to do it again in the DeviceReset handler.
See more details in commit fec5e8c92b ("vga: make display
updates thread safe.").
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/display/tcx.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/hw/display/tcx.c b/hw/display/tcx.c
index d4d09d0df8..22b0ae4761 100644
--- a/hw/display/tcx.c
+++ b/hw/display/tcx.c
@@ -371,8 +371,6 @@ static void tcx_reset(DeviceState *d)
s->r[258] = s->g[258] = s->b[258] = 255;
update_palette_entries(s, 0, 260);
memset(s->vram, 0, MAXX*MAXY);
- memory_region_reset_dirty(&s->vram_mem, 0, MAXX * MAXY * (1 + 4 + 4),
- DIRTY_MEMORY_VGA);
s->dac_index = 0;
s->dac_state = 0;
s->cursx = 0xf000; /* Put cursor off screen */
--
2.34.1
- [PATCH] hw/display/tcx: Avoid clearing dirty bitmap in DeviceReset(),
Philippe Mathieu-Daudé <=