From 742f80b15861510ad14b46f24a81157041b7acf0 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Wed, 19 Jun 2019 16:01:24 +0000 Subject: [PATCH] netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition. * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition. (CLEAR_INSN_CACHE) Use it. From-SVN: r272478 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/netbsd-elf.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition. + (CLEAR_INSN_CACHE) Use it. + 2019-06-19 Uroš Bizjak * 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) -- 2.7.4