Comments

GCC and GAS are capable of generating traps or breaks to check for
division by zero. Additionally, GAS is capable of generating traps
or breaks to check for overflow on certain division and multiplication
operations. The Linux kernel translates these traps and breaks into
signals. This patch implements the corresponding feature in QEMU.
Signed-off-by: Meador Inge <meadori@codesourcery.com>
---
Changes since v1:
* Moved the BRK_* enumerations from target-mips/cpu.h to
linux-user/main.c since they are only used in main.c
* Fixed some style violations found by checkpatch.pl.
* Removed a superfluous break.
linux-user/main.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 75 insertions(+), 1 deletion(-)