diff mbox series

[v1,1/2] asm/head: Fix P10 HILE for little endian build

Message ID 20210807041347.395291-2-npiggin@gmail.com
State Superseded
Headers show
Series Default to little endian | expand

Commit Message

Nicholas Piggin Aug. 7, 2021, 4:13 a.m. UTC
Fixes: 891ed8df67 ("Initial POWER10 enablement")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 asm/head.S | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/asm/head.S b/asm/head.S
index fa8933b14..b2755344d 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -829,8 +829,13 @@  init_shared_sprs:
 	/* HID0:
 	 * Boot with PPC_BIT(5) set (dis_recovery).
 	 * Leave bit 5 set to disable recovery (due to HW570622)
+	 * Set/clear bit 4 (HILE) depending on skiboot endian
 	 */
+#if HAVE_BIG_ENDIAN
 	LOAD_IMM64(%r3, PPC_BIT(5))
+#else
+	LOAD_IMM64(%r3, PPC_BIT(5) | PPC_BIT(4))
+#endif
 	sync
 	mtspr	SPR_HID0,%r3
 	isync