[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6009] Fix smsw for x86_64 guest and bigendian host case
From: |
malc |
Subject: |
[Qemu-devel] [6009] Fix smsw for x86_64 guest and bigendian host case |
Date: |
Sat, 13 Dec 2008 15:51:14 +0000 |
Revision: 6009
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6009
Author: malc
Date: 2008-12-13 15:51:14 +0000 (Sat, 13 Dec 2008)
Log Message:
-----------
Fix smsw for x86_64 guest and bigendian host case
Modified Paths:
--------------
trunk/target-i386/translate.c
Modified: trunk/target-i386/translate.c
===================================================================
--- trunk/target-i386/translate.c 2008-12-13 12:33:02 UTC (rev 6008)
+++ trunk/target-i386/translate.c 2008-12-13 15:51:14 UTC (rev 6009)
@@ -7078,7 +7078,11 @@
break;
case 4: /* smsw */
gen_svm_check_intercept(s, pc_start, SVM_EXIT_READ_CR0);
+#if defined TARGET_X86_64 && defined WORDS_BIGENDIAN
+ tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,cr[0]) +
4);
+#else
tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,cr[0]));
+#endif
gen_ldst_modrm(s, modrm, OT_WORD, OR_TMP0, 1);
break;
case 6: /* lmsw */
- [Qemu-devel] [6009] Fix smsw for x86_64 guest and bigendian host case,
malc <=