From 281ba1370dbf0cab6520fcde02c53009b399be96 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Mon, 6 Jan 2025 14:21:59 +0800 Subject: [PATCH] add isb after cpacr update --- libcortex_a9/src/fpu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libcortex_a9/src/fpu.rs b/libcortex_a9/src/fpu.rs index c4dd568..4424330 100644 --- a/libcortex_a9/src/fpu.rs +++ b/libcortex_a9/src/fpu.rs @@ -6,6 +6,7 @@ pub fn enable_fpu() { mrc p15, 0, r1, c1, c0, 2 orr r1, r1, (0b1111<<20) mcr p15, 0, r1, c1, c0, 2 + isb vmrs r1, fpexc orr r1, r1, (1<<30)