target-m68k: add 680x0 divu/divs variants
commit0ccb9c1d8128a020720d5c6abf99a470742a1b94
authorLaurent Vivier <laurent@vivier.eu>
Fri, 28 Oct 2016 18:42:23 +0000 (28 20:42 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 27 Dec 2016 17:16:42 +0000 (27 18:16 +0100)
tree912612d600490ef4a0e22d9f365ce2f6b784d0a6
parent8be95defd6ab10d2c9f986879a0afa82417cb8e5
target-m68k: add 680x0 divu/divs variants

Update helper to set the throwing location in case of div-by-0.
Cleanup divX.w and add quad word variants of divX.l.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twidle.net>
[laurent: modified to clear Z on overflow, as found with risu]
linux-user/main.c
target/m68k/cpu.h
target/m68k/helper.h
target/m68k/op_helper.c
target/m68k/qregs.def
target/m68k/translate.c