mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-25 16:25:27 +00:00
2f3f2ae092
Including qemu-common.h from other header files is generally a bad idea, because it means it's very easy to end up with a circular dependency. For instance, if we wanted to include memory.h from qom/cpu.h we'd end up with this loop: memory.h -> qemu-common.h -> cpu.h -> cpu-qom.h -> qom/cpu.h -> memory.h Remove the include from memory.h. This requires us to fix up a few other files which were inadvertently getting declarations indirectly through memory.h. The biggest change is splitting the fprintf_function typedef out into its own header so other headers can get at it without having to include qemu-common.h. Backports commit fba0a593b2809ecdda68650952cf3d3332ac1990 from qemu
24 lines
450 B
C
24 lines
450 B
C
/*
|
|
* Misc ARM declarations
|
|
*
|
|
* Copyright (c) 2006 CodeSourcery.
|
|
* Written by Paul Brook
|
|
*
|
|
* This code is licensed under the LGPL.
|
|
*
|
|
*/
|
|
|
|
#ifndef ARM_MISC_H
|
|
#define ARM_MISC_H
|
|
|
|
#include "exec/memory.h"
|
|
#include "cpu.h"
|
|
|
|
void tosa_machine_init(struct uc_struct *uc);
|
|
void machvirt_machine_init(struct uc_struct *uc); // ARM64
|
|
|
|
void arm_cpu_register_types(void *opaque);
|
|
void aarch64_cpu_register_types(void *opaque);
|
|
|
|
#endif /* !ARM_MISC_H */
|