OSDN Git Service

target/i386: Use cpu_unwind_state_data for tpr access
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 24 Oct 2022 12:45:29 +0000 (22:45 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 31 Oct 2022 21:31:37 +0000 (08:31 +1100)
commitf484f213c9f4ae1cd30ebdaadc7b539d745d39fb
treedd52d1ae01a7a885417ad5fc80fe395c27f2fe81
parent6392bd6b90a488b3254b1cb85d79bf262ed5f9e0
target/i386: Use cpu_unwind_state_data for tpr access

Avoid cpu_restore_state, and modifying env->eip out from
underneath the translator with TARGET_TB_PCREL.  There is
some slight duplication from x86_restore_state_to_opc,
but it's just a few lines.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1269
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/i386/helper.c