Patchwork [3/4] xen: use uint64_t instead of target_ulong in cpu_ioreq_move

login
register
mail settings
Submitter Stefano Stabellini
Date Sept. 9, 2011, 1:40 p.m.
Message ID <1315575609-30317-3-git-send-email-stefano.stabellini@eu.citrix.com>
Download mbox | patch
Permalink /patch/114100/
State New
Headers show

Comments

Stefano Stabellini - Sept. 9, 2011, 1:40 p.m.
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

cpu_ioreq_move might move 8 bytes at a time so we must make sure that
the temporary variable can hold 8 bytes.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 xen-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/xen-all.c b/xen-all.c
index 9eaeac1..3611e19 100644
--- a/xen-all.c
+++ b/xen-all.c
@@ -620,7 +620,7 @@  static void cpu_ioreq_move(ioreq_t *req)
             }
         }
     } else {
-        target_ulong tmp;
+        uint64_t tmp;
 
         if (req->dir == IOREQ_READ) {
             for (i = 0; i < req->count; i++) {