]> git.proxmox.com Git - qemu.git/blobdiff - target-alpha/cpu-qom.h
virtio: add virtio_bus_get_dev_path.
[qemu.git] / target-alpha / cpu-qom.h
index f2414f7e4f25a711d58a4aed67d0980b4ac09035..32ee286db303d2a9e69c18336099f91e4841b1f0 100644 (file)
@@ -34,6 +34,7 @@
 
 /**
  * AlphaCPUClass:
+ * @parent_realize: The parent class' realize handler.
  * @parent_reset: The parent class' reset handler.
  *
  * An Alpha CPU model.
@@ -43,6 +44,7 @@ typedef struct AlphaCPUClass {
     CPUClass parent_class;
     /*< public >*/
 
+    DeviceRealize parent_realize;
     void (*parent_reset)(CPUState *cpu);
 } AlphaCPUClass;
 
@@ -58,6 +60,9 @@ typedef struct AlphaCPU {
     /*< public >*/
 
     CPUAlphaState env;
+
+    /* This alarm doesn't exist in real hardware; we wish it did.  */
+    struct QEMUTimer *alarm_timer;
 } AlphaCPU;
 
 static inline AlphaCPU *alpha_env_get_cpu(CPUAlphaState *env)
@@ -67,5 +72,8 @@ static inline AlphaCPU *alpha_env_get_cpu(CPUAlphaState *env)
 
 #define ENV_GET_CPU(e) CPU(alpha_env_get_cpu(e))
 
+#define ENV_OFFSET offsetof(AlphaCPU, env)
+
+void alpha_cpu_do_interrupt(CPUState *cpu);
 
 #endif