Rework fixed register assignments on m68k.
authorMiod Vallat <miod@tarides.com>
Wed, 19 Jun 2024 13:13:03 +0000 (13:13 +0000)
committerStéphane Glondu <glondu@debian.org>
Wed, 7 Aug 2024 12:12:25 +0000 (14:12 +0200)
The use of %a5 conflicts with its internal usage as a GOT base by Glibc,
so shift assignments one register down.

Origin: https://github.com/ocaml/ocaml/pull/13252

Gbp-Pq: Name 0009-Rework-fixed-register-assignments-on-m68k.patch

runtime/interp.c

index 66f012347e6d7c05b48f7089fe24f79c89b79df9..05c61e3051e3f1c5a5719868693cd3742b6fb445 100644 (file)
@@ -209,7 +209,7 @@ Caml_inline void check_trap_barrier_for_effect
 #define ACCU_REG asm("%r16")
 #endif
 #ifdef __mc68000__
-#define PC_REG asm("a5")
+#define PC_REG asm("a3")
 #define SP_REG asm("a4")
 #define ACCU_REG asm("d7")
 #endif