blob: db5718bae50e0b2ef73d89e4b784baf9a4d4bde9 [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;
};
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)
#endif // QEMU_ARM_CPU_QOM_H