qemu-e2k/stubs
Alexey Kardashevskiy 0a9516c2d6 monitor/target-ppc: Define target_get_monitor_def
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>
2015-11-12 14:53:36 +11:00
..
arch-query-cpu-def.c
bdrv-commit-all.c
clock-warp.c
cpu-get-clock.c
cpu-get-icount.c
cpus.c
dump.c
fd-register.c
fdset-add-fd.c
fdset-find-fd.c
fdset-get-fd.c
fdset-remove-fd.c
gdbstub.c
get-fd.c
get-next-serial.c
get-vm-name.c
iothread-lock.c main-loop: introduce qemu_mutex_iothread_locked 2015-07-01 15:45:50 +02:00
is-daemonized.c
kvm.c
machine-init-done.c
Makefile.objs monitor/target-ppc: Define target_get_monitor_def 2015-11-12 14:53:36 +11:00
migr-blocker.c
mon-is-qmp.c
mon-printf.c
monitor-init.c
notify-event.c
qmp_pc_dimm_device_list.c
qtest.c
replay-user.c replay: interrupts and exceptions 2015-11-06 10:16:00 +01:00
replay.c replay: initialization and deinitialization 2015-11-06 10:16:03 +01:00
reset.c
runstate-check.c
set-fd-handler.c
slirp.c
sysbus.c
target-get-monitor-def.c monitor/target-ppc: Define target_get_monitor_def 2015-11-12 14:53:36 +11:00
target-monitor-defs.c monitor: remove target-specific code from monitor.c 2015-09-16 17:33:32 +02:00
uuid.c
vhost.c vhost: add vhost_has_free_slot() interface 2015-10-22 14:34:48 +03:00
vm-stop.c
vmstate.c