mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target: Use ArchCPU as interface to target CPU
ArchCPU is our interface with target-specific code. Use it as a forward-declared opaque pointer (abstract type), having its structure defined by each target. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220214183144.27402-15-f4bug@amsat.org>
This commit is contained in:
parent
9295b1aa92
commit
b36e239e08
22 changed files with 23 additions and 22 deletions
|
@ -70,8 +70,8 @@ DECLARE_CLASS_CHECKERS(CPUClass, CPU,
|
|||
* The object struct and class struct need to be declared manually.
|
||||
*/
|
||||
#define OBJECT_DECLARE_CPU_TYPE(CpuInstanceType, CpuClassType, CPU_MODULE_OBJ_NAME) \
|
||||
OBJECT_DECLARE_TYPE(CpuInstanceType, CpuClassType, CPU_MODULE_OBJ_NAME); \
|
||||
typedef CpuInstanceType ArchCPU;
|
||||
typedef struct ArchCPU CpuInstanceType; \
|
||||
OBJECT_DECLARE_TYPE(ArchCPU, CpuClassType, CPU_MODULE_OBJ_NAME);
|
||||
|
||||
typedef enum MMUAccessType {
|
||||
MMU_DATA_LOAD = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue