« Previous | Next » 

Revision 8827b0fb

ID8827b0fb66cab9f7978c4e66dad4cf3c0989a72e

Added by Peter Maydell almost 11 years ago

sd/pl181.c: Avoid undefined shift behaviour in RWORD macro

Add a cast to avoid potentially shifting into the sign bit of
a signed value, which is undefined behaviour in C.

(Detected with clang's -fsanitize=undefined.)

Signed-off-by: Peter Maydell <>
Message-id:

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences