[sim] handle integer division overflow
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Thu, 11 Nov 2010 23:49:21 +0000 (15:49 -0800)
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Mon, 22 Nov 2010 00:54:35 +0000 (16:54 -0800)
commit3ebbeba6d5daa236ff346f313e79a9359d1a37bd
tree37fc8bae27357ac4e312d5e45ea32f0288faa604
parent259d20a35dde46c51878dfd3afb7b8c518ed3dcf
[sim] handle integer division overflow

Behavior is now same as GCC's optimizer.  Previously, we just crashed :)
riscv/insns/div.h
riscv/insns/divu.h
riscv/insns/divuw.h
riscv/insns/divw.h
riscv/insns/rem.h
riscv/insns/remu.h
riscv/insns/remuw.h
riscv/insns/remw.h