projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc9b96
)
Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).
author
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 2 Jun 2008 01:01:18 +0000
(
01:01
+0000)
committer
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 2 Jun 2008 01:01:18 +0000
(
01:01
+0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4641
c046a42c
-6fe2-441c-8c8c-
71466251a162
cpu-exec.c
patch
|
blob
|
history
diff --git
a/cpu-exec.c
b/cpu-exec.c
index ea0e5b11c773aceaa5a2c3b3af8d31641040bc94..4751d52c8e5770d92c315ec6713f5831e9055c78 100644
(file)
--- a/
cpu-exec.c
+++ b/
cpu-exec.c
@@
-1320,7
+1320,11
@@
int cpu_signal_handler(int host_signum, void *pinfo,
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,