switch_tss fix (aka spoon OS bug)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1704 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-12-17 01:05:42 +00:00
parent dbf2c23a60
commit 265d349776

View File

@ -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);