| 1 | /* |
| 2 | * QEMU monitor for m68k |
| 3 | * |
| 4 | * This work is licensed under the terms of the GNU GPL, version 2 or |
| 5 | * later. See the COPYING file in the top-level directory. |
| 6 | */ |
| 7 | |
| 8 | #include "qemu/osdep.h" |
| 9 | #include "cpu.h" |
| 10 | #include "monitor/hmp.h" |
| 11 | #include "monitor/monitor.h" |
| 12 | |
| 13 | #ifdef CONFIG_HMP |
| 14 | void hmp_info_tlb(MonitorHMP *hmp, const QDict *qdict) |
| 15 | { |
| 16 | CPUArchState *env1 = monitor_hmp_get_cpu_env(hmp); |
| 17 | |
| 18 | if (!env1) { |
| 19 | monitor_hmp_printf(hmp, "No CPU available\n"); |
| 20 | return; |
| 21 | } |
| 22 | |
| 23 | dump_mmu(env1); |
| 24 | } |
| 25 | #endif |