mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
0a9516c2d6
At the moment get_monitor_def() returns only registers from statically defined monitor_defs array. However there is a lot of BOOK3S SPRs which are not in the list and cannot be printed from the monitor. This adds a new target platform hook - target_get_monitor_def(). The hook is called if a register was not found in the static array returned by the target_monitor_defs() hook. The hook is only defined for POWERPC, it returns registered SPRs and fails on unregistered ones providing the user with information on what is actually supported on the running CPU. The register value is saved as uint64_t as it is the biggest supported register size; target_ulong cannot be used because of the stub - it is in a "common" code and cannot include "cpu.h", etc; this is also why the hook prototype is redefined in the stub instead of being included from some header. This replaces static descriptors for GPRs, FPRs, SRs with a helper which looks for a value in a corresponding array in the CPUPPCState. The immediate effect is that all 32 SRs can be printed now (instead of 16); later this can be reused for VSX or TM registers. This replaces callbacks for MSR and XER with static descriptors in monitor_defs as they are stored in CPUPPCState. While we are here, this adds "cr" as a synonym of "ccr". Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
stub-obj-y += arch-query-cpu-def.o
|
|
stub-obj-y += bdrv-commit-all.o
|
|
stub-obj-y += clock-warp.o
|
|
stub-obj-y += cpu-get-clock.o
|
|
stub-obj-y += cpu-get-icount.o
|
|
stub-obj-y += dump.o
|
|
stub-obj-y += fdset-add-fd.o
|
|
stub-obj-y += fdset-find-fd.o
|
|
stub-obj-y += fdset-get-fd.o
|
|
stub-obj-y += fdset-remove-fd.o
|
|
stub-obj-y += gdbstub.o
|
|
stub-obj-y += get-fd.o
|
|
stub-obj-y += get-next-serial.o
|
|
stub-obj-y += get-vm-name.o
|
|
stub-obj-y += iothread-lock.o
|
|
stub-obj-y += is-daemonized.o
|
|
stub-obj-y += machine-init-done.o
|
|
stub-obj-y += migr-blocker.o
|
|
stub-obj-y += mon-is-qmp.o
|
|
stub-obj-y += mon-printf.o
|
|
stub-obj-y += monitor-init.o
|
|
stub-obj-y += notify-event.o
|
|
stub-obj-y += qtest.o
|
|
stub-obj-y += replay.o
|
|
stub-obj-y += replay-user.o
|
|
stub-obj-y += reset.o
|
|
stub-obj-y += runstate-check.o
|
|
stub-obj-y += set-fd-handler.o
|
|
stub-obj-y += slirp.o
|
|
stub-obj-y += sysbus.o
|
|
stub-obj-y += uuid.o
|
|
stub-obj-y += vm-stop.o
|
|
stub-obj-y += vmstate.o
|
|
stub-obj-$(CONFIG_WIN32) += fd-register.o
|
|
stub-obj-y += cpus.o
|
|
stub-obj-y += kvm.o
|
|
stub-obj-y += qmp_pc_dimm_device_list.o
|
|
stub-obj-y += target-monitor-defs.o
|
|
stub-obj-y += target-get-monitor-def.o
|
|
stub-obj-y += vhost.o
|