* [Qemu-devel] Use 64 bit qemu_(get|put)_be64s for env->a20_mask.
@ 2008-05-04 10:23 Erik de Castro Lopo
0 siblings, 0 replies; only message in thread
From: Erik de Castro Lopo @ 2008-05-04 10:23 UTC (permalink / raw)
To: qemu-devel
[-- 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++) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-04 10:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-04 10:23 [Qemu-devel] Use 64 bit qemu_(get|put)_be64s for env->a20_mask Erik de Castro Lopo
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).