xref: /openbmc/qemu/target/xtensa/monitor.c (revision 683685e7)
1fcf5ef2aSThomas Huth /*
2fcf5ef2aSThomas Huth  * QEMU monitor
3fcf5ef2aSThomas Huth  *
4fcf5ef2aSThomas Huth  * Copyright (c) 2003-2004 Fabrice Bellard
5fcf5ef2aSThomas Huth  *
6fcf5ef2aSThomas Huth  * Permission is hereby granted, free of charge, to any person obtaining a copy
7fcf5ef2aSThomas Huth  * of this software and associated documentation files (the "Software"), to deal
8fcf5ef2aSThomas Huth  * in the Software without restriction, including without limitation the rights
9fcf5ef2aSThomas Huth  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10fcf5ef2aSThomas Huth  * copies of the Software, and to permit persons to whom the Software is
11fcf5ef2aSThomas Huth  * furnished to do so, subject to the following conditions:
12fcf5ef2aSThomas Huth  *
13fcf5ef2aSThomas Huth  * The above copyright notice and this permission notice shall be included in
14fcf5ef2aSThomas Huth  * all copies or substantial portions of the Software.
15fcf5ef2aSThomas Huth  *
16fcf5ef2aSThomas Huth  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17fcf5ef2aSThomas Huth  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18fcf5ef2aSThomas Huth  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19fcf5ef2aSThomas Huth  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20fcf5ef2aSThomas Huth  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21fcf5ef2aSThomas Huth  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22fcf5ef2aSThomas Huth  * THE SOFTWARE.
23fcf5ef2aSThomas Huth  */
24fcf5ef2aSThomas Huth #include "qemu/osdep.h"
25fcf5ef2aSThomas Huth #include "cpu.h"
26fcf5ef2aSThomas Huth #include "monitor/monitor.h"
27fcf5ef2aSThomas Huth #include "monitor/hmp-target.h"
28275307aaSMarkus Armbruster #include "monitor/hmp.h"
29fcf5ef2aSThomas Huth 
hmp_info_tlb(Monitor * mon,const QDict * qdict)30fcf5ef2aSThomas Huth void hmp_info_tlb(Monitor *mon, const QDict *qdict)
31fcf5ef2aSThomas Huth {
32*e7cff9c6SKevin Wolf     CPUArchState *env1 = mon_get_cpu_env(mon);
33fcf5ef2aSThomas Huth 
34854e67feSThomas Huth     if (!env1) {
35854e67feSThomas Huth         monitor_printf(mon, "No CPU available\n");
36854e67feSThomas Huth         return;
37854e67feSThomas Huth     }
38fad866daSMarkus Armbruster     dump_mmu(env1);
39fcf5ef2aSThomas Huth }
40