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 \
24 ssnop; ssnop; ssnop; ssnop; \
27 #define rm9000_tlb_hazard
33 * RM9000 hazards. When the JTLB is updated by tlbwi or tlbwr, a subsequent
34 * use of the JTLB for instructions should not occur for 4 cpu cycles and use
35 * for data translations should not occur for 3 cpu cycles.
37 #ifdef CONFIG_CPU_RM9000
38 #define rm9000_tlb_hazard() \
39 __asm__ __volatile__( \
41 "ssnop; ssnop; ssnop; ssnop\n\t" \
44 #define rm9000_tlb_hazard() do { } while (0)
49 #endif /* _ASM_HAZARDS_H */