diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-23 20:55:36 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-23 20:55:36 +0000 |
commit | 82e41634cdf063fae727fdb1563479d2209f79ee (patch) | |
tree | c2e92556a14bc64481d2304fcacc2940f47ca723 /target-i386 | |
parent | bd3fae3df6233729591b65f7c9f008d4182f6b44 (diff) |
avoid empty op
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1239 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-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](); } |