[PATCH v2 0/3] targets/microblaze: Handle signed division overflows

Edgar E. Iglesias posted 3 patches 2 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250825112051.4155931-1-edgar.iglesias@gmail.com
Maintainers: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
target/microblaze/cpu.h       |  1 +
target/microblaze/op_helper.c | 53 ++++++++++++++++++++++-------------
target/microblaze/translate.c | 12 ++------
3 files changed, 36 insertions(+), 30 deletions(-)
[PATCH v2 0/3] targets/microblaze: Handle signed division overflows
Posted by Edgar E. Iglesias 2 months, 3 weeks ago
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