Commit 265d3497763842573ab67bf67cedef2062f1b7ec

Authored by bellard
1 parent dbf2c23a

switch_tss fix (aka spoon OS bug)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1704 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-i386/helper.c
@@ -339,7 +339,7 @@ static void switch_tss(int tss_selector, @@ -339,7 +339,7 @@ static void switch_tss(int tss_selector,
339 necessary to valid the TLB after having done the accesses */ 339 necessary to valid the TLB after having done the accesses */
340 340
341 v1 = ldub_kernel(env->tr.base); 341 v1 = ldub_kernel(env->tr.base);
342 - v2 = ldub(env->tr.base + old_tss_limit_max); 342 + v2 = ldub_kernel(env->tr.base + old_tss_limit_max);
343 stb_kernel(env->tr.base, v1); 343 stb_kernel(env->tr.base, v1);
344 stb_kernel(env->tr.base + old_tss_limit_max, v2); 344 stb_kernel(env->tr.base + old_tss_limit_max, v2);
345 345