accel/tcg: Split out adjust_signal_pc
commit0fdbb7d2c1ecb761b985b176b9bb159d483d9514
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 13 Sep 2021 02:25:22 +0000 (12 19:25 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 30 Oct 2021 16:52:04 +0000 (30 09:52 -0700)
tree47a413c9278773b51d467a4570653510bda32d50
parentdd61b91c080cdfba1360a5ea1e4693fffb3445b0
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.
accel/tcg/user-exec.c
include/exec/exec-all.h