Commit 82e41634cdf063fae727fdb1563479d2209f79ee
1 parent
bd3fae3d
avoid empty op
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1239 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
4 additions
and
2 deletions
target-i386/op.c
... | ... | @@ -1198,12 +1198,12 @@ void OPPROTO op_movl_crN_T0(void) |
1198 | 1198 | helper_movl_crN_T0(PARAM1); |
1199 | 1199 | } |
1200 | 1200 | |
1201 | +#if !defined(CONFIG_USER_ONLY) | |
1201 | 1202 | void OPPROTO op_movtl_T0_cr8(void) |
1202 | 1203 | { |
1203 | -#if !defined(CONFIG_USER_ONLY) | |
1204 | 1204 | T0 = cpu_get_apic_tpr(env); |
1205 | -#endif | |
1206 | 1205 | } |
1206 | +#endif | |
1207 | 1207 | |
1208 | 1208 | /* DR registers access */ |
1209 | 1209 | void OPPROTO op_movl_drN_T0(void) | ... | ... |
target-i386/translate.c
... | ... | @@ -5638,9 +5638,11 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) |
5638 | 5638 | gen_jmp_im(s->pc - s->cs_base); |
5639 | 5639 | gen_eob(s); |
5640 | 5640 | } else { |
5641 | +#if !defined(CONFIG_USER_ONLY) | |
5641 | 5642 | if (reg == 8) |
5642 | 5643 | gen_op_movtl_T0_cr8(); |
5643 | 5644 | else |
5645 | +#endif | |
5644 | 5646 | gen_op_movtl_T0_env(offsetof(CPUX86State,cr[reg])); |
5645 | 5647 | gen_op_mov_reg_T0[ot][rm](); |
5646 | 5648 | } | ... | ... |