qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] targets/microblaze: Handle signed division overflows
@ 2025-08-25 11:20 Edgar E. Iglesias
  2025-08-25 11:20 ` [PATCH v2 1/3] target/microblaze: Remove unused arg from check_divz() Edgar E. Iglesias
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Edgar E. Iglesias @ 2025-08-25 11:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, philmd, edgar.iglesias

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-25 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 11:20 [PATCH v2 0/3] targets/microblaze: Handle signed division overflows Edgar E. Iglesias
2025-08-25 11:20 ` [PATCH v2 1/3] target/microblaze: Remove unused arg from check_divz() Edgar E. Iglesias
2025-08-25 12:50   ` Philippe Mathieu-Daudé
2025-08-25 11:20 ` [PATCH v2 2/3] target/microblaze: div: Break out raise_divzero() Edgar E. Iglesias
2025-08-25 12:53   ` Philippe Mathieu-Daudé
2025-08-25 11:20 ` [PATCH v2 3/3] target/microblaze: Handle signed division overflows Edgar E. Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).