spu-opc.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPU opcode list
  2. Copyright 2006 Free Software Foundation, Inc.
  3. This file is part of GDB, GAS, and the GNU binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  15. #include <linux/kernel.h>
  16. #include <linux/bug.h>
  17. #include "spu.h"
  18. /* This file holds the Spu opcode table */
  19. /*
  20. Example contents of spu-insn.h
  21. id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction
  22. QUAD WORD (0,RC,RB,RA,RT) latency
  23. APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form
  24. */
  25. const struct spu_opcode spu_opcodes[] = {
  26. #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \
  27. { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
  28. #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \
  29. { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
  30. #include "spu-insns.h"
  31. #undef APUOP
  32. #undef APUOPFB
  33. };
  34. const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes);