mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -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
|
@ -49,8 +49,8 @@ static void x86_cpu_exec_exit(CPUState *cs)
|
|||
static void x86_cpu_synchronize_from_tb(CPUState *cs,
|
||||
const TranslationBlock *tb)
|
||||
{
|
||||
/* The instruction pointer is always up to date with TARGET_TB_PCREL. */
|
||||
if (!TARGET_TB_PCREL) {
|
||||
/* The instruction pointer is always up to date with CF_PCREL. */
|
||||
if (!(tb_cflags(tb) & CF_PCREL)) {
|
||||
CPUX86State *env = cs->env_ptr;
|
||||
env->eip = tb_pc(tb) - tb->cs_base;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ static void x86_restore_state_to_opc(CPUState *cs,
|
|||
CPUX86State *env = &cpu->env;
|
||||
int cc_op = data[1];
|
||||
|
||||
if (TARGET_TB_PCREL) {
|
||||
if (tb_cflags(tb) & CF_PCREL) {
|
||||
env->eip = (env->eip & TARGET_PAGE_MASK) | data[0];
|
||||
} else {
|
||||
env->eip = data[0] - tb->cs_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue