From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
First a few preparatory clean-ups followed by the detection and
contional exception of signed division overflow.
Spec:
https://docs.amd.com/r/en-US/ug984-vivado-microblaze-ref/idiv
Cheers,
Edgar
ChangeLog:
v1 -> v2:
* Fix ESR_ESS_DEC_OF from bit 20 (big-bit-endian) to 11 (little-bit-endian).
* Rename pc -> unwind_pc.
* Squash patches 2 and 3.
Edgar E. Iglesias (3):
target/microblaze: Remove unused arg from check_divz()
target/microblaze: div: Break out raise_divzero()
target/microblaze: Handle signed division overflows
target/microblaze/cpu.h | 1 +
target/microblaze/op_helper.c | 53 ++++++++++++++++++++++-------------
target/microblaze/translate.c | 12 ++------
3 files changed, 36 insertions(+), 30 deletions(-)
--
2.43.0