^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /* SPU opcode list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Copyright 2006 Free Software Foundation, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) This file is part of GDB, GAS, and the GNU binutils.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/bug.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include "spu.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /* This file holds the Spu opcode table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Example contents of spu-insn.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) QUAD WORD (0,RC,RB,RA,RT) latency
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) const struct spu_opcode spu_opcodes[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #include "spu-insns.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #undef APUOP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #undef APUOPFB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes);