1bf957284SPavel Butsykin /* 2bf957284SPavel Butsykin * QEMU monitor 3bf957284SPavel Butsykin * 4bf957284SPavel Butsykin * Copyright (c) 2003-2004 Fabrice Bellard 5bf957284SPavel Butsykin * 6bf957284SPavel Butsykin * Permission is hereby granted, free of charge, to any person obtaining a copy 7bf957284SPavel Butsykin * of this software and associated documentation files (the "Software"), to deal 8bf957284SPavel Butsykin * in the Software without restriction, including without limitation the rights 9bf957284SPavel Butsykin * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10bf957284SPavel Butsykin * copies of the Software, and to permit persons to whom the Software is 11bf957284SPavel Butsykin * furnished to do so, subject to the following conditions: 12bf957284SPavel Butsykin * 13bf957284SPavel Butsykin * The above copyright notice and this permission notice shall be included in 14bf957284SPavel Butsykin * all copies or substantial portions of the Software. 15bf957284SPavel Butsykin * 16bf957284SPavel Butsykin * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17bf957284SPavel Butsykin * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18bf957284SPavel Butsykin * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19bf957284SPavel Butsykin * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20bf957284SPavel Butsykin * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21bf957284SPavel Butsykin * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22bf957284SPavel Butsykin * THE SOFTWARE. 23bf957284SPavel Butsykin */ 24121d0712SMarkus Armbruster 25121d0712SMarkus Armbruster #ifndef MONITOR_HMP_TARGET_H 26121d0712SMarkus Armbruster #define MONITOR_HMP_TARGET_H 27bf957284SPavel Butsykin 28f37c6c2eSPaolo Bonzini typedef struct MonitorDef MonitorDef; 29f37c6c2eSPaolo Bonzini 30f37c6c2eSPaolo Bonzini #ifdef COMPILING_PER_TARGET 31ec150c7eSMarkus Armbruster #include "cpu.h" 32bf957284SPavel Butsykin struct MonitorDef { 33bf957284SPavel Butsykin const char *name; 34bf957284SPavel Butsykin int offset; 3543cf067fSKevin Wolf target_long (*get_value)(Monitor *mon, const struct MonitorDef *md, 3643cf067fSKevin Wolf int val); 37bf957284SPavel Butsykin int type; 38bf957284SPavel Butsykin }; 39f37c6c2eSPaolo Bonzini #endif 40f37c6c2eSPaolo Bonzini 41f37c6c2eSPaolo Bonzini #define MD_TLONG 0 42f37c6c2eSPaolo Bonzini #define MD_I32 1 43bf957284SPavel Butsykin 44bf957284SPavel Butsykin const MonitorDef *target_monitor_defs(void); 450a9516c2SAlexey Kardashevskiy int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval); 46bf957284SPavel Butsykin 47e7cff9c6SKevin Wolf CPUArchState *mon_get_cpu_env(Monitor *mon); 482fc5d01bSKevin Wolf CPUState *mon_get_cpu(Monitor *mon); 49bf957284SPavel Butsykin 50bf957284SPavel Butsykin void hmp_info_mem(Monitor *mon, const QDict *qdict); 51bf957284SPavel Butsykin void hmp_info_tlb(Monitor *mon, const QDict *qdict); 52bf957284SPavel Butsykin void hmp_mce(Monitor *mon, const QDict *qdict); 531f871d49SPavel Butsykin void hmp_info_local_apic(Monitor *mon, const QDict *qdict); 54cd35beb4SPhilippe Mathieu-Daudé void hmp_info_sev(Monitor *mon, const QDict *qdict); 5557d874c4SYang Zhong void hmp_info_sgx(Monitor *mon, const QDict *qdict); 56409e9f71SMark Cave-Ayland void hmp_info_via(Monitor *mon, const QDict *qdict); 57e2245566SMarkus Armbruster void hmp_memory_dump(Monitor *mon, const QDict *qdict); 58e2245566SMarkus Armbruster void hmp_physical_memory_dump(Monitor *mon, const QDict *qdict); 59e2245566SMarkus Armbruster void hmp_info_registers(Monitor *mon, const QDict *qdict); 60e2245566SMarkus Armbruster void hmp_gva2gpa(Monitor *mon, const QDict *qdict); 61e2245566SMarkus Armbruster void hmp_gpa2hva(Monitor *mon, const QDict *qdict); 62e2245566SMarkus Armbruster void hmp_gpa2hpa(Monitor *mon, const QDict *qdict); 63bf957284SPavel Butsykin 64121d0712SMarkus Armbruster #endif /* MONITOR_HMP_TARGET_H */ 65