From a9509e04eed8c592b051dee45202bf4348a8f14d Mon Sep 17 00:00:00 2001 From: SarahW Date: Fri, 17 May 2019 17:03:38 +0100 Subject: [PATCH] Cirrus GD5429 doesn't support PCI, so don't look at the PCI command register when updating mappings. Fixes GD5429 on PCI systems. --- src/vid_cl5429.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vid_cl5429.c b/src/vid_cl5429.c index 3a863e5..6d62d43 100644 --- a/src/vid_cl5429.c +++ b/src/vid_cl5429.c @@ -437,7 +437,7 @@ void gd5429_recalc_mapping(gd5429_t *gd5429) { svga_t *svga = &gd5429->svga; - if (PCI && !(gd5429->pci_regs[PCI_REG_COMMAND] & PCI_COMMAND_MEM)) + if (PCI && gd5429->type >= CL_TYPE_GD5430 && !(gd5429->pci_regs[PCI_REG_COMMAND] & PCI_COMMAND_MEM)) { mem_mapping_disable(&svga->mapping); mem_mapping_disable(&gd5429->linear_mapping);