1
2
3
4
5
6
7
8
9
10 #include <linux/kernel.h>
11 #include <linux/bug.h>
12 #include "spu.h"
13
14
15
16
17
18
19
20
21
22
23
24 const struct spu_opcode spu_opcodes[] = {
25 #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \
26 { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
27 #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \
28 { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
29 #include "spu-insns.h"
30 #undef APUOP
31 #undef APUOPFB
32 };
33
34 const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes);