hmp: Pass monitor to MonitorDef.get_value()

All of these callbacks use mon_get_cpu_env(). Pass the Monitor
pointer to them it in preparation for adding a monitor argument to
mon_get_cpu_env().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201113114326.97663-3-kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
Kevin Wolf 2020-11-13 12:43:25 +01:00 committed by Dr. David Alan Gilbert
parent 2fc5d01bb4
commit 43cf067ff8
5 changed files with 17 additions and 9 deletions

View file

@ -33,7 +33,8 @@
struct MonitorDef {
const char *name;
int offset;
target_long (*get_value)(const struct MonitorDef *md, int val);
target_long (*get_value)(Monitor *mon, const struct MonitorDef *md,
int val);
int type;
};