From 27afd421646fd115aa52efb276625626d705a52c Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Wed, 12 Jan 2022 01:12:53 -0700 Subject: [PATCH] nv2a: Add puserdac.palette to vmstate --- hw/xbox/nv2a/nv2a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xbox/nv2a/nv2a.c b/hw/xbox/nv2a/nv2a.c index d8b0ad9ada..d1e69371b5 100644 --- a/hw/xbox/nv2a/nv2a.c +++ b/hw/xbox/nv2a/nv2a.c @@ -561,6 +561,8 @@ static const VMStateDescription vmstate_nv2a = { VMSTATE_UINT64(pramdac.core_clock_freq, NV2AState), VMSTATE_UINT32(pramdac.memory_clock_coeff, NV2AState), VMSTATE_UINT32(pramdac.video_clock_coeff, NV2AState), + VMSTATE_UINT16(puserdac.write_mode_address, NV2AState), + VMSTATE_UINT8_ARRAY(puserdac.palette, NV2AState, 256*3), VMSTATE_BOOL(pgraph.waiting_for_flip, NV2AState), VMSTATE_BOOL(pgraph.waiting_for_nop, NV2AState), VMSTATE_UNUSED(1),