[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Armv5 target
From: |
Ulrich Hecht |
Subject: |
Re: [Qemu-devel] Armv5 target |
Date: |
Thu, 3 Feb 2005 15:08:59 +0100 |
User-agent: |
KMail/1.7.92 |
Hi!
On Wednesday 02 February 2005 20:17, Paul Brook wrote:
> The generated code causes a segfault trying to write to protected
> memory. On a real machine the signal handler unprotects the memory,
> and keeps going. Inside qemu the host signal handler just queues the
> target signal. For most signals this is ok; the target handler will be
> invoke at the end of the TB. However in this case we need to run the
> target handler immediately, otherwise the segv will occur again when
> we try and continue.
>
> I think fixing this requires executing the target signal handler code
> from within the host signal handler. As an added complication we only
> want to do this for signals received while executing target code.
Copying some code from the i386 and SPARC targets, I made up the attached
patch. It fixes the segv_test testcase (and my personal use case, the
GCC 3.3 configure script), and it does not seem to break anything else.
Comments?
CU
Uli
qemu-arm-signals.patch
Description: Text Data