diff options
author | Kevin Wolf | 2020-11-13 12:43:25 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-11-13 13:45:43 +0100 |
commit | 43cf067ff8b17b23e3dd0ba8e0214c55a140f700 (patch) | |
tree | 67694da40a8166cfcaf5a1f749ba5ffd4c03a877 /include/monitor/hmp-target.h | |
parent | hmp: Pass monitor to mon_get_cpu() (diff) | |
download | qemu-43cf067ff8b17b23e3dd0ba8e0214c55a140f700.tar.gz qemu-43cf067ff8b17b23e3dd0ba8e0214c55a140f700.tar.xz qemu-43cf067ff8b17b23e3dd0ba8e0214c55a140f700.zip |
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>
Diffstat (limited to 'include/monitor/hmp-target.h')
-rw-r--r-- | include/monitor/hmp-target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/monitor/hmp-target.h b/include/monitor/hmp-target.h index 519616d1fb..385fb18664 100644 --- a/include/monitor/hmp-target.h +++ b/include/monitor/hmp-target.h @@ -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; }; |