Another attempt. I think this is the best I can do to fulfil all comments. Fabien Chouteau (4): Fix coding style Improve Monitor disas with symbol lookup Refactoring MonitorDef array Add ARM registers definitions for Monitor commands
disas.c | 19 +- include/monitor/monitor_def.h | 18 ++ include/qemu/typedefs.h | 1 + include/qom/cpu.h | 3 + monitor.c | 396 +---------------------------------------- target-arm/Makefile.objs | 2 +- target-arm/cpu.c | 7 + target-arm/monitor.c | 40 +++++ target-i386/Makefile.objs | 2 +- target-i386/cpu-qom.h | 1 + target-i386/cpu.c | 7 + target-i386/monitor.c | 62 +++++++ target-ppc/Makefile.objs | 2 +- target-ppc/monitor.c | 234 ++++++++++++++++++++++++ target-ppc/translate_init.c | 8 + target-sparc/Makefile.objs | 2 +- target-sparc/cpu-qom.h | 1 - target-sparc/cpu.c | 7 + target-sparc/monitor.c | 138 ++++++++++++++ 19 files changed, 552 insertions(+), 398 deletions(-) create mode 100644 include/monitor/monitor_def.h create mode 100644 target-arm/monitor.c create mode 100644 target-i386/monitor.c create mode 100644 target-ppc/monitor.c create mode 100644 target-sparc/monitor.c -- 1.7.9.5