Skip to content

Commit 557290f

Browse files
iabdalkaderdpgeorge
authored andcommitted
qemu/mcu/arm: Enable the FPU init for ARMv8-M.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent debac3e commit 557290f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/qemu/mcu/arm/startup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ __attribute__((naked)) void Reset_Handler(void) {
4747
for (uint32_t *dest = &_sbss; dest < &_ebss;) {
4848
*dest++ = 0;
4949
}
50-
#if MICROPY_HW_FPU && defined(__ARM_ARCH_ISA_THUMB) && __ARM_ARCH == 7
50+
#if MICROPY_HW_FPU && defined(__ARM_ARCH_ISA_THUMB) && __ARM_ARCH >= 7
5151
// initialise the FPU (full access to CP10 and CP11, as per B3.2.20)
5252
*((volatile uint32_t *)0xE000ED88) |= 0x00F00000;
5353
__asm volatile ("dsb");

0 commit comments

Comments
 (0)