Commit 6ed84370 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

cobalt/arch/arm: fptest: Add missing SIMD register clobbering



This caused troubles with modern gcc that starts to use those regs for
other purposes. Seen with gcc-10 on Debian 11 e.g.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent b9ef97bf
......@@ -32,7 +32,12 @@ static inline void fp_regs_set(int features, unsigned int val)
/* vldm %0!, {d0-d15},
AKA fldmiax %0!, {d0-d15} */
__asm__ __volatile__("ldc p11, cr0, [%0],#32*4":
"=r"(i): "0"(&e[0]): "memory");
"=r"(i)
: "0"(&e[0])
: "d0", "d1", "d2", "d3", "d4", "d5",
"d6", "d7", "d8", "d9", "d10", "d11",
"d12", "d13", "d14", "d15",
"memory");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment