Revision ea4e78e5 monitor.c
b/monitor.c | ||
---|---|---|
740 | 740 |
*ret_data = QOBJECT(cmd_list); |
741 | 741 |
} |
742 | 742 |
|
743 |
#if defined(TARGET_I386) |
|
744 |
static void do_info_hpet_print(Monitor *mon, const QObject *data) |
|
745 |
{ |
|
746 |
monitor_printf(mon, "HPET is %s by QEMU\n", |
|
747 |
qdict_get_bool(qobject_to_qdict(data), "enabled") ? |
|
748 |
"enabled" : "disabled"); |
|
749 |
} |
|
750 |
|
|
751 |
static void do_info_hpet(Monitor *mon, QObject **ret_data) |
|
752 |
{ |
|
753 |
*ret_data = qobject_from_jsonf("{ 'enabled': %i }", !no_hpet); |
|
754 |
} |
|
755 |
#endif |
|
756 |
|
|
757 | 743 |
static void do_info_uuid_print(Monitor *mon, const QObject *data) |
758 | 744 |
{ |
759 | 745 |
monitor_printf(mon, "%s\n", qdict_get_str(qobject_to_qdict(data), "UUID")); |
... | ... | |
2509 | 2495 |
.help = "show the active virtual memory mappings", |
2510 | 2496 |
.mhandler.info = mem_info, |
2511 | 2497 |
}, |
2512 |
{ |
|
2513 |
.name = "hpet", |
|
2514 |
.args_type = "", |
|
2515 |
.params = "", |
|
2516 |
.help = "show state of HPET", |
|
2517 |
.user_print = do_info_hpet_print, |
|
2518 |
.mhandler.info_new = do_info_hpet, |
|
2519 |
}, |
|
2520 | 2498 |
#endif |
2521 | 2499 |
{ |
2522 | 2500 |
.name = "jit", |
Also available in: Unified diff