| 1 | /* |
| 2 | * QEMU PPC (monitor definitions) |
| 3 | * |
| 4 | * Copyright (c) 2003-2004 Fabrice Bellard |
| 5 | * |
| 6 | * SPDX-License-Identifier: MIT |
| 7 | */ |
| 8 | |
| 9 | #include "qemu/osdep.h" |
| 10 | #include "monitor/monitor.h" |
| 11 | #include "monitor/hmp.h" |
| 12 | #include "cpu.h" |
| 13 | |
| 14 | #ifdef CONFIG_HMP |
| 15 | void hmp_info_tlb(MonitorHMP *hmp, const QDict *qdict) |
| 16 | { |
| 17 | CPUArchState *env1 = monitor_hmp_get_cpu_env(hmp); |
| 18 | |
| 19 | if (!env1) { |
| 20 | monitor_hmp_printf(hmp, "No CPU available\n"); |
| 21 | return; |
| 22 | } |
| 23 | dump_mmu(env1); |
| 24 | } |
| 25 | #endif |