monitor: remove MonitorDef from typedefs.h
MonitorDef is defined by hmp-target.h, and all users except one already include it; the reason why the stubs do not include it, is because hmp-target.h currently can only be used in files that are compiled per target. However, that is easily fixed. Because the benefit of having MonitorDef in typedefs.h is very small, do it and remove the type from typedefs.h. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -25,11 +25,10 @@
|
||||
#ifndef MONITOR_HMP_TARGET_H
|
||||
#define MONITOR_HMP_TARGET_H
|
||||
|
||||
typedef struct MonitorDef MonitorDef;
|
||||
|
||||
#ifdef COMPILING_PER_TARGET
|
||||
#include "cpu.h"
|
||||
|
||||
#define MD_TLONG 0
|
||||
#define MD_I32 1
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user