]>
git.proxmox.com Git - mirror_qemu.git/blob - linux-user/host/arm/host-signal.h
6c095773c05134dc2a77ed3ac3da50fb01c948aa
2 * host-signal.h: signal info dependent on the host architecture
4 * Copyright (c) 2003-2005 Fabrice Bellard
5 * Copyright (c) 2021 Linaro Limited
7 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
8 * See the COPYING file in the top-level directory.
11 #ifndef ARM_HOST_SIGNAL_H
12 #define ARM_HOST_SIGNAL_H
14 static inline uintptr_t host_signal_pc(ucontext_t
*uc
)
16 return uc
->uc_mcontext
.arm_pc
;
19 static inline void host_signal_set_pc(ucontext_t
*uc
, uintptr_t pc
)
21 uc
->uc_mcontext
.arm_pc
= pc
;
24 static inline bool host_signal_write(siginfo_t
*info
, ucontext_t
*uc
)
27 * In the FSR, bit 11 is WnR, assuming a v6 or
28 * later processor. On v5 we will always report
29 * this as a read, which will fail later.
31 uint32_t fsr
= uc
->uc_mcontext
.error_code
;
32 return extract32(fsr
, 11, 1);