qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Change to correct PowerPC on a 64bit host
@ 2013-01-02  4:58 Samuel Seay
  2013-01-02 11:44 ` Andreas Färber
  2013-01-02 12:00 ` Peter Maydell
  0 siblings, 2 replies; 8+ messages in thread
From: Samuel Seay @ 2013-01-02  4:58 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 154 bytes --]

Attached is a patch for fixing bug #1052857. My local tests show it working
properly on 32 and 64bit.

Signed-off-by: Samuel Seay <lightningth@gmail.com>

[-- Attachment #1.2: Type: text/html, Size: 213 bytes --]

[-- Attachment #2: 0001-Change-to-correct-PowerPC-on-64bit-host.patch --]
[-- Type: application/octet-stream, Size: 928 bytes --]

---
 linux-user/signal.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/linux-user/signal.c b/linux-user/signal.c
index 95e2ffa..3835262 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -4584,7 +4584,7 @@ static void setup_frame(int sig, struct target_sigaction *ka,
 
     signal = current_exec_domain_sig(sig);
 
-    err |= __put_user(h2g(ka->_sa_handler), &sc->handler);
+    err |= __put_user(ka->_sa_handler, &sc->handler);
     err |= __put_user(set->sig[0], &sc->oldmask);
 #if defined(TARGET_PPC64)
     err |= __put_user(set->sig[0] >> 32, &sc->_unused[3]);
@@ -4606,8 +4606,6 @@ static void setup_frame(int sig, struct target_sigaction *ka,
 
     /* Create a stack frame for the caller of the handler.  */
     newsp = frame_addr - SIGNAL_FRAMESIZE;
-    err |= __put_user(env->gpr[1], (target_ulong *)(uintptr_t) newsp);
-
     if (err)
         goto sigsegv;
 
-- 
1.7.9.5


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

end of thread, other threads:[~2013-01-02 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-02  4:58 [Qemu-devel] [PATCH] Change to correct PowerPC on a 64bit host Samuel Seay
2013-01-02 11:44 ` Andreas Färber
2013-01-02 12:00 ` Peter Maydell
2013-01-02 13:01   ` Samuel Seay
2013-01-02 14:02     ` Peter Maydell
2013-01-02 14:34       ` Samuel Seay
2013-01-02 14:47         ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2013-01-02 14:53         ` [Qemu-devel] " Peter Maydell

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