Here's the latest incarnation of the moxie patch set. I believe I've addressed all of the major concerns and then some.
I ended up implementing moxie's new exception semantics so now division by zero and illegal instructions both trap to an exception handler routine. I was able to test this with a little C/asm code and it works nicely. Thanks! AG Anthony Green (4): Add moxie target code Add moxie disassembler Add sample moxie system Add top level changes for moxie MAINTAINERS | 5 + arch_init.c | 2 + configure | 9 +- cpu-exec.c | 2 + default-configs/moxie-softmmu.mak | 2 + disas.c | 6 + disas/Makefile.objs | 1 + disas/moxie.c | 360 +++++++++++++ hw/moxie/Makefile.objs | 6 + hw/moxie/moxiesim.c | 174 +++++++ include/disas/bfd.h | 2 + include/sysemu/arch_init.h | 1 + qapi-schema.json | 6 +- target-moxie/Makefile.objs | 2 + target-moxie/cpu.c | 172 +++++++ target-moxie/cpu.h | 170 +++++++ target-moxie/helper.c | 97 ++++ target-moxie/helper.h | 9 + target-moxie/machine.c | 27 + target-moxie/machine.h | 2 + target-moxie/mmu.c | 36 ++ target-moxie/mmu.h | 19 + target-moxie/op_helper.c | 90 ++++ target-moxie/translate.c | 1003 +++++++++++++++++++++++++++++++++++++ 24 files changed, 2199 insertions(+), 4 deletions(-) create mode 100644 default-configs/moxie-softmmu.mak create mode 100644 disas/moxie.c create mode 100644 hw/moxie/Makefile.objs create mode 100644 hw/moxie/moxiesim.c create mode 100644 target-moxie/Makefile.objs create mode 100644 target-moxie/cpu.c create mode 100644 target-moxie/cpu.h create mode 100644 target-moxie/helper.c create mode 100644 target-moxie/helper.h create mode 100644 target-moxie/machine.c create mode 100644 target-moxie/machine.h create mode 100644 target-moxie/mmu.c create mode 100644 target-moxie/mmu.h create mode 100644 target-moxie/op_helper.c create mode 100644 target-moxie/translate.c -- 1.8.1.2