apic.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) apic.c (1437c94b2689c2010362f84d14f14feaa1d8dba3)
1/*
2 * APIC support
3 *
4 * Copyright (c) 2004-2005 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 859 unchanged lines hidden (view full) ---

868 .read = { apic_mem_readb, apic_mem_readw, apic_mem_readl, },
869 .write = { apic_mem_writeb, apic_mem_writew, apic_mem_writel, },
870 },
871 .endianness = DEVICE_NATIVE_ENDIAN,
872};
873
874static void apic_init(APICCommonState *s)
875{
1/*
2 * APIC support
3 *
4 * Copyright (c) 2004-2005 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 859 unchanged lines hidden (view full) ---

868 .read = { apic_mem_readb, apic_mem_readw, apic_mem_readl, },
869 .write = { apic_mem_writeb, apic_mem_writew, apic_mem_writel, },
870 },
871 .endianness = DEVICE_NATIVE_ENDIAN,
872};
873
874static void apic_init(APICCommonState *s)
875{
876 memory_region_init_io(&s->io_memory, NULL, &apic_io_ops, s, "apic-msi",
876 memory_region_init_io(&s->io_memory, OBJECT(s), &apic_io_ops, s, "apic-msi",
877 APIC_SPACE_SIZE);
878
879 s->timer = qemu_new_timer_ns(vm_clock, apic_timer, s);
880 local_apics[s->idx] = s;
881
882 msi_supported = true;
883}
884

--- 27 unchanged lines hidden ---
877 APIC_SPACE_SIZE);
878
879 s->timer = qemu_new_timer_ns(vm_clock, apic_timer, s);
880 local_apics[s->idx] = s;
881
882 msi_supported = true;
883}
884

--- 27 unchanged lines hidden ---