18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 28c2ecf20Sopenharmony_ci/* SPU opcode list 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci Copyright 2006 Free Software Foundation, Inc. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci This file is part of GDB, GAS, and the GNU binutils. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <linux/kernel.h> 118c2ecf20Sopenharmony_ci#include <linux/bug.h> 128c2ecf20Sopenharmony_ci#include "spu.h" 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* This file holds the Spu opcode table */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* 188c2ecf20Sopenharmony_ci Example contents of spu-insn.h 198c2ecf20Sopenharmony_ci id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction 208c2ecf20Sopenharmony_ci QUAD WORD (0,RC,RB,RA,RT) latency 218c2ecf20Sopenharmony_ci APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form 228c2ecf20Sopenharmony_ci */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciconst struct spu_opcode spu_opcodes[] = { 258c2ecf20Sopenharmony_ci#define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \ 268c2ecf20Sopenharmony_ci { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT }, 278c2ecf20Sopenharmony_ci#define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \ 288c2ecf20Sopenharmony_ci { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT }, 298c2ecf20Sopenharmony_ci#include "spu-insns.h" 308c2ecf20Sopenharmony_ci#undef APUOP 318c2ecf20Sopenharmony_ci#undef APUOPFB 328c2ecf20Sopenharmony_ci}; 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciconst int spu_num_opcodes = ARRAY_SIZE(spu_opcodes); 35