]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/monitor/hmp-target.h
monitor: remove MonitorDef from typedefs.h
[mirror_qemu.git] / include / monitor / hmp-target.h
index d78e979f0532354623528d55eb2d6e46006fb917..b679aaebbff602af99617aa962b61e302cc8f0e9 100644 (file)
 #ifndef MONITOR_HMP_TARGET_H
 #define MONITOR_HMP_TARGET_H
 
-#include "cpu.h"
-
-#define MD_TLONG 0
-#define MD_I32   1
+typedef struct MonitorDef MonitorDef;
 
+#ifdef COMPILING_PER_TARGET
+#include "cpu.h"
 struct MonitorDef {
     const char *name;
     int offset;
@@ -37,6 +36,10 @@ struct MonitorDef {
                              int val);
     int type;
 };
+#endif
+
+#define MD_TLONG 0
+#define MD_I32   1
 
 const MonitorDef *target_monitor_defs(void);
 int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);