(INITIALIZE_TRAMPOLINE): Use `_flush_cache'; flush data cache too.

From-SVN: r12541
This commit is contained in:
Richard Kenner 1996-07-20 09:17:10 -04:00
parent 0189a68ad3
commit 22b54c57a1
1 changed files with 4 additions and 3 deletions

View File

@ -2218,12 +2218,13 @@ typedef struct mips_args {
emit_move_insn (gen_rtx (MEM, SImode, plus_constant (addr, 36)), CHAIN);\
} \
\
/* Flush the instruction cache. */ \
/* Flush both caches. We need to flush the data cache in case \
the system has a write-back cache. */ \
/* ??? Should check the return value for errors. */ \
emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "cacheflush"), \
emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "_flush_cache"), \
0, VOIDmode, 3, addr, Pmode, \
GEN_INT (TRAMPOLINE_SIZE), TYPE_MODE (integer_type_node),\
GEN_INT (1), TYPE_MODE (integer_type_node)); \
GEN_INT (3), TYPE_MODE (integer_type_node)); \
}
/* Addressing modes, and classification of registers for them. */