2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2003 Ralf Baechle
11 #include <linux/config.h>
16 * RM9000 hazards. When the JTLB is updated by tlbwi or tlbwr, a subsequent
17 * use of the JTLB for instructions should not occur for 4 cpu cycles and use
18 * for data translations should not occur for 3 cpu cycles.
20 #ifdef CONFIG_CPU_RM9000
21 #define rm9000_tlb_hazard \
23 ssnop; ssnop; ssnop; ssnop; \
26 #define rm9000_tlb_hazard
32 * RM9000 hazards. When the JTLB is updated by tlbwi or tlbwr, a subsequent
33 * use of the JTLB for instructions should not occur for 4 cpu cycles and use
34 * for data translations should not occur for 3 cpu cycles.
36 #ifdef CONFIG_CPU_RM9000
37 #define rm9000_tlb_hazard() \
38 __asm__ __volatile__( \
40 "ssnop; ssnop; ssnop; ssnop\n\t" \
43 #define rm9000_tlb_hazard() do { } while (0)
48 #endif /* _ASM_HAZARDS_H */