mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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:
parent
2fc5d01bb4
commit
43cf067ff8
5 changed files with 17 additions and 9 deletions
|
@ -1678,7 +1678,7 @@ int get_monitor_def(Monitor *mon, int64_t *pval, const char *name)
|
|||
for(; md->name != NULL; md++) {
|
||||
if (hmp_compare_cmd(name, md->name)) {
|
||||
if (md->get_value) {
|
||||
*pval = md->get_value(md, md->offset);
|
||||
*pval = md->get_value(mon, md, md->offset);
|
||||
} else {
|
||||
CPUArchState *env = mon_get_cpu_env();
|
||||
ptr = (uint8_t *)env + md->offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue