mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/i386: Replace TARGET_TB_PCREL
with CF_PCREL
Signed-off-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230227135202.9710-8-anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
03a648c4b8
commit
2e3afe8e19
3 changed files with 17 additions and 17 deletions
|
@ -520,7 +520,7 @@ static inline target_ulong get_memio_eip(CPUX86State *env)
|
|||
}
|
||||
|
||||
/* Per x86_restore_state_to_opc. */
|
||||
if (TARGET_TB_PCREL) {
|
||||
if (cs->tcg_cflags & CF_PCREL) {
|
||||
return (env->eip & TARGET_PAGE_MASK) | data[0];
|
||||
} else {
|
||||
return data[0] - env->segs[R_CS].base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue