2 * Just-In-Time compiler for BPF filters on MIPS
4 * Copyright (c) 2014 Imagination Technologies Ltd.
5 * Author: Markos Chandras <markos.chandras@imgtec.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; version 2 of the License.
12 #ifndef BPF_JIT_MIPS_OP_H
13 #define BPF_JIT_MIPS_OP_H
15 /* Registers used by JIT */
34 /* Conditional codes */
35 #define MIPS_COND_EQ 0x1
36 #define MIPS_COND_GE (0x1 << 1)
37 #define MIPS_COND_GT (0x1 << 2)
38 #define MIPS_COND_NE (0x1 << 3)
39 #define MIPS_COND_ALL (0x1 << 4)
40 /* Conditionals on X register or K immediate */
41 #define MIPS_COND_X (0x1 << 5)
42 #define MIPS_COND_K (0x1 << 6)
44 #endif /* BPF_JIT_MIPS_OP_H */