Commit bb433bef5ad177ff95c2c18afe4957bd987687be
1 parent
0b64d008
Remove superfluous gt64xxx_pci_mapping calls.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3064 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
7 deletions
hw/gt64xxx.c
... | ... | @@ -330,36 +330,33 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, |
330 | 330 | case GT_PCI0M0LD: |
331 | 331 | s->regs[GT_PCI0M0LD] = val & 0x00007fff; |
332 | 332 | s->regs[GT_PCI0M0REMAP] = val & 0x000007ff; |
333 | - gt64120_pci_mapping(s); | |
334 | 333 | break; |
335 | 334 | case GT_PCI0M1LD: |
336 | 335 | s->regs[GT_PCI0M1LD] = val & 0x00007fff; |
337 | 336 | s->regs[GT_PCI0M1REMAP] = val & 0x000007ff; |
338 | - gt64120_pci_mapping(s); | |
339 | 337 | break; |
340 | 338 | case GT_PCI1IOLD: |
341 | 339 | s->regs[GT_PCI1IOLD] = val & 0x00007fff; |
342 | 340 | s->regs[GT_PCI1IOREMAP] = val & 0x000007ff; |
343 | - gt64120_pci_mapping(s); | |
344 | 341 | break; |
345 | 342 | case GT_PCI1M0LD: |
346 | 343 | s->regs[GT_PCI1M0LD] = val & 0x00007fff; |
347 | 344 | s->regs[GT_PCI1M0REMAP] = val & 0x000007ff; |
348 | - gt64120_pci_mapping(s); | |
349 | 345 | break; |
350 | 346 | case GT_PCI1M1LD: |
351 | 347 | s->regs[GT_PCI1M1LD] = val & 0x00007fff; |
352 | 348 | s->regs[GT_PCI1M1REMAP] = val & 0x000007ff; |
353 | - gt64120_pci_mapping(s); | |
354 | 349 | break; |
355 | 350 | case GT_PCI0IOHD: |
351 | + s->regs[saddr] = val & 0x0000007f; | |
352 | + gt64120_pci_mapping(s); | |
353 | + break; | |
356 | 354 | case GT_PCI0M0HD: |
357 | 355 | case GT_PCI0M1HD: |
358 | 356 | case GT_PCI1IOHD: |
359 | 357 | case GT_PCI1M0HD: |
360 | 358 | case GT_PCI1M1HD: |
361 | 359 | s->regs[saddr] = val & 0x0000007f; |
362 | - gt64120_pci_mapping(s); | |
363 | 360 | break; |
364 | 361 | case GT_ISD: |
365 | 362 | s->regs[saddr] = val & 0x00007fff; |
... | ... | @@ -373,7 +370,6 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, |
373 | 370 | case GT_PCI1M0REMAP: |
374 | 371 | case GT_PCI1M1REMAP: |
375 | 372 | s->regs[saddr] = val & 0x000007ff; |
376 | - gt64120_pci_mapping(s); | |
377 | 373 | break; |
378 | 374 | |
379 | 375 | /* CPU Error Report */ | ... | ... |