From 2933d8d171aaf6e771efc5e948712d96a0115980 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Wed, 2 Dec 2020 23:00:40 -0700 Subject: [PATCH] nv2a: Set VGA color mode after reset --- hw/xbox/nv2a/nv2a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xbox/nv2a/nv2a.c b/hw/xbox/nv2a/nv2a.c index 85ceeaa9c4..9272b894a3 100644 --- a/hw/xbox/nv2a/nv2a.c +++ b/hw/xbox/nv2a/nv2a.c @@ -399,6 +399,8 @@ static void nv2a_reset(NV2AState *d) d->pfifo.regs[NV_PFIFO_CACHE1_STATUS] |= NV_PFIFO_CACHE1_STATUS_LOW_MARK; vga_common_reset(&d->vga); + /* seems to start in color mode */ + d->vga.msr = VGA_MIS_COLOR; d->pgraph.waiting_for_nop = false; d->pgraph.waiting_for_flip = false; @@ -426,8 +428,6 @@ static void nv2a_realize(PCIDevice *dev, Error **errp) /* legacy VGA shit */ VGACommonState *vga = &d->vga; vga->vram_size_mb = 64; - /* seems to start in color mode */ - vga->msr = VGA_MIS_COLOR; vga_common_init(vga, OBJECT(dev)); vga->get_bpp = nv2a_get_bpp;