aboutsummaryrefslogtreecommitdiff
path: root/target-i386/translate.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-23 20:46:56 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-23 20:46:56 +0000
commit9230e66e5c711bd077705465d34161d6b1e7fee7 (patch)
treea378dce30060a2b654a945c56ecd019d23881a8b /target-i386/translate.c
parent0523c6b7c5605e93b1c9960a3a91d08535e9a77e (diff)
CR8 support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1237 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r--target-i386/translate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 17ce6fa603..f8449e4200 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -5631,17 +5631,20 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
case 2:
case 3:
case 4:
+ case 8:
if (b & 2) {
gen_op_mov_TN_reg[ot][0][rm]();
gen_op_movl_crN_T0(reg);
gen_jmp_im(s->pc - s->cs_base);
gen_eob(s);
} else {
- gen_op_movtl_T0_env(offsetof(CPUX86State,cr[reg]));
+ if (reg == 8)
+ gen_op_movtl_T0_cr8();
+ else
+ gen_op_movtl_T0_env(offsetof(CPUX86State,cr[reg]));
gen_op_mov_reg_T0[ot][rm]();
}
break;
- /* XXX: add CR8 for x86_64 */
default:
goto illegal_op;
}