qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] target-arm: Avoid clang sanitizer warnings
@ 2013-09-05 14:38 Peter Maydell
  2013-09-05 14:38 ` [Qemu-devel] [PATCH v2 1/2] target-arm: Use sextract32() in branch decode Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Maydell @ 2013-09-05 14:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, patches

These patches avoid some clang sanitizer warnings triggered
on target-arm code which inadvertently shifts into the sign
bit of a signed integer (which is undefined behaviour in C).

Changes v1->v2:
 * made all the CPSR_* defines unsigned for consistency
   (suggested by rth in review)

Peter Maydell (2):
  target-arm: Use sextract32() in branch decode
  target-arm: Avoid "1 << 31" undefined behaviour

 target-arm/cpu.h       |   32 ++++++++++++++++----------------
 target-arm/helper.c    |    4 ++--
 target-arm/translate.c |    5 +++--
 3 files changed, 21 insertions(+), 20 deletions(-)

-- 
1.7.9.5

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

end of thread, other threads:[~2013-09-05 15:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 14:38 [Qemu-devel] [PATCH v2 0/2] target-arm: Avoid clang sanitizer warnings Peter Maydell
2013-09-05 14:38 ` [Qemu-devel] [PATCH v2 1/2] target-arm: Use sextract32() in branch decode Peter Maydell
2013-09-05 14:38 ` [Qemu-devel] [PATCH v2 2/2] target-arm: Avoid "1 << 31" undefined behaviour Peter Maydell
2013-09-05 15:28 ` [Qemu-devel] [PATCH v2 0/2] target-arm: Avoid clang sanitizer warnings Richard Henderson

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).