#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;
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);