Commit 742f80b1 by Maya Rashish Committed by Jeff Law

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
parent 74fda2dc
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> 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (cmpstrnsi): Remove dead code. * config/i386/i386.md (cmpstrnsi): Remove dead code.
......
...@@ -138,6 +138,8 @@ ...@@ -138,6 +138,8 @@
#undef DEFAULT_STRUCTURE_SIZE_BOUNDARY #undef DEFAULT_STRUCTURE_SIZE_BOUNDARY
#define DEFAULT_STRUCTURE_SIZE_BOUNDARY 8 #define DEFAULT_STRUCTURE_SIZE_BOUNDARY 8
#define SYSARCH_ARM_SYNC_ICACHE 0
/* Clear the instruction cache from `BEG' to `END'. This makes a /* Clear the instruction cache from `BEG' to `END'. This makes a
call to the ARM_SYNC_ICACHE architecture specific syscall. */ call to the ARM_SYNC_ICACHE architecture specific syscall. */
#define CLEAR_INSN_CACHE(BEG, END) \ #define CLEAR_INSN_CACHE(BEG, END) \
...@@ -151,6 +153,6 @@ do \ ...@@ -151,6 +153,6 @@ do \
} s; \ } s; \
s.addr = (unsigned int)(BEG); \ s.addr = (unsigned int)(BEG); \
s.len = (END) - (BEG); \ s.len = (END) - (BEG); \
(void) sysarch (0, &s); \ (void) sysarch (SYSARCH_ARM_SYNC_ICACHE, &s); \
} \ } \
while (0) while (0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment