blob: 279cf417f0b35433e54cef1c18fba031552f0bd0 [file] [log] [blame]
#ifndef QEMU_ARM_CPU_QOM_H
#define QEMU_ARM_CPU_QOM_H
#include "qemu/osdep.h"
#include "qom/cpu.h"
typedef struct ARMCPU {
CPUState parent_obj;
CPUARMState env;
} ARMCPU;
static inline ARMCPU *arm_env_get_cpu(CPUARMState *env)
{
return container_of(env, ARMCPU, env);
}
#define ENV_GET_CPU(e) CPU(arm_env_get_cpu(e))
#define ENV_OFFSET offsetof(ARMCPU, env)
#ifndef CONFIG_USER_ONLY
extern const struct VMStateDescription vmstate_arm_cpu;
#endif
#define vmstate_arch_cpu vmstate_arm_cpu
#endif // QEMU_ARM_CPU_QOM_H