aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/netbsd-elf.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aa92a3e..e5c455f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/arm/netbsd-elf.h b/gcc/config/arm/netbsd-elf.h
index ec68d3f..e42a32f 100644
--- a/gcc/config/arm/netbsd-elf.h
+++ b/gcc/config/arm/netbsd-elf.h
@@ -138,6 +138,8 @@
#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)