Skip to contentSkip to conversation

fix ARMv8 interference with ARMv7

PATCH Applied Vicente Bergas 2 participants 2 messages Aug 8, 2016 – Aug 15, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix ARMv8 interference with ARMv7

CONFIG_CPU_V8 is checked against 'y' and 'n', but the case when the variable is unset is not considered.
This patch only checks the variable against a single value 'y' so the logic is always coherent even when the variable is unset.

---
 arch/arm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Makefile +1 -1
index 9fc3cd3..1ab35b9 100644
@@ -21,7 +21,7 @@ endif
 # at least some of the code would be executed with MMU off, lets be
 # conservative and instruct the compiler not to generate any unaligned
 # accesses
-ifeq ($(CONFIG_CPU_V8),n)
+ifneq ($(CONFIG_CPU_V8),y)
 CFLAGS += -mno-unaligned-access
 endif
 
Signature · 7 lines
2.9.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 10 lines · Vicente Bergas

CONFIG_CPU_V8 is checked against 'y' and 'n', but the case when the variable is unset is not considered.
This patch only checks the variable against a single value 'y' so the logic is always coherent even when the variable is unset.

---
 arch/arm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 23 lines
arch/arm/Makefile +1 -1
index 9fc3cd3..1ab35b9 100644
@@ -21,7 +21,7 @@ endif
 # at least some of the code would be executed with MMU off, lets be
 # conservative and instruct the compiler not to generate any unaligned
 # accesses
-ifeq ($(CONFIG_CPU_V8),n)
+ifneq ($(CONFIG_CPU_V8),y)
 CFLAGS += -mno-unaligned-access
 endif
 
Signature · 7 lines
2.9.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox