[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] hw/arm/mainstone: Simplify since the machines are little-end
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/5] hw/arm/mainstone: Simplify since the machines are little-endian only |
Date: |
Fri, 28 Feb 2020 13:53:48 +0100 |
We only build the little-endian softmmu configurations. Checking
for big endian is pointless, remove the unused code.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/arm/mainstone.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/hw/arm/mainstone.c b/hw/arm/mainstone.c
index 6e64dfab50..1042017086 100644
--- a/hw/arm/mainstone.c
+++ b/hw/arm/mainstone.c
@@ -119,7 +119,6 @@ static void mainstone_common_init(MemoryRegion
*address_space_mem,
DeviceState *mst_irq;
DriveInfo *dinfo;
int i;
- int be;
MemoryRegion *rom = g_new(MemoryRegion, 1);
/* Setup CPU & memory */
@@ -130,11 +129,6 @@ static void mainstone_common_init(MemoryRegion
*address_space_mem,
memory_region_set_readonly(rom, true);
memory_region_add_subregion(address_space_mem, 0, rom);
-#ifdef TARGET_WORDS_BIGENDIAN
- be = 1;
-#else
- be = 0;
-#endif
/* There are two 32MiB flash devices on the board */
for (i = 0; i < 2; i ++) {
dinfo = drive_get(IF_PFLASH, 0, i);
@@ -142,7 +136,7 @@ static void mainstone_common_init(MemoryRegion
*address_space_mem,
i ? "mainstone.flash1" : "mainstone.flash0",
MAINSTONE_FLASH,
dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
- sector_len, 4, 0, 0, 0, 0, be)) {
+ sector_len, 4, 0, 0, 0, 0, 0)) {
error_report("Error registering flash memory");
exit(1);
}
--
2.21.1
- [PATCH 0/5] hw/arm: Remove big-endian checks on machine code, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH 1/5] hw/arm/gumstix: Simplify since the machines are little-endian only, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH 3/5] hw/arm/omap_sx1: Simplify since the machines are little-endian only, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH 2/5] hw/arm/mainstone: Simplify since the machines are little-endian only,
Philippe Mathieu-Daudé <=
- [PATCH 4/5] hw/arm/z2: Simplify since the machines are little-endian only, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH 5/5] hw/arm/musicpal: Simplify since the machines are little-endian only, Philippe Mathieu-Daudé, 2020/02/28
- Re: [PATCH 0/5] hw/arm: Remove big-endian checks on machine code, Richard Henderson, 2020/02/29