netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
authorMaya Rashish <coypu@sdf.org>
Wed, 19 Jun 2019 16:01:24 +0000 (16:01 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 19 Jun 2019 16:01:24 +0000 (10:01 -0600)
*  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
(CLEAR_INSN_CACHE) Use it.

From-SVN: r272478

gcc/ChangeLog
gcc/config/arm/netbsd-elf.h

index aa92a3e57d52f2f798139cd30255344f964038cb..e5c455f3b8d548f190867283f04f3239369b3dab 100644 (file)
@@ -1,3 +1,8 @@
+2019-06-19  Maya Rashish  <coypu@sdf.org>
+
+       *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
+       (CLEAR_INSN_CACHE) Use it.
+
 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (cmpstrnsi): Remove dead code.
index ec68d3fd10f27527379c6057d6a6d8e067a69bea..e42a32f927c2c21ceb2f50afc99c735dc4f93d67 100644 (file)
 #undef DEFAULT_STRUCTURE_SIZE_BOUNDARY
 #define DEFAULT_STRUCTURE_SIZE_BOUNDARY 8
 
+#define SYSARCH_ARM_SYNC_ICACHE        0
+
 /* Clear the instruction cache from `BEG' to `END'.  This makes a
    call to the ARM_SYNC_ICACHE architecture specific syscall.  */
 #define CLEAR_INSN_CACHE(BEG, END)                                     \
@@ -151,6 +153,6 @@ do                                                                  \
       } s;                                                             \
     s.addr = (unsigned int)(BEG);                                      \
     s.len = (END) - (BEG);                                             \
-    (void) sysarch (0, &s);                                            \
+    (void) sysarch (SYSARCH_ARM_SYNC_ICACHE, &s);                      \
   }                                                                    \
 while (0)