[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/5] hw/arm/omap_sx1: Simplify since the machines are little-endi
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 3/5] hw/arm/omap_sx1: Simplify since the machines are little-endian only |
Date: |
Fri, 28 Feb 2020 13:53:49 +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/omap_sx1.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/hw/arm/omap_sx1.c b/hw/arm/omap_sx1.c
index 2bebab4171..de5ff447dc 100644
--- a/hw/arm/omap_sx1.c
+++ b/hw/arm/omap_sx1.c
@@ -114,7 +114,6 @@ static void sx1_init(MachineState *machine, const int
version)
DriveInfo *dinfo;
int fl_idx;
uint32_t flash_size = flash0_size;
- int be;
if (machine->ram_size != mc->default_ram_size) {
char *sz = size_to_str(mc->default_ram_size);
@@ -154,17 +153,11 @@ static void sx1_init(MachineState *machine, const int
version)
OMAP_CS2_BASE, &cs[3]);
fl_idx = 0;
-#ifdef TARGET_WORDS_BIGENDIAN
- be = 1;
-#else
- be = 0;
-#endif
-
if ((dinfo = drive_get(IF_PFLASH, 0, fl_idx)) != NULL) {
if (!pflash_cfi01_register(OMAP_CS0_BASE,
"omap_sx1.flash0-1", flash_size,
blk_by_legacy_dinfo(dinfo),
- sector_size, 4, 0, 0, 0, 0, be)) {
+ sector_size, 4, 0, 0, 0, 0, 0)) {
fprintf(stderr, "qemu: Error registering flash memory %d.\n",
fl_idx);
}
@@ -187,7 +180,7 @@ static void sx1_init(MachineState *machine, const int
version)
if (!pflash_cfi01_register(OMAP_CS1_BASE,
"omap_sx1.flash1-1", flash1_size,
blk_by_legacy_dinfo(dinfo),
- sector_size, 4, 0, 0, 0, 0, be)) {
+ sector_size, 4, 0, 0, 0, 0, 0)) {
fprintf(stderr, "qemu: Error registering flash memory %d.\n",
fl_idx);
}
--
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é <=
- [PATCH 2/5] hw/arm/mainstone: Simplify since the machines are little-endian only, Philippe Mathieu-Daudé, 2020/02/28
- [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