From 265d3497763842573ab67bf67cedef2062f1b7ec Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 17 Dec 2005 01:05:42 +0000 Subject: [PATCH] switch_tss fix (aka spoon OS bug) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1704 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 0c5e362c73..531ba1b155 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -339,7 +339,7 @@ static void switch_tss(int tss_selector, necessary to valid the TLB after having done the accesses */ v1 = ldub_kernel(env->tr.base); - v2 = ldub(env->tr.base + old_tss_limit_max); + v2 = ldub_kernel(env->tr.base + old_tss_limit_max); stb_kernel(env->tr.base, v1); stb_kernel(env->tr.base + old_tss_limit_max, v2);