qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/arm/gumstix: Simplify since the machines are little-endian only

As the Connex and Verdex machines only boot in little-endian,
we can simplify the code.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

authored by

Philippe Mathieu-Daudé and committed by
Peter Maydell
b6cb2453 5ca0e6fe

+2 -14
+2 -14
hw/arm/gumstix.c
··· 51 51 { 52 52 PXA2xxState *cpu; 53 53 DriveInfo *dinfo; 54 - int be; 55 54 MemoryRegion *address_space_mem = get_system_memory(); 56 55 57 56 uint32_t connex_rom = 0x01000000; ··· 66 65 exit(1); 67 66 } 68 67 69 - #ifdef TARGET_WORDS_BIGENDIAN 70 - be = 1; 71 - #else 72 - be = 0; 73 - #endif 74 68 if (!pflash_cfi01_register(0x00000000, "connext.rom", connex_rom, 75 69 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, 76 - sector_len, 2, 0, 0, 0, 0, be)) { 70 + sector_len, 2, 0, 0, 0, 0, 0)) { 77 71 error_report("Error registering flash memory"); 78 72 exit(1); 79 73 } ··· 87 81 { 88 82 PXA2xxState *cpu; 89 83 DriveInfo *dinfo; 90 - int be; 91 84 MemoryRegion *address_space_mem = get_system_memory(); 92 85 93 86 uint32_t verdex_rom = 0x02000000; ··· 102 95 exit(1); 103 96 } 104 97 105 - #ifdef TARGET_WORDS_BIGENDIAN 106 - be = 1; 107 - #else 108 - be = 0; 109 - #endif 110 98 if (!pflash_cfi01_register(0x00000000, "verdex.rom", verdex_rom, 111 99 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, 112 - sector_len, 2, 0, 0, 0, 0, be)) { 100 + sector_len, 2, 0, 0, 0, 0, 0)) { 113 101 error_report("Error registering flash memory"); 114 102 exit(1); 115 103 }