Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.2-pull-request...
[qemu.git] / accel / tcg / hmp.c
bloba6e72fdb3ed65d4622daa592672cd26bc510f134
1 #include "qemu/osdep.h"
2 #include "qemu/error-report.h"
3 #include "exec/exec-all.h"
4 #include "monitor/monitor.h"
5 #include "sysemu/tcg.h"
7 static void hmp_info_jit(Monitor *mon, const QDict *qdict)
9 if (!tcg_enabled()) {
10 error_report("JIT information is only available with accel=tcg");
11 return;
14 dump_exec_info();
15 dump_drift_info();
18 static void hmp_info_opcount(Monitor *mon, const QDict *qdict)
20 dump_opcount_info();
23 static void hmp_tcg_register(void)
25 monitor_register_hmp("jit", true, hmp_info_jit);
26 monitor_register_hmp("opcount", true, hmp_info_opcount);
29 type_init(hmp_tcg_register);