mirror of https://github.com/xemu-project/xemu.git
tcx: ensure tcx_set_dirty() also invalidates the 24-bit plane and cplane
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
9800b3c20e
commit
4b865c2809
|
@ -96,6 +96,13 @@ typedef struct TCXState {
|
||||||
static void tcx_set_dirty(TCXState *s, ram_addr_t addr, int len)
|
static void tcx_set_dirty(TCXState *s, ram_addr_t addr, int len)
|
||||||
{
|
{
|
||||||
memory_region_set_dirty(&s->vram_mem, addr, len);
|
memory_region_set_dirty(&s->vram_mem, addr, len);
|
||||||
|
|
||||||
|
if (s->depth == 24) {
|
||||||
|
memory_region_set_dirty(&s->vram_mem, s->vram24_offset + addr * 4,
|
||||||
|
len * 4);
|
||||||
|
memory_region_set_dirty(&s->vram_mem, s->cplane_offset + addr * 4,
|
||||||
|
len * 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int tcx24_check_dirty(TCXState *s, ram_addr_t page,
|
static inline int tcx24_check_dirty(TCXState *s, ram_addr_t page,
|
||||||
|
|
Loading…
Reference in New Issue