qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH 2/2] memory: Fix adjust_endianness()


From: Andreas Färber
Subject: [Qemu-ppc] [PATCH 2/2] memory: Fix adjust_endianness()
Date: Sat, 7 Jan 2012 09:45:15 +0100

Commit a621f38de85598a13d8d8524d1a94fc6a1818215 (Direct dispatch
through MemoryRegion) moved byte swaps to a central function.

Add a missing break, so that long-sized byte swaps don't abort.

Signed-off-by: Andreas Färber <address@hidden>
Cc: Avi Kivity <address@hidden>
---
 memory.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/memory.c b/memory.c
index 5e55a90..5ab2112 100644
--- a/memory.c
+++ b/memory.c
@@ -942,6 +942,7 @@ static void adjust_endianness(MemoryRegion *mr, uint64_t 
*data, unsigned size)
             break;
         case 4:
             *data = bswap32(*data);
+            break;
         default:
             abort();
         }
-- 
1.7.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]