@@ -38,7 +38,6 @@ struct MonitorDef {
#endif
const MonitorDef *target_monitor_defs(void);
-int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
CPUArchState *mon_get_cpu_env(Monitor *mon);
CPUState *mon_get_cpu(Monitor *mon);
@@ -66,8 +66,6 @@ int get_monitor_def(Monitor *mon, int64_t *pval, const char *name)
const MonitorDef *md = target_monitor_defs();
CPUState *cs = mon_get_cpu(mon);
void *ptr;
- uint64_t tmp = 0;
- int ret;
if (cs == NULL || md == NULL) {
return -1;
@@ -86,16 +84,10 @@ int get_monitor_def(Monitor *mon, int64_t *pval, const char *name)
}
}
- if (cs->cc->sysemu_ops->monitor_get_register) {
- ret = cs->cc->sysemu_ops->monitor_get_register(cs, name, pval);
- } else {
- ret = target_get_monitor_def(cs, name, &tmp);
- if (!ret) {
- *pval = (target_long) tmp;
- }
+ if (!cs->cc->sysemu_ops->monitor_get_register) {
+ return -1;
}
-
- return ret;
+ return cs->cc->sysemu_ops->monitor_get_register(cs, name, pval);
}
static int
deleted file mode 100644
@@ -1,29 +0,0 @@
-/*
- * Stub for target_get_monitor_def.
- *
- * Copyright IBM Corp., 2015
- *
- * Author: Alexey Kardashevskiy <aik@ozlabs.ru>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "qemu/osdep.h"
-
-int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
-
-int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval)
-{
- return -1;
-}
@@ -75,7 +75,6 @@ if have_system
stub_ss.add(files('igvm.c'))
endif
stub_ss.add(files('kvm.c'))
- stub_ss.add(files('target-get-monitor-def.c'))
stub_ss.add(files('target-monitor-defs.c'))
stub_ss.add(files('win32-kbd-hook.c'))
stub_ss.add(files('xen-hw-stub.c'))