From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, edgar.iglesias@amd.com
Subject: Re: [PATCH v1 4/4] target/microblaze: Handle signed division overflows
Date: Mon, 25 Aug 2025 12:59:23 +0200 [thread overview]
Message-ID: <aKxCC1FI5jaVAl4d@zapote> (raw)
In-Reply-To: <764b48a4-6cf7-408d-afb7-503348906789@linaro.org>
On Mon, Aug 25, 2025 at 09:44:34AM +1000, Richard Henderson wrote:
> On 8/25/25 08:27, Edgar E. Iglesias wrote:
> > From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
> >
> > Handle signed division overflows as specified in UG984:
> > https://docs.amd.com/r/en-US/ug984-vivado-microblaze-ref/idiv
> >
> > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
> > ---
> > target/microblaze/cpu.h | 1 +
> > target/microblaze/op_helper.c | 15 +++++++++++++++
> > 2 files changed, 16 insertions(+)
> >
> > diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h
> > index 3ce28b302f..7dd86653f0 100644
> > --- a/target/microblaze/cpu.h
> > +++ b/target/microblaze/cpu.h
> > @@ -87,6 +87,7 @@ typedef struct CPUArchState CPUMBState;
> > #define ESR_ESS_FSL_OFFSET 5
> > #define ESR_ESS_MASK (0x7f << 5)
> > +#define ESR_ESS_DEC_OF (1 << 20) /* DEC: 0=DBZ, 1=OF */
>
> That's bit 20 big-endian, so bit (1 << 11).
Fixed for v2, thanks!
>
> Otherwise,
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
>
> r~
prev parent reply other threads:[~2025-08-25 11:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-24 22:27 [PATCH v1 0/4] targets/microblaze: Handle signed division overflows Edgar E. Iglesias
2025-08-24 22:27 ` [PATCH v1 1/4] target/microblaze: Remove unused arg from check_divz() Edgar E. Iglesias
2025-08-24 23:27 ` Richard Henderson
2025-08-24 22:27 ` [PATCH v1 2/4] target/microblaze: div: Rename and reorder function args Edgar E. Iglesias
2025-08-24 23:32 ` Richard Henderson
2025-08-25 10:11 ` Philippe Mathieu-Daudé
2025-08-25 10:58 ` Edgar E. Iglesias
2025-08-24 22:27 ` [PATCH v1 3/4] target/microblaze: Break out raise_divzero() Edgar E. Iglesias
2025-08-24 23:36 ` Richard Henderson
2025-08-25 11:02 ` Edgar E. Iglesias
2025-08-24 22:27 ` [PATCH v1 4/4] target/microblaze: Handle signed division overflows Edgar E. Iglesias
2025-08-24 23:44 ` Richard Henderson
2025-08-25 10:59 ` Edgar E. Iglesias [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aKxCC1FI5jaVAl4d@zapote \
--to=edgar.iglesias@gmail.com \
--cc=edgar.iglesias@amd.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).