qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] ARM: fix crash/abort when setting invalid mode


From: Peter Maydell
Subject: [Qemu-devel] [PATCH 0/2] ARM: fix crash/abort when setting invalid mode
Date: Sat, 24 Dec 2011 18:59:05 +0000

https://bugs.launchpad.net/qemu/+bug/607794 reports a problem
where qemu will segfault if you try to set CPSR to an invalid
mode via the gdb stub. These patches fix the segfault by not
using cpu_single_env when it might not be valid, and also avoid
the problem by not aborting in this situation. Instead we simply
ignore attempts to set the mode field to an invalid value.
(This case is UNPREDICTABLE so this is a legitimate choice, and
behaviour that can be provoked by guests or confused users at
the debugger shouldn't cause us to abort.)

Peter Maydell (2):
  target-arm: Don't use cpu_single_env in bank_number()
  target-arm: Ignore attempts to set invalid modes in CPSR

 target-arm/helper.c |   42 +++++++++++++++++++++++++++++++++++-------
 1 files changed, 35 insertions(+), 7 deletions(-)

-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]