]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgcc/config/nds32/isr-library/restore_all.inc
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / nds32 / isr-library / restore_all.inc
index 74556466fa9105e016828fecd9487930453048d0..ddf3520f96b0837728a3d4ac84563f0c0f194e43 100644 (file)
@@ -1,5 +1,5 @@
 /* c-isr library stuff of Andes NDS32 cpu for GNU compiler
-   Copyright (C) 2012-2018 Free Software Foundation, Inc.
+   Copyright (C) 2012-2024 Free Software Foundation, Inc.
    Contributed by Andes Technology Corporation.
 
    This file is part of GCC.
        mtsr    $r2, $IPSW
        RESTORE_FPU_REGS
        RESTORE_MAC_REGS
-#ifdef NDS32_EXT_IFC
-       lmw.bim $r1, [$sp], $r2, #0x0   /* Restore extra $r2 to keep
-                                          stack 8-byte alignment.  */
-       mtusr   $r1, $IFC_LP
-#endif
-#ifdef __NDS32_REDUCED_REGS__
+  RESTORE_USR_REGS
+#if __NDS32_REDUCED_REGS__ || __NDS32_REDUCE_REGS
        lmw.bim $r0, [$sp], $r10, #0x0  /* Restore all regs.  */
        lmw.bim $r15, [$sp], $r15, #0xf
-#else /* not __NDS32_REDUCED_REGS__ */
+#else
        lmw.bim $r0, [$sp], $r27, #0xf  /* Restore all regs.  */
 #endif
 .endm