]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/sh4/cpu.h
Include qemu-common.h exactly where needed
[mirror_qemu.git] / target / sh4 / cpu.h
index 8b17e6d63e8bbb3b7f0e205d63b24a25acfdda84..aee733eaaa4c62071f2b9e496a791e76983be558 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef SH4_CPU_H
 #define SH4_CPU_H
 
-#include "qemu-common.h"
 #include "cpu-qom.h"
 #include "exec/cpu-defs.h"
 
@@ -179,8 +178,6 @@ typedef struct CPUSH4State {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved over CPU reset. */
     int id;                    /* CPU model */
 
@@ -204,15 +201,10 @@ struct SuperHCPU {
     CPUState parent_obj;
     /*< public >*/
 
+    CPUNegativeOffsetState neg;
     CPUSH4State env;
 };
 
-static inline SuperHCPU *sh_env_get_cpu(CPUSH4State *env)
-{
-    return container_of(env, SuperHCPU, env);
-}
-
-#define ENV_OFFSET offsetof(SuperHCPU, env)
 
 void superh_cpu_do_interrupt(CPUState *cpu);
 bool superh_cpu_exec_interrupt(CPUState *cpu, int int_req);