static void gt64120_pci_mapping(GT64120State *s)

{

    /* Update IO mapping */

    if ((s->regs[GT_PCI0IOLD] & 0x7f) <= s->regs[GT_PCI0IOHD])

    {

      /* Unmap old IO address */

      if (s->PCI0IO_length)

      {

          memory_region_del_subregion(get_system_memory(), &s->PCI0IO_mem);

          memory_region_destroy(&s->PCI0IO_mem);

      }

      /* Map new IO address */

      s->PCI0IO_start = s->regs[GT_PCI0IOLD] << 21;

      s->PCI0IO_length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21;

      isa_mem_base = s->PCI0IO_start;

      isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length);

    }

}

static void gt64120_pci_mapping(GT64120State *s)

{

    

    if ((s->regs[GT_PCI0IOLD] & 0x7f) <= s->regs[GT_PCI0IOHD])

    {

      

      if (s->PCI0IO_length)

      {

          memory_region_del_subregion(get_system_memory(), &s->PCI0IO_mem);

          memory_region_destroy(&s->PCI0IO_mem);

      }

      

      s->PCI0IO_start = s->regs[GT_PCI0IOLD] << 21;

      s->PCI0IO_length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21;

      isa_mem_base = s->PCI0IO_start;

      isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length);

    }

}

      isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length);
static void FUNC_0(GT64120State *VAR_0)

{

    

    if ((VAR_0->regs[GT_PCI0IOLD] & 0x7f) <= VAR_0->regs[GT_PCI0IOHD])

    {

      

      if (VAR_0->PCI0IO_length)

      {

          memory_region_del_subregion(get_system_memory(), &VAR_0->PCI0IO_mem);

          memory_region_destroy(&VAR_0->PCI0IO_mem);

      }

      

      VAR_0->PCI0IO_start = VAR_0->regs[GT_PCI0IOLD] << 21;

      VAR_0->PCI0IO_length = ((VAR_0->regs[GT_PCI0IOHD] + 1) - (VAR_0->regs[GT_PCI0IOLD] & 0x7f)) << 21;

      isa_mem_base = VAR_0->PCI0IO_start;

      isa_mmio_init(VAR_0->PCI0IO_start, VAR_0->PCI0IO_length);

    }

}

static void FUNC_0(GT64120State *VAR_0)
{ if ((VAR_0->regs[GT_PCI0IOLD] & 0x7f) <= VAR_0->regs[GT_PCI0IOHD])
{ if (VAR_0->PCI0IO_length)
{ memory_region_del_subregion(get_system_memory(), &VAR_0->PCI0IO_mem); memory_region_destroy(&VAR_0->PCI0IO_mem); } VAR_0->PCI0IO_start = VAR_0->regs[GT_PCI0IOLD] << 21; VAR_0->PCI0IO_length = ((VAR_0->regs[GT_PCI0IOHD] + 1) - (VAR_0->regs[GT_PCI0IOLD] & 0x7f)) << 21; isa_mem_base = VAR_0->PCI0IO_start; isa_mmio_init(VAR_0->PCI0IO_start, VAR_0->PCI0IO_length); } }