aboutsummaryrefslogtreecommitdiff
path: root/accel/tcg/hmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel/tcg/hmp.c')
-rw-r--r--accel/tcg/hmp.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/accel/tcg/hmp.c b/accel/tcg/hmp.c
index a6e72fd..01c767a 100644
--- a/accel/tcg/hmp.c
+++ b/accel/tcg/hmp.c
@@ -1,20 +1,11 @@
#include "qemu/osdep.h"
#include "qemu/error-report.h"
+#include "qapi/error.h"
+#include "qapi/qapi-commands-machine.h"
#include "exec/exec-all.h"
#include "monitor/monitor.h"
#include "sysemu/tcg.h"
-static void hmp_info_jit(Monitor *mon, const QDict *qdict)
-{
- if (!tcg_enabled()) {
- error_report("JIT information is only available with accel=tcg");
- return;
- }
-
- dump_exec_info();
- dump_drift_info();
-}
-
static void hmp_info_opcount(Monitor *mon, const QDict *qdict)
{
dump_opcount_info();
@@ -22,7 +13,7 @@ static void hmp_info_opcount(Monitor *mon, const QDict *qdict)
static void hmp_tcg_register(void)
{
- monitor_register_hmp("jit", true, hmp_info_jit);
+ monitor_register_hmp_info_hrt("jit", qmp_x_query_jit);
monitor_register_hmp("opcount", true, hmp_info_opcount);
}