[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Changed the type of val argument of the function gt
From: |
Ray Wang |
Subject: |
[Qemu-devel] [PATCH] Changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so change the corresponding bswap32() to bswap64(). |
Date: |
Mon, 26 Sep 2011 14:22:32 +0800 |
From: Xianlei Wang <address@hidden>
Signed-off-by: Xianlei Wang <address@hidden>
---
hw/gt64xxx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c
index 1c34253..d0a31d2 100644
--- a/hw/gt64xxx.c
+++ b/hw/gt64xxx.c
@@ -312,7 +312,7 @@ static void gt64120_writel (void *opaque,
target_phys_addr_t addr,
uint32_t saddr;
if (!(s->regs[GT_CPU] & 0x00001000))
- val = bswap32(val);
+ val = bswap64(val);
saddr = (addr & 0xfff) >> 2;
switch (saddr) {
@@ -533,7 +533,7 @@ static void gt64120_writel (void *opaque,
target_phys_addr_t addr,
break;
case GT_PCI0_CFGDATA:
if (!(s->regs[GT_PCI0_CMD] & 1) && (s->pci.config_reg & 0x00fff800))
- val = bswap32(val);
+ val = bswap64(val);
if (s->pci.config_reg & (1u << 31))
pci_data_write(s->pci.bus, s->pci.config_reg, val, 4);
break;
--
1.7.4.1
- [Qemu-devel] [PATCH] Changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so change the corresponding bswap32() to bswap64().,
Ray Wang <=