From 23e6c3990864826cbe0f519213fdda03fcc79029 Mon Sep 17 00:00:00 2001 From: aliguori Date: Wed, 23 Jul 2008 13:29:23 +0000 Subject: [PATCH] Fix task register type after reset (Avi Kivity) Obvious typo that breaks reboots. Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4926 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 852f093e9f..7962d6b381 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -403,7 +403,7 @@ void cpu_reset(CPUX86State *env) env->ldt.limit = 0xffff; env->ldt.flags = DESC_P_MASK | (2 << DESC_TYPE_SHIFT); env->tr.limit = 0xffff; - env->tr.flags = DESC_P_MASK | (11 < DESC_TYPE_SHIFT); + env->tr.flags = DESC_P_MASK | (11 << DESC_TYPE_SHIFT); cpu_x86_load_seg_cache(env, R_CS, 0xf000, 0xffff0000, 0xffff, DESC_P_MASK | DESC_S_MASK | DESC_CS_MASK | DESC_R_MASK);