Lines Matching +full:no +full:- +full:1 +full:- +full:8 +full:- +full:v
2 * Miscellaneous target-dependent HMP commands
4 * Copyright (c) 2003-2004 Fabrice Bellard
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 #include "exec/address-spaces.h"
29 #include "monitor/hmp-target.h"
30 #include "monitor/monitor-internal.h"
42 return -1; in monitor_set_cpu()
44 g_free(mon->mon_cpu_path); in monitor_set_cpu()
45 mon->mon_cpu_path = object_get_canonical_path(OBJECT(cpu)); in monitor_set_cpu()
54 if (mon->mon_cpu_path) { in mon_get_cpu_sync()
55 cpu = (CPUState *) object_resolve_path_type(mon->mon_cpu_path, in mon_get_cpu_sync()
58 g_free(mon->mon_cpu_path); in mon_get_cpu_sync()
59 mon->mon_cpu_path = NULL; in mon_get_cpu_sync()
62 if (!mon->mon_cpu_path) { in mon_get_cpu_sync()
66 monitor_set_cpu(mon, first_cpu->cpu_index); in mon_get_cpu_sync()
92 return cs ? cs->cpu_index : UNASSIGNED_CPU_INDEX; in monitor_get_cpu_index()
98 int vcpu = qdict_get_try_int(qdict, "vcpu", -1); in hmp_info_registers()
103 monitor_printf(mon, "\nCPU#%d\n", cs->cpu_index); in hmp_info_registers()
113 monitor_printf(mon, "No CPU available\n"); in hmp_info_registers()
118 monitor_printf(mon, "\nCPU#%d\n", cs->cpu_index); in hmp_info_registers()
128 uint64_t v; in memory_dump() local
142 if (wsize == 1) { in memory_dump()
143 line_size = 8; in memory_dump()
151 max_digits = DIV_ROUND_UP(wsize * 8, 3); in memory_dump()
155 max_digits = (wsize * 8) / 4; in memory_dump()
159 max_digits = DIV_ROUND_UP(wsize * 8 * 10, 33); in memory_dump()
162 wsize = 1; in memory_dump()
176 AddressSpace *as = cs ? cs->as : &address_space_memory; in memory_dump()
193 case 1: in memory_dump()
194 v = ldub_p(buf + i); in memory_dump()
197 v = lduw_p(buf + i); in memory_dump()
200 v = (uint32_t)ldl_p(buf + i); in memory_dump()
202 case 8: in memory_dump()
203 v = ldq_p(buf + i); in memory_dump()
209 monitor_printf(mon, "%#*" PRIo64, max_digits, v); in memory_dump()
212 monitor_printf(mon, "0x%0*" PRIx64, max_digits, v); in memory_dump()
215 monitor_printf(mon, "%*" PRIu64, max_digits, v); in memory_dump()
218 monitor_printf(mon, "%*" PRId64, max_digits, v); in memory_dump()
221 monitor_printc(mon, v); in memory_dump()
228 len -= l; in memory_dump()
249 memory_dump(mon, count, format, size, addr, 1); in hmp_physical_memory_dump()
259 error_setg(errp, "No memory is mapped at address 0x%" HWADDR_PRIx, addr); in gpa2hva()
278 return qemu_map_ram_ptr(mrs.mr->ram_block, mrs.offset_within_region); in gpa2hva()
288 ptr = gpa2hva(&mr, addr, 1, &local_err); in hmp_gpa2hva()
296 addr, mr->name, ptr); in hmp_gpa2hva()
309 monitor_printf(mon, "No cpu\n"); in hmp_gva2gpa()
314 if (gpa == -1) { in hmp_gva2gpa()
326 uint64_t ret = -1; in vtop()
333 if (fd == -1) { in vtop()
335 return -1; in vtop()
338 /* Force copy-on-write if necessary. */ in vtop()
345 if ((pinfo & (1ull << 63)) == 0) { in vtop()
349 ret = ((pinfo & 0x007fffffffffffffull) * pagesize) | (addr & (pagesize - 1)); in vtop()
364 ptr = gpa2hva(&mr, addr, 1, &local_err); in hmp_gpa2hpa()
376 addr, mr->name, (uint64_t) physaddr); in hmp_gpa2hpa()