mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 17:35:33 +00:00
51aeab661f
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Backports commit 12b167226f2804063cf8d72fe4fdc01764c99e96 from qemu
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* vim:set shiftwidth=4 ts=4 et: */
|
|
/*
|
|
* PXA255 Sharp Zaurus SL-6000 PDA platform
|
|
*
|
|
* Copyright (c) 2008 Dmitry Baryshkov
|
|
*
|
|
* Code based on spitz platform by Andrzej Zaborowski <balrog@zabor.org>
|
|
* This code is licensed under the GNU GPL v2.
|
|
*
|
|
* Contributions after 2012-01-13 are licensed under the terms of the
|
|
* GNU GPL, version 2 or (at your option) any later version.
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "hw/hw.h"
|
|
#include "hw/arm/arm.h"
|
|
#include "hw/boards.h"
|
|
#include "exec/address-spaces.h"
|
|
|
|
|
|
static int tosa_init(struct uc_struct *uc, MachineState *machine)
|
|
{
|
|
if (uc->mode & UC_MODE_MCLASS) {
|
|
uc->cpu = (CPUState *)cpu_arm_init(uc, "cortex-m3");
|
|
} else {
|
|
uc->cpu = (CPUState *)cpu_arm_init(uc, "cortex-a15");
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
void tosa_machine_init(struct uc_struct *uc)
|
|
{
|
|
static QEMUMachine tosapda_machine = { 0 };
|
|
tosapda_machine.name = "tosa",
|
|
tosapda_machine.init = tosa_init,
|
|
tosapda_machine.is_default = 1,
|
|
tosapda_machine.arch = UC_ARCH_ARM,
|
|
|
|
qemu_register_machine(uc, &tosapda_machine, TYPE_MACHINE, NULL);
|
|
}
|