Re: [Qemu-devel] [PATCH v6 1/4] Add moxie target code

2013-03-02 Thread Peter Maydell
On 2 March 2013 12:24, Anthony Green wrote: > +uint32_t helper_div(CPUMoxieState *env, uint32_t pc, uint32_t a, uint32_t b) > +{ > +if (unlikely(b == 0)) { > +helper_raise_exception(env, pc, MOXIE_EX_DIV0); This never returns, so the following 'return' is unreachable. > +retu

[Qemu-devel] [PATCH v6 1/4] Add moxie target code

2013-03-02 Thread Anthony Green
Signed-off-by: Anthony Green --- 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