leon3.c (ffa4822c015d5670ef6a2239f3cbd2ff2cec57de) leon3.c (e264d29de28c5b0be3d063307ce9fb613b427cc3)
1/*
2 * QEMU Leon3 System Emulator
3 *
4 * Copyright (c) 2010-2011 AdaCore
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

211 grlib_gptimer_create(0x80000300, 2, CPU_CLK, cpu_irqs, 6);
212
213 /* Allocate uart */
214 if (serial_hds[0]) {
215 grlib_apbuart_create(0x80000100, serial_hds[0], cpu_irqs[3]);
216 }
217}
218
1/*
2 * QEMU Leon3 System Emulator
3 *
4 * Copyright (c) 2010-2011 AdaCore
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

211 grlib_gptimer_create(0x80000300, 2, CPU_CLK, cpu_irqs, 6);
212
213 /* Allocate uart */
214 if (serial_hds[0]) {
215 grlib_apbuart_create(0x80000100, serial_hds[0], cpu_irqs[3]);
216 }
217}
218
219static QEMUMachine leon3_generic_machine = {
220 .name = "leon3_generic",
221 .desc = "Leon-3 generic",
222 .init = leon3_generic_hw_init,
223};
224
225static void leon3_machine_init(void)
219static void leon3_generic_machine_init(MachineClass *mc)
226{
220{
227 qemu_register_machine(&leon3_generic_machine);
221 mc->desc = "Leon-3 generic";
222 mc->init = leon3_generic_hw_init;
228}
229
223}
224
230machine_init(leon3_machine_init);
225DEFINE_MACHINE("leon3_generic", leon3_generic_machine_init)