-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
monitor/tcg: move tcg hmp commands to accel/tcg, register them dynami…
…cally One more little step towards modular tcg ... Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Jose R. Ziviani <jziviani@suse.de> Message-Id: <20210624103836.2382472-35-kraxel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
- Loading branch information
Showing
4 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "qemu/osdep.h" | ||
#include "qemu/error-report.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(); | ||
} | ||
|
||
static void hmp_tcg_register(void) | ||
{ | ||
monitor_register_hmp("jit", true, hmp_info_jit); | ||
monitor_register_hmp("opcount", true, hmp_info_opcount); | ||
} | ||
|
||
type_init(hmp_tcg_register); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters