qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Erik de Castro Lopo <mle+tools@mega-nerd.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Use 64 bit qemu_(get|put)_be64s for env->a20_mask.
Date: Sun, 4 May 2008 20:23:43 +1000	[thread overview]
Message-ID: <20080504202343.8604a19b.mle+tools@mega-nerd.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

Hi all,

The a32_mask field of the CPUX86State struct in target-i386/cpu.h is
defined as a uint64_t, but the existing code was using qemu_put_be32s
and qemu_get_be32s. This patch changes those calls to use the 64 bit
versions.

Cheers,
Erik

---
 vl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

[-- Attachment #2: 599449fd9629f316200740cf22fa4b4a267b7169.diff --]
[-- Type: text/x-patch, Size: 628 bytes --]

diff --git a/vl.c b/vl.c
index 807e035..16f6bc1 100644
--- a/vl.c
+++ b/vl.c
@@ -6413,7 +6413,7 @@ void cpu_save(QEMUFile *f, void *opaque)
         qemu_put_betls(f, &env->dr[i]);
 
     /* MMU */
-    qemu_put_be32s(f, &env->a20_mask);
+    qemu_put_be64s(f, &env->a20_mask);
 
     /* XMM */
     qemu_put_be32s(f, &env->mxcsr);
@@ -6551,7 +6551,7 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
         qemu_get_betls(f, &env->dr[i]);
 
     /* MMU */
-    qemu_get_be32s(f, &env->a20_mask);
+    qemu_get_be64s(f, &env->a20_mask);
 
     qemu_get_be32s(f, &env->mxcsr);
     for(i = 0; i < CPU_NB_REGS; i++) {


                 reply	other threads:[~2008-05-04 10:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080504202343.8604a19b.mle+tools@mega-nerd.com \
    --to=mle+tools@mega-nerd.com \
    --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).