altos/stm: New GAS version requires flags in APSR assignment
authorKeith Packard <keithp@keithp.com>
Tue, 8 Oct 2013 16:20:12 +0000 (09:20 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 8 Oct 2013 16:20:12 +0000 (09:20 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_arch_funcs.h

index 4bcc102324a5cb63fe49d518e684d4ffc072dcd6..b461cd3fbf81dd9f32dac82894ea96d7c5bdaad7 100644 (file)
@@ -329,7 +329,7 @@ static inline void ao_arch_restore_stack(void) {
 
        /* Restore APSR */
        asm("pop {r0}");
-       asm("msr apsr,r0");
+       asm("msr apsr_nczvq,r0");
 
        /* Restore general registers */
        asm("pop {r0-r12,lr}\n");