From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkDym-0007L9-Hg for qemu-devel@nongnu.org; Wed, 05 Jun 2013 09:42:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkDye-0000mG-NX for qemu-devel@nongnu.org; Wed, 05 Jun 2013 09:42:20 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:44183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkDye-0000mC-Ex for qemu-devel@nongnu.org; Wed, 05 Jun 2013 09:42:12 -0400 Message-ID: <51AF4028.5030504@huawei.com> Date: Wed, 5 Jun 2013 15:42:00 +0200 From: Claudio Fontana MIME-Version: 1.0 References: <51AF3F25.5050104@huawei.com> In-Reply-To: <51AF3F25.5050104@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 1/2] user-exec.c: aarch64 initial implementation of cpu_signal_handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Laurent Desnogues , Jani Kokkonen , "qemu-devel@nongnu.org" , Richard Henderson Signed-off-by: Claudio Fontana --- user-exec.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/user-exec.c b/user-exec.c index 71bd6c5..fa7f1f1 100644 --- a/user-exec.c +++ b/user-exec.c @@ -448,6 +448,21 @@ int cpu_signal_handler(int host_signum, void *pinfo, &uc->uc_sigmask, puc); } +#elif defined(__aarch64__) + +int cpu_signal_handler(int host_signum, void *pinfo, + void *puc) +{ + siginfo_t *info = pinfo; + struct ucontext *uc = puc; + uint64_t pc; + int is_write = 0; /* XXX how to determine? */ + + pc = uc->uc_mcontext.pc; + return handle_cpu_signal(pc, (uint64_t)info->si_addr, + is_write, &uc->uc_sigmask, puc); +} + #elif defined(__mc68000) int cpu_signal_handler(int host_signum, void *pinfo, -- 1.8.1