diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-09-12 19:25:22 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-10-30 09:52:04 -0700 |
commit | 0fdbb7d2c1ecb761b985b176b9bb159d483d9514 (patch) | |
tree | 47a413c9278773b51d467a4570653510bda32d50 /include/exec | |
parent | dd61b91c080cdfba1360a5ea1e4693fffb3445b0 (diff) | |
download | qemu-0fdbb7d2c1ecb761b985b176b9bb159d483d9514.zip qemu-0fdbb7d2c1ecb761b985b176b9bb159d483d9514.tar.gz qemu-0fdbb7d2c1ecb761b985b176b9bb159d483d9514.tar.bz2 |
accel/tcg: Split out adjust_signal_pc
Split out a function to adjust the raw signal pc into a
value that could be passed to cpu_restore_state.
Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v2: Adjust pc in place; return MMUAccessType.
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/exec-all.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 9d5987b..e54f8e5 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -664,6 +664,16 @@ static inline tb_page_addr_t get_page_addr_code_hostp(CPUArchState *env, } /** + * adjust_signal_pc: + * @pc: raw pc from the host signal ucontext_t. + * @is_write: host memory operation was write, or read-modify-write. + * + * Alter @pc as required for unwinding. Return the type of the + * guest memory access -- host reads may be for guest execution. + */ +MMUAccessType adjust_signal_pc(uintptr_t *pc, bool is_write); + +/** * cpu_signal_handler * @signum: host signal number * @pinfo: host siginfo_t |