QEMU's monitor can only print registers described in monitor.c but in fact we got lot, lot more in POWER7/8, instead of adding all of these into monitor, we better print only registered SPR so here are the patches.
Please comment. Thanks! ps. about coding style. In PPC code we name CPUPPCState* variables as "cpu" and "CPUState" - "cs". However include/qom/cpu.h uses "cpu" for "CPUState". What is the correct way of naming these? Alexey Kardashevskiy (2): monitor: Add CPU class callback to read registers for monitor target-ppc: Define get_monitor_def include/qom/cpu.h | 1 + monitor.c | 229 +++----------------------------------------- target-ppc/cpu-qom.h | 2 + target-ppc/translate.c | 72 ++++++++++++++ target-ppc/translate_init.c | 1 + 5 files changed, 90 insertions(+), 215 deletions(-) -- 2.4.0.rc3.8.gfb3e7d5