On 29/4/26 19:03, joel@airwebreathe.org.uk wrote:
> From: Joel Holdsworth <jholdsworth@nvidia.com>
>
> This series fixes two bugs in the OpenRISC TCG translation:
>
> 1. gen_div: INT_MIN / -1 causes undefined behavior (hardware exception
> on x86/ARM hosts)
> 2. gen_mulu: uses signed multiply instead of unsigned, producing
> incorrect carry flags
>
> Note: these patches are AI-generated submissions.
Someone (you?) should complete that with an AI-generated review.
> Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
>
> Joel Holdsworth (2):
> target/or1k: fix gen_mulu using signed multiply for unsigned operation
> target/or1k: fix gen_div INT_MIN / -1 undefined behavior
>
> target/or1k/translate.c | 24 +++++++++++++++++++-----
> 1 file changed, 19 insertions(+), 5 deletions(-)
>