qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6009] Fix smsw for x86_64 guest and bigendian host case
Date: Sat, 13 Dec 2008 15:51:14 +0000	[thread overview]
Message-ID: <E1LBWlu-0006IP-Qd@cvs.savannah.gnu.org> (raw)

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 */

             reply	other threads:[~2008-12-13 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-13 15:51 malc [this message]
2008-12-13 16:13 ` [Qemu-devel] [6009] Fix smsw for x86_64 guest and bigendian host case Stuart Brady
2008-12-13 20:16   ` malc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LBWlu-0006IP-Qd@cvs.savannah.gnu.org \
    --to=av1474@comtv.ru \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).