Hello,

maybe this patch can be qualified as trivial?

http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg03488.html

On 2014-01-07 19:07, Sebastian Huber wrote:
Hello,

would somebody mind committing this.

On 12/06/2013 06:48 PM, Richard Henderson wrote:
On 11/27/2013 08:50 PM, Sebastian Huber wrote:
Synchronize the program counter before the power down helper call
otherwise interrupts will return to the wrong context.

Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de>
---
  target-sparc/translate.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 05639ef..7481c85 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -3630,6 +3630,7 @@ static void disas_sparc_insn(DisasContext * dc,
unsigned int insn)
                                  if ((rd == 0x13) && (dc->def->features &

CPU_FEATURE_POWERDOWN)) {
                                      /* LEON3 power-down */
+                                    save_state(dc);
                                      gen_helper_power_down(cpu_env);
                                  }
                                  break;

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~





--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

Reply via email to