[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 10/13] user-exec.c: aarch64 initial implementation of
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 10/13] user-exec.c: aarch64 initial implementation of cpu_signal_handler |
Date: |
Wed, 12 Jun 2013 16:57:22 +0100 |
From: Claudio Fontana <address@hidden>
Signed-off-by: Claudio Fontana <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
---
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.7.9.5
- [Qemu-devel] [PULL 00/13] tcg-aarch64 queue, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 02/13] linux-user: Drop direct use of openat etc syscalls, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 10/13] user-exec.c: aarch64 initial implementation of cpu_signal_handler,
Peter Maydell <=
- [Qemu-devel] [PULL 03/13] configure: Drop CONFIG_ATFILE test, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 12/13] configure: permit compilation on arm aarch64, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 01/13] linux-user: Allow getdents to be provided by getdents64, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 07/13] tcg/aarch64: implement AND/TEST immediate pattern, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 04/13] include/elf.h: add aarch64 ELF machine and relocs, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 13/13] MAINTAINERS: add tcg/aarch64 maintainer, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 05/13] tcg/aarch64: implement new TCG target for aarch64, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 11/13] tcg/aarch64: implement user mode qemu ld/st, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 06/13] tcg/aarch64: improve arith shifted regs operations, Peter Maydell, 2013/06/12
- [Qemu-devel] [PULL 08/13] tcg/aarch64: implement byte swap operations, Peter Maydell, 2013/06/12