From bb433bef5ad177ff95c2c18afe4957bd987687be Mon Sep 17 00:00:00 2001 From: ths Date: Wed, 11 Jul 2007 22:45:45 +0000 Subject: [PATCH] Remove superfluous gt64xxx_pci_mapping calls. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3064 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/gt64xxx.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index d9f6296478..b027ce8497 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -330,36 +330,33 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, case GT_PCI0M0LD: s->regs[GT_PCI0M0LD] = val & 0x00007fff; s->regs[GT_PCI0M0REMAP] = val & 0x000007ff; - gt64120_pci_mapping(s); break; case GT_PCI0M1LD: s->regs[GT_PCI0M1LD] = val & 0x00007fff; s->regs[GT_PCI0M1REMAP] = val & 0x000007ff; - gt64120_pci_mapping(s); break; case GT_PCI1IOLD: s->regs[GT_PCI1IOLD] = val & 0x00007fff; s->regs[GT_PCI1IOREMAP] = val & 0x000007ff; - gt64120_pci_mapping(s); break; case GT_PCI1M0LD: s->regs[GT_PCI1M0LD] = val & 0x00007fff; s->regs[GT_PCI1M0REMAP] = val & 0x000007ff; - gt64120_pci_mapping(s); break; case GT_PCI1M1LD: s->regs[GT_PCI1M1LD] = val & 0x00007fff; s->regs[GT_PCI1M1REMAP] = val & 0x000007ff; - gt64120_pci_mapping(s); break; case GT_PCI0IOHD: + s->regs[saddr] = val & 0x0000007f; + gt64120_pci_mapping(s); + break; case GT_PCI0M0HD: case GT_PCI0M1HD: case GT_PCI1IOHD: case GT_PCI1M0HD: case GT_PCI1M1HD: s->regs[saddr] = val & 0x0000007f; - gt64120_pci_mapping(s); break; case GT_ISD: s->regs[saddr] = val & 0x00007fff; @@ -373,7 +370,6 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, case GT_PCI1M0REMAP: case GT_PCI1M1REMAP: s->regs[saddr] = val & 0x000007ff; - gt64120_pci_mapping(s); break; /* CPU Error Report */