Re: [PATCH] accel/tcg: Fix undefined shift in store_whole_le16

2023-06-06 Thread Peter Maydell
On Tue, 6 Jun 2023 at 18:16, Richard Henderson wrote: > > The computation is documented as unused in this case, > but triggers an ubsan error: > > ../accel/tcg/ldst_atomicity.c.inc:837:33: runtime error: shift exponent -32 > is negative > SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior

[PATCH] accel/tcg: Fix undefined shift in store_whole_le16

2023-06-06 Thread Richard Henderson
The computation is documented as unused in this case, but triggers an ubsan error: ../accel/tcg/ldst_atomicity.c.inc:837:33: runtime error: shift exponent -32 is negative SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../accel/tcg/ldst_atomicity.c.inc:837:33 in Signed-off-by: Richard