diff options
-rw-r--r-- | target-i386/op.c | 4 | ||||
-rw-r--r-- | target-i386/translate.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/target-i386/op.c b/target-i386/op.c index 71365b5c2d..79545b51a9 100644 --- a/target-i386/op.c +++ b/target-i386/op.c @@ -1198,12 +1198,12 @@ void OPPROTO op_movl_crN_T0(void) helper_movl_crN_T0(PARAM1); } +#if !defined(CONFIG_USER_ONLY) void OPPROTO op_movtl_T0_cr8(void) { -#if !defined(CONFIG_USER_ONLY) T0 = cpu_get_apic_tpr(env); -#endif } +#endif /* DR registers access */ void OPPROTO op_movl_drN_T0(void) diff --git a/target-i386/translate.c b/target-i386/translate.c index f8449e4200..46bf933c9c 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -5638,9 +5638,11 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) gen_jmp_im(s->pc - s->cs_base); gen_eob(s); } else { +#if !defined(CONFIG_USER_ONLY) if (reg == 8) gen_op_movtl_T0_cr8(); else +#endif gen_op_movtl_T0_env(offsetof(CPUX86State,cr[reg])); gen_op_mov_reg_T0[ot][rm](); } |