From e6eccb38ebf52bc87c957ff128dc60ea81d3e2d4 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 26 Jun 2004 16:12:26 +0000 Subject: [PATCH] dac write index register is r/w (Volker Ruppert) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@977 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/vga.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/vga.c b/hw/vga.c index 1a559750a7..2a0a9c3d01 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -190,6 +190,9 @@ static uint32_t vga_ioport_read(void *opaque, uint32_t addr) case 0x3c7: val = s->dac_state; break; + case 0x3c8: + val = s->dac_write_index; + break; case 0x3c9: val = s->palette[s->dac_read_index * 3 + s->dac_sub_index]; if (++s->dac_sub_index == 3) {