qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).
Date: Mon, 02 Jun 2008 01:01:19 +0000	[thread overview]
Message-ID: <E1K2yQJ-0004e7-23@cvs.savannah.gnu.org> (raw)

Revision: 4641
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4641
Author:   balrog
Date:     2008-06-02 01:01:18 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).

Modified Paths:
--------------
    trunk/cpu-exec.c

Modified: trunk/cpu-exec.c
===================================================================
--- trunk/cpu-exec.c	2008-06-02 00:55:08 UTC (rev 4640)
+++ trunk/cpu-exec.c	2008-06-02 01:01:18 UTC (rev 4641)
@@ -1320,7 +1320,11 @@
     unsigned long pc;
     int is_write;
 
+#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ =< 3))
+    pc = uc->uc_mcontext.gregs[R15];
+#else
     pc = uc->uc_mcontext.arm_pc;
+#endif
     /* XXX: compute is_write */
     is_write = 0;
     return handle_cpu_signal(pc, (unsigned long)info->si_addr,

             reply	other threads:[~2008-06-02  1:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-02  1:01 Andrzej Zaborowski [this message]
2008-06-02  1:49 ` [Qemu-devel] [4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl) M. Warner Losh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1K2yQJ-0004e7-23@cvs.savannah.gnu.org \
    --to=balrogg@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).