blob: c25e41bff1bc4c8cb1a2c952dc214df6b0ffb036 [file] [log] [blame]
#ifndef QEMU_MIPS_CPU_QOM_H
#define QEMU_MIPS_CPU_QOM_H
#include "qemu/osdep.h"
#include "qom/cpu.h"
typedef struct MIPSCPU {
CPUState parent_obj;
CPUMIPSState env;
} MIPSCPU;
static inline MIPSCPU *mips_env_get_cpu(CPUMIPSState *env)
{
return container_of(env, MIPSCPU, env);
}
#define ENV_GET_CPU(e) CPU(mips_env_get_cpu(e))
#define ENV_OFFSET offsetof(MIPSCPU, env)
#endif // QEMU_MIPS_CPU_QOM_H