pj-opc.c 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. /* pj-opc.c -- Definitions for picoJava opcodes.
  2. Copyright (C) 1999-2022 Free Software Foundation, Inc.
  3. Contributed by Steve Chamberlain of Transmeta (sac@pobox.com).
  4. This file is part of the GNU opcodes library.
  5. This library is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. It is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this file; see the file COPYING. If not, write to the
  15. Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
  16. MA 02110-1301, USA. */
  17. #include "sysdep.h"
  18. #include "opcode/pj.h"
  19. const pj_opc_info_t pj_opc_info[512] =
  20. {
  21. { 0x00, -1, 1, {O_N, O_N}, {"nop"}},
  22. { 0x01, -1, 1, {O_N, O_N}, {"aconst_null"}},
  23. { 0x02, -1, 1, {O_N, O_N}, {"iconst_m1"}},
  24. { 0x03, -1, 1, {O_N, O_N}, {"iconst_0"}},
  25. { 0x04, -1, 1, {O_N, O_N}, {"iconst_1"}},
  26. { 0x05, -1, 1, {O_N, O_N}, {"iconst_2"}},
  27. { 0x06, -1, 1, {O_N, O_N}, {"iconst_3"}},
  28. { 0x07, -1, 1, {O_N, O_N}, {"iconst_4"}},
  29. { 0x08, -1, 1, {O_N, O_N}, {"iconst_5"}},
  30. { 0x09, -1, 1, {O_N, O_N}, {"lconst_0"}},
  31. { 0x0a, -1, 1, {O_N, O_N}, {"lconst_1"}},
  32. { 0x0b, -1, 1, {O_N, O_N}, {"fconst_0"}},
  33. { 0x0c, -1, 1, {O_N, O_N}, {"fconst_1"}},
  34. { 0x0d, -1, 1, {O_N, O_N}, {"fconst_2"}},
  35. { 0x0e, -1, 1, {O_N, O_N}, {"dconst_0"}},
  36. { 0x0f, -1, 1, {O_N, O_N}, {"dconst_1"}},
  37. { 0x10, -1, 2, {O_8, O_N}, {"bipush"}},
  38. { 0x11, -1, 3, {O_16, O_N}, {"sipush"}},
  39. { 0x12, -1, 2, {O_N, O_N}, {"ldc"}},
  40. { 0x13, -1, 3, {O_N, O_N}, {"ldc_w"}},
  41. { 0x14, -1, 3, {O_N, O_N}, {"ldc2_w"}},
  42. { 0x15, -1, 2, {O_U8, O_N}, {"iload"}},
  43. { 0x16, -1, 2, {O_U8, O_N}, {"lload"}},
  44. { 0x17, -1, 2, {O_U8, O_N}, {"fload"}},
  45. { 0x18, -1, 2, {O_U8, O_N}, {"dload"}},
  46. { 0x19, -1, 2, {O_U8, O_N}, {"aload"}},
  47. { 0x1a, -1, 1, {O_N, O_N}, {"iload_0"}},
  48. { 0x1b, -1, 1, {O_N, O_N}, {"iload_1"}},
  49. { 0x1c, -1, 1, {O_N, O_N}, {"iload_2"}},
  50. { 0x1d, -1, 1, {O_N, O_N}, {"iload_3"}},
  51. { 0x1e, -1, 1, {O_N, O_N}, {"lload_0"}},
  52. { 0x1f, -1, 1, {O_N, O_N}, {"lload_1"}},
  53. { 0x20, -1, 1, {O_N, O_N}, {"lload_2"}},
  54. { 0x21, -1, 1, {O_N, O_N}, {"lload_3"}},
  55. { 0x22, -1, 1, {O_N, O_N}, {"fload_0"}},
  56. { 0x23, -1, 1, {O_N, O_N}, {"fload_1"}},
  57. { 0x24, -1, 1, {O_N, O_N}, {"fload_2"}},
  58. { 0x25, -1, 1, {O_N, O_N}, {"fload_3"}},
  59. { 0x26, -1, 1, {O_N, O_N}, {"dload_0"}},
  60. { 0x27, -1, 1, {O_N, O_N}, {"dload_1"}},
  61. { 0x28, -1, 1, {O_N, O_N}, {"dload_2"}},
  62. { 0x29, -1, 1, {O_N, O_N}, {"dload_3"}},
  63. { 0x2a, -1, 1, {O_N, O_N}, {"aload_0"}},
  64. { 0x2b, -1, 1, {O_N, O_N}, {"aload_1"}},
  65. { 0x2c, -1, 1, {O_N, O_N}, {"aload_2"}},
  66. { 0x2d, -1, 1, {O_N, O_N}, {"aload_3"}},
  67. { 0x2e, -1, 1, {O_N, O_N}, {"iaload"}},
  68. { 0x2f, -1, 1, {O_N, O_N}, {"laload"}},
  69. { 0x30, -1, 1, {O_N, O_N}, {"faload"}},
  70. { 0x31, -1, 1, {O_N, O_N}, {"daload"}},
  71. { 0x32, -1, 1, {O_N, O_N}, {"aaload"}},
  72. { 0x33, -1, 1, {O_N, O_N}, {"baload"}},
  73. { 0x34, -1, 1, {O_N, O_N}, {"caload"}},
  74. { 0x35, -1, 1, {O_N, O_N}, {"saload"}},
  75. { 0x36, -1, 2, {O_U8, O_N}, {"istore"}},
  76. { 0x37, -1, 2, {O_U8, O_N}, {"lstore"}},
  77. { 0x38, -1, 2, {O_U8, O_N}, {"fstore"}},
  78. { 0x39, -1, 2, {O_U8, O_N}, {"dstore"}},
  79. { 0x3a, -1, 2, {O_U8, O_N}, {"astore"}},
  80. { 0x3b, -1, 1, {O_N, O_N}, {"istore_0"}},
  81. { 0x3c, -1, 1, {O_N, O_N}, {"istore_1"}},
  82. { 0x3d, -1, 1, {O_N, O_N}, {"istore_2"}},
  83. { 0x3e, -1, 1, {O_N, O_N}, {"istore_3"}},
  84. { 0x3f, -1, 1, {O_N, O_N}, {"lstore_0"}},
  85. { 0x40, -1, 1, {O_N, O_N}, {"lstore_1"}},
  86. { 0x41, -1, 1, {O_N, O_N}, {"lstore_2"}},
  87. { 0x42, -1, 1, {O_N, O_N}, {"lstore_3"}},
  88. { 0x43, -1, 1, {O_N, O_N}, {"fstore_0"}},
  89. { 0x44, -1, 1, {O_N, O_N}, {"fstore_1"}},
  90. { 0x45, -1, 1, {O_N, O_N}, {"fstore_2"}},
  91. { 0x46, -1, 1, {O_N, O_N}, {"fstore_3"}},
  92. { 0x47, -1, 1, {O_N, O_N}, {"dstore_0"}},
  93. { 0x48, -1, 1, {O_N, O_N}, {"dstore_1"}},
  94. { 0x49, -1, 1, {O_N, O_N}, {"dstore_2"}},
  95. { 0x4a, -1, 1, {O_N, O_N}, {"dstore_3"}},
  96. { 0x4b, -1, 1, {O_N, O_N}, {"astore_0"}},
  97. { 0x4c, -1, 1, {O_N, O_N}, {"astore_1"}},
  98. { 0x4d, -1, 1, {O_N, O_N}, {"astore_2"}},
  99. { 0x4e, -1, 1, {O_N, O_N}, {"astore_3"}},
  100. { 0x4f, -1, 1, {O_N, O_N}, {"iastore"}},
  101. { 0x50, -1, 1, {O_N, O_N}, {"lastore"}},
  102. { 0x51, -1, 1, {O_N, O_N}, {"fastore"}},
  103. { 0x52, -1, 1, {O_N, O_N}, {"dastore"}},
  104. { 0x53, -1, 1, {O_N, O_N}, {"aastore"}},
  105. { 0x54, -1, 1, {O_N, O_N}, {"bastore"}},
  106. { 0x55, -1, 1, {O_N, O_N}, {"castore"}},
  107. { 0x56, -1, 1, {O_N, O_N}, {"sastore"}},
  108. { 0x57, -1, 1, {O_N, O_N}, {"pop"}},
  109. { 0x58, -1, 1, {O_N, O_N}, {"pop2"}},
  110. { 0x59, -1, 1, {O_N, O_N}, {"dup"}},
  111. { 0x5a, -1, 1, {O_N, O_N}, {"dup_x1"}},
  112. { 0x5b, -1, 1, {O_N, O_N}, {"dup_x2"}},
  113. { 0x5c, -1, 1, {O_N, O_N}, {"dup2"}},
  114. { 0x5d, -1, 1, {O_N, O_N}, {"dup2_x1"}},
  115. { 0x5e, -1, 1, {O_N, O_N}, {"dup2_x2"}},
  116. { 0x5f, -1, 1, {O_N, O_N}, {"swap"}},
  117. { 0x60, -1, 1, {O_N, O_N}, {"iadd"}},
  118. { 0x61, -1, 1, {O_N, O_N}, {"ladd"}},
  119. { 0x62, -1, 1, {O_N, O_N}, {"fadd"}},
  120. { 0x63, -1, 1, {O_N, O_N}, {"dadd"}},
  121. { 0x64, -1, 1, {O_N, O_N}, {"isub"}},
  122. { 0x65, -1, 1, {O_N, O_N}, {"lsub"}},
  123. { 0x66, -1, 1, {O_N, O_N}, {"fsub"}},
  124. { 0x67, -1, 1, {O_N, O_N}, {"dsub"}},
  125. { 0x68, -1, 1, {O_N, O_N}, {"imul"}},
  126. { 0x69, -1, 1, {O_N, O_N}, {"lmul"}},
  127. { 0x6a, -1, 1, {O_N, O_N}, {"fmul"}},
  128. { 0x6b, -1, 1, {O_N, O_N}, {"dmul"}},
  129. { 0x6c, -1, 1, {O_N, O_N}, {"idiv"}},
  130. { 0x6d, -1, 1, {O_N, O_N}, {"ldiv"}},
  131. { 0x6e, -1, 1, {O_N, O_N}, {"fdiv"}},
  132. { 0x6f, -1, 1, {O_N, O_N}, {"ddiv"}},
  133. { 0x70, -1, 1, {O_N, O_N}, {"irem"}},
  134. { 0x71, -1, 1, {O_N, O_N}, {"lrem"}},
  135. { 0x72, -1, 1, {O_N, O_N}, {"frem"}},
  136. { 0x73, -1, 1, {O_N, O_N}, {"drem"}},
  137. { 0x74, -1, 1, {O_N, O_N}, {"ineg"}},
  138. { 0x75, -1, 1, {O_N, O_N}, {"lneg"}},
  139. { 0x76, -1, 1, {O_N, O_N}, {"fneg"}},
  140. { 0x77, -1, 1, {O_N, O_N}, {"dneg"}},
  141. { 0x78, -1, 1, {O_N, O_N}, {"ishl"}},
  142. { 0x79, -1, 1, {O_N, O_N}, {"lshl"}},
  143. { 0x7a, -1, 1, {O_N, O_N}, {"ishr"}},
  144. { 0x7b, -1, 1, {O_N, O_N}, {"lshr"}},
  145. { 0x7c, -1, 1, {O_N, O_N}, {"iushr"}},
  146. { 0x7d, -1, 1, {O_N, O_N}, {"lushr"}},
  147. { 0x7e, -1, 1, {O_N, O_N}, {"iand"}},
  148. { 0x7f, -1, 1, {O_N, O_N}, {"land"}},
  149. { 0x80, -1, 1, {O_N, O_N}, {"ior"}},
  150. { 0x81, -1, 1, {O_N, O_N}, {"lor"}},
  151. { 0x82, -1, 1, {O_N, O_N}, {"ixor"}},
  152. { 0x83, -1, 1, {O_N, O_N}, {"lxor"}},
  153. { 0x84, -1, 3, {O_U8, O_8}, {"iinc"}},
  154. { 0x85, -1, 1, {O_N, O_N}, {"i2l"}},
  155. { 0x86, -1, 1, {O_N, O_N}, {"i2f"}},
  156. { 0x87, -1, 1, {O_N, O_N}, {"i2d"}},
  157. { 0x88, -1, 1, {O_N, O_N}, {"l2i"}},
  158. { 0x89, -1, 1, {O_N, O_N}, {"l2f"}},
  159. { 0x8a, -1, 1, {O_N, O_N}, {"l2d"}},
  160. { 0x8b, -1, 1, {O_N, O_N}, {"f2i"}},
  161. { 0x8c, -1, 1, {O_N, O_N}, {"f2l"}},
  162. { 0x8d, -1, 1, {O_N, O_N}, {"f2d"}},
  163. { 0x8e, -1, 1, {O_N, O_N}, {"d2i"}},
  164. { 0x8f, -1, 1, {O_N, O_N}, {"d2l"}},
  165. { 0x90, -1, 1, {O_N, O_N}, {"d2f"}},
  166. { 0x91, -1, 1, {O_N, O_N}, {"i2b"}},
  167. { 0x92, -1, 1, {O_N, O_N}, {"i2c"}},
  168. { 0x93, -1, 1, {O_N, O_N}, {"i2s"}},
  169. { 0x94, -1, 1, {O_N, O_N}, {"lcmp"}},
  170. { 0x95, -1, 1, {O_N, O_N}, {"fcmpl"}},
  171. { 0x96, -1, 1, {O_N, O_N}, {"fcmpg"}},
  172. { 0x97, -1, 1, {O_N, O_N}, {"dcmpl"}},
  173. { 0x98, -1, 1, {O_N, O_N}, {"dcmpg"}},
  174. { 0x99, -1, 3, {O_R16, O_N}, {"ifeq"}},
  175. { 0x9a, -1, 3, {O_R16, O_N}, {"ifne"}},
  176. { 0x9b, -1, 3, {O_R16, O_N}, {"iflt"}},
  177. { 0x9c, -1, 3, {O_R16, O_N}, {"ifge"}},
  178. { 0x9d, -1, 3, {O_R16, O_N}, {"ifgt"}},
  179. { 0x9e, -1, 3, {O_R16, O_N}, {"ifle"}},
  180. { 0x9f, -1, 3, {O_R16, O_N}, {"if_icmpeq"}},
  181. { 0xa0, -1, 3, {O_R16, O_N}, {"if_icmpne"}},
  182. { 0xa1, -1, 3, {O_R16, O_N}, {"if_icmplt"}},
  183. { 0xa2, -1, 3, {O_R16, O_N}, {"if_icmpge"}},
  184. { 0xa3, -1, 3, {O_R16, O_N}, {"if_icmpgt"}},
  185. { 0xa4, -1, 3, {O_R16, O_N}, {"if_icmple"}},
  186. { 0xa5, -1, 3, {O_R16, O_N}, {"if_acmpeq"}},
  187. { 0xa6, -1, 3, {O_R16, O_N}, {"if_acmpne"}},
  188. { 0xa7, -1, 3, {O_R16, O_N}, {"goto"}},
  189. { 0xa8, -1, 3, {O_R16, O_N}, {"jsr"}},
  190. { 0xa9, -1, 2, {O_U8, O_N}, {"ret"}},
  191. { 0xaa, -1, 1, {O_N, O_N}, {"tableswitch"}},
  192. { 0xab, -1, 1, {O_N, O_N}, {"lookupswitch"}},
  193. { 0xac, -1, 1, {O_N, O_N}, {"ireturn"}},
  194. { 0xad, -1, 1, {O_N, O_N}, {"lreturn"}},
  195. { 0xae, -1, 1, {O_N, O_N}, {"freturn"}},
  196. { 0xaf, -1, 1, {O_N, O_N}, {"dreturn"}},
  197. { 0xb0, -1, 1, {O_N, O_N}, {"areturn"}},
  198. { 0xb1, -1, 1, {O_N, O_N}, {"return"}},
  199. { 0xb2, -1, 3, {O_U16, O_N}, {"getstatic"}},
  200. { 0xb3, -1, 3, {O_U16, O_N}, {"putstatic"}},
  201. { 0xb4, -1, 3, {O_U16, O_N}, {"getfield"}},
  202. { 0xb5, -1, 3, {O_U16, O_N}, {"putfield"}},
  203. { 0xb6, -1, 3, {O_U16, O_N}, {"invokevirtual"}},
  204. { 0xb7, -1, 3, {O_U16, O_N}, {"invokespecial"}},
  205. { 0xb8, -1, 3, {O_U16, O_N}, {"invokestatic"}},
  206. { 0xb9, -1, 5, {O_U16, O_U8}, {"invokeinterface"}},
  207. { 0xba, -1, 1, {O_N, O_N}, {"bad_ba"}},
  208. { 0xbb, -1, 3, {O_N, O_N}, {"new"}},
  209. { 0xbc, -1, 2, {O_N, O_N}, {"newarray"}},
  210. { 0xbd, -1, 3, {O_N, O_N}, {"anewarray"}},
  211. { 0xbe, -1, 1, {O_N, O_N}, {"arraylength"}},
  212. { 0xbf, -1, 1, {O_N, O_N}, {"athrow"}},
  213. { 0xc0, -1, 3, {O_N, O_N}, {"checkcast"}},
  214. { 0xc1, -1, 3, {O_N, O_N}, {"instanceof"}},
  215. { 0xc2, -1, 1, {O_N, O_N}, {"monitorenter"}},
  216. { 0xc3, -1, 1, {O_N, O_N}, {"monitorexit"}},
  217. { 0xc4, -1, 1, {O_N, O_N}, {"wide"}},
  218. { 0xc5, -1, 4, {O_N, O_N}, {"multianewarray"}},
  219. { 0xc6, -1, 3, {O_N, O_N}, {"ifnull"}},
  220. { 0xc7, -1, 3, {O_N, O_N}, {"ifnonnull"}},
  221. { 0xc8, -1, 5, {O_R32, O_N}, {"goto_w"}},
  222. { 0xc9, -1, 5, {O_R32, O_N}, {"jsr_w"}},
  223. { 0xca, -1, 3, {O_N, O_N}, {"breakpoint"}},
  224. { 0xcb, -1, 2, {O_U8, O_N}, {"ldc_quick"}},
  225. { 0xcc, -1, 3, {O_U16, O_N}, {"ldc_w_quick"}},
  226. { 0xcd, -1, 3, {O_U16, O_N}, {"ldc2_w_quick"}},
  227. { 0xce, -1, 3, {O_U16, O_N}, {"getfield_quick"}},
  228. { 0xcf, -1, 3, {O_U16, O_N}, {"putfield_quick"}},
  229. { 0xd0, -1, 3, {O_U16, O_N}, {"getfield2_quick"}},
  230. { 0xd1, -1, 3, {O_U16, O_N}, {"putfield2_quick"}},
  231. { 0xd2, -1, 3, {O_U16, O_N}, {"getstatic_quick"}},
  232. { 0xd3, -1, 3, {O_U16, O_N}, {"putstatic_quick"}},
  233. { 0xd4, -1, 3, {O_U16, O_N}, {"getstatic2_quick"}},
  234. { 0xd5, -1, 3, {O_U16, O_N}, {"putstatic2_quick"}},
  235. { 0xd6, -1, 3, {O_U16, O_N}, {"invokevirtual_quick"}},
  236. { 0xd7, -1, 3, {O_U16, O_N}, {"invokenonvirtual_quick"}},
  237. { 0xd8, -1, 3, {O_U16, O_N}, {"invokesuper_quick"}},
  238. { 0xd9, -1, 3, {O_U16, O_N}, {"invokestatic_quick"}},
  239. { 0xda, -1, 3, {O_U16, O_N}, {"invokeinterface_quick"}},
  240. { 0xdb, -1, 1, {O_N, O_N}, {"bad_db"}},
  241. { 0xdc, -1, 1, {O_N, O_N}, {"aastore_quick"}},
  242. { 0xdd, -1, 3, {O_U16, O_N}, {"new_quick"}},
  243. { 0xde, -1, 3, {O_U16, O_N}, {"anewarray_quick"}},
  244. { 0xdf, -1, 3, {O_U16, O_N}, {"multianewarray_quick"}},
  245. { 0xe0, -1, 3, {O_U16, O_N}, {"checkcast_quick"}},
  246. { 0xe1, -1, 3, {O_U16, O_N}, {"instanceof_quick"}},
  247. { 0xe2, -1, 3, {O_U16, O_N}, {"invokevirtiual_quick_w"}},
  248. { 0xe3, -1, 3, {O_U16, O_N}, {"getfield_quick_w"}},
  249. { 0xe4, -1, 3, {O_U16, O_N}, {"putfield_quick_w"}},
  250. { 0xe5, -1, 1, {O_N, O_N}, {"nonnull_quick"}},
  251. { 0xe6, -1, 3, {O_U16, O_N}, {"agetfield_quick"}},
  252. { 0xe7, -1, 3, {O_U16, O_N}, {"aputfield_quick"}},
  253. { 0xe8, -1, 3, {O_U16, O_N}, {"agetstatic_quick"}},
  254. { 0xe9, -1, 3, {O_U16, O_N}, {"aputstatic_quick"}},
  255. { 0xea, -1, 2, {O_U8, O_N}, {"aldc_quick"}},
  256. { 0xeb, -1, 3, {O_U16, O_N}, {"aldc_w_quick"}},
  257. { 0xec, -1, 1, {O_N, O_N}, {"exit_sync_method"}},
  258. { 0xed, -1, 3, {O_16, O_N}, {"sethi"}},
  259. { 0xee, -1, 3, {O_U8, O_8}, {"load_word_index"}},
  260. { 0xef, -1, 3, {O_U8, O_8}, {"load_short_index"}},
  261. { 0xf0, -1, 3, {O_U8, O_8}, {"load_char_index"}},
  262. { 0xf1, -1, 3, {O_U8, O_8}, {"load_byte_index"}},
  263. { 0xf2, -1, 3, {O_U8, O_8}, {"load_ubyte_index"}},
  264. { 0xf3, -1, 3, {O_U8, O_8}, {"store_word_index"}},
  265. { 0xf4, -1, 3, {O_U8, O_8}, {"na_store_word_index"}},
  266. { 0xf5, -1, 3, {O_U8, O_8}, {"store_short_index"}},
  267. { 0xf6, -1, 3, {O_U8, O_8}, {"store_byte_index"}},
  268. { 0xf7, -1, 1, {O_N, O_N}, {"bad_f7"}},
  269. { 0xf8, -1, 1, {O_N, O_N}, {"bad_f8"}},
  270. { 0xf9, -1, 1, {O_N, O_N}, {"bad_f9"}},
  271. { 0xfa, -1, 1, {O_N, O_N}, {"bad_fa"}},
  272. { 0xfb, -1, 1, {O_N, O_N}, {"bad_fb"}},
  273. { 0xfc, -1, 1, {O_N, O_N}, {"bad_fc"}},
  274. { 0xfd, -1, 1, {O_N, O_N}, {"bad_fd"}},
  275. { 0xfe, -1, 1, {O_N, O_N}, {"bad_fe"}},
  276. { 0xff, 0x00, 2, {O_N, O_N}, {"load_ubyte"}},
  277. { 0xff, 0x01, 2, {O_N, O_N}, {"load_byte"}},
  278. { 0xff, 0x02, 2, {O_N, O_N}, {"load_char"}},
  279. { 0xff, 0x03, 2, {O_N, O_N}, {"load_short"}},
  280. { 0xff, 0x04, 2, {O_N, O_N}, {"load_word"}},
  281. { 0xff, 0x05, 2, {O_N, O_N}, {"priv_ret_from_trap"}},
  282. { 0xff, 0x06, 2, {O_N, O_N}, {"priv_read_dcache_tag"}},
  283. { 0xff, 0x07, 2, {O_N, O_N}, {"priv_read_dcache_data"}},
  284. { 0xff, 0x08, 2, {O_N, O_N}, {"bad"}},
  285. { 0xff, 0x09, 2, {O_N, O_N}, {"bad"}},
  286. { 0xff, 0x0a, 2, {O_N, O_N}, {"load_char_oe"}},
  287. { 0xff, 0x0b, 2, {O_N, O_N}, {"load_short_oe"}},
  288. { 0xff, 0x0c, 2, {O_N, O_N}, {"load_word_oe"}},
  289. { 0xff, 0x0d, 2, {O_N, O_N}, {"return0"}},
  290. { 0xff, 0x0e, 2, {O_N, O_N}, {"priv_read_icache_tag"}},
  291. { 0xff, 0x0f, 2, {O_N, O_N}, {"priv_read_icache_data"}},
  292. { 0xff, 0x10, 2, {O_N, O_N}, {"ncload_ubyte"}},
  293. { 0xff, 0x11, 2, {O_N, O_N}, {"ncload_byte"}},
  294. { 0xff, 0x12, 2, {O_N, O_N}, {"ncload_char"}},
  295. { 0xff, 0x13, 2, {O_N, O_N}, {"ncload_short"}},
  296. { 0xff, 0x14, 2, {O_N, O_N}, {"ncload_word"}},
  297. { 0xff, 0x15, 2, {O_N, O_N}, {"iucmp"}},
  298. { 0xff, 0x16, 2, {O_N, O_N}, {"priv_powerdown"}},
  299. { 0xff, 0x17, 2, {O_N, O_N}, {"cache_invalidate"}},
  300. { 0xff, 0x18, 2, {O_N, O_N}, {"bad"}},
  301. { 0xff, 0x19, 2, {O_N, O_N}, {"bad"}},
  302. { 0xff, 0x1a, 2, {O_N, O_N}, {"ncload_char_oe"}},
  303. { 0xff, 0x1b, 2, {O_N, O_N}, {"ncload_short_oe"}},
  304. { 0xff, 0x1c, 2, {O_N, O_N}, {"ncload_word_oe"}},
  305. { 0xff, 0x1d, 2, {O_N, O_N}, {"return1"}},
  306. { 0xff, 0x1e, 2, {O_N, O_N}, {"cache_flush"}},
  307. { 0xff, 0x1f, 2, {O_N, O_N}, {"cache_index_flush"}},
  308. { 0xff, 0x20, 2, {O_N, O_N}, {"store_byte"}},
  309. { 0xff, 0x21, 2, {O_N, O_N}, {"bad"}},
  310. { 0xff, 0x22, 2, {O_N, O_N}, {"store_short"}},
  311. { 0xff, 0x23, 2, {O_N, O_N}, {"bad"}},
  312. { 0xff, 0x24, 2, {O_N, O_N}, {"store_word"}},
  313. { 0xff, 0x25, 2, {O_N, O_N}, {"soft_trap"}},
  314. { 0xff, 0x26, 2, {O_N, O_N}, {"priv_write_dcache_tag"}},
  315. { 0xff, 0x27, 2, {O_N, O_N}, {"priv_write_dcache_data"}},
  316. { 0xff, 0x28, 2, {O_N, O_N}, {"bad"}},
  317. { 0xff, 0x29, 2, {O_N, O_N}, {"bad"}},
  318. { 0xff, 0x2a, 2, {O_N, O_N}, {"store_short_oe"}},
  319. { 0xff, 0x2b, 2, {O_N, O_N}, {"bad"}},
  320. { 0xff, 0x2c, 2, {O_N, O_N}, {"store_word_oe"}},
  321. { 0xff, 0x2d, 2, {O_N, O_N}, {"return2"}},
  322. { 0xff, 0x2e, 2, {O_N, O_N}, {"priv_write_icache_tag"}},
  323. { 0xff, 0x2f, 2, {O_N, O_N}, {"priv_write_icache_data"}},
  324. { 0xff, 0x30, 2, {O_N, O_N}, {"ncstore_byte"}},
  325. { 0xff, 0x31, 2, {O_N, O_N}, {"bad"}},
  326. { 0xff, 0x32, 2, {O_N, O_N}, {"ncstore_short"}},
  327. { 0xff, 0x33, 2, {O_N, O_N}, {"bad"}},
  328. { 0xff, 0x34, 2, {O_N, O_N}, {"ncstore_word"}},
  329. { 0xff, 0x35, 2, {O_N, O_N}, {"bad"}},
  330. { 0xff, 0x36, 2, {O_N, O_N}, {"priv_reset"}},
  331. { 0xff, 0x37, 2, {O_N, O_N}, {"get_current_class"}},
  332. { 0xff, 0x38, 2, {O_N, O_N}, {"bad"}},
  333. { 0xff, 0x39, 2, {O_N, O_N}, {"bad"}},
  334. { 0xff, 0x3a, 2, {O_N, O_N}, {"ncstore_short_oe"}},
  335. { 0xff, 0x3b, 2, {O_N, O_N}, {"bad"}},
  336. { 0xff, 0x3c, 2, {O_N, O_N}, {"ncstore_word_oe"}},
  337. { 0xff, 0x3d, 2, {O_N, O_N}, {"call"}},
  338. { 0xff, 0x3e, 2, {O_N, O_N}, {"zero_line"}},
  339. { 0xff, 0x3f, 2, {O_N, O_N}, {"priv_update_optop"}},
  340. { 0xff, 0x40, 2, {O_N, O_N}, {"read_pc"}},
  341. { 0xff, 0x41, 2, {O_N, O_N}, {"read_vars"}},
  342. { 0xff, 0x42, 2, {O_N, O_N}, {"read_frame"}},
  343. { 0xff, 0x43, 2, {O_N, O_N}, {"read_optop"}},
  344. { 0xff, 0x44, 2, {O_N, O_N}, {"priv_read_oplim"}},
  345. { 0xff, 0x45, 2, {O_N, O_N}, {"read_const_pool"}},
  346. { 0xff, 0x46, 2, {O_N, O_N}, {"priv_read_psr"}},
  347. { 0xff, 0x47, 2, {O_N, O_N}, {"priv_read_trapbase"}},
  348. { 0xff, 0x48, 2, {O_N, O_N}, {"priv_read_lockcount0"}},
  349. { 0xff, 0x49, 2, {O_N, O_N}, {"priv_read_lockcount1"}},
  350. { 0xff, 0x4a, 2, {O_N, O_N}, {"bad"}},
  351. { 0xff, 0x4b, 2, {O_N, O_N}, {"bad"}},
  352. { 0xff, 0x4c, 2, {O_N, O_N}, {"priv_read_lockaddr0"}},
  353. { 0xff, 0x4d, 2, {O_N, O_N}, {"priv_read_lockaddr1"}},
  354. { 0xff, 0x4e, 2, {O_N, O_N}, {"bad"}},
  355. { 0xff, 0x4f, 2, {O_N, O_N}, {"bad"}},
  356. { 0xff, 0x50, 2, {O_N, O_N}, {"priv_read_userrange1"}},
  357. { 0xff, 0x51, 2, {O_N, O_N}, {"priv_read_gc_config"}},
  358. { 0xff, 0x52, 2, {O_N, O_N}, {"priv_read_brk1a"}},
  359. { 0xff, 0x53, 2, {O_N, O_N}, {"priv_read_brk2a"}},
  360. { 0xff, 0x54, 2, {O_N, O_N}, {"priv_read_brk12c"}},
  361. { 0xff, 0x55, 2, {O_N, O_N}, {"priv_read_userrange2"}},
  362. { 0xff, 0x56, 2, {O_N, O_N}, {"bad"}},
  363. { 0xff, 0x57, 2, {O_N, O_N}, {"priv_read_versionid"}},
  364. { 0xff, 0x58, 2, {O_N, O_N}, {"priv_read_hcr"}},
  365. { 0xff, 0x59, 2, {O_N, O_N}, {"priv_read_sc_bottom"}},
  366. { 0xff, 0x5a, 2, {O_N, O_N}, {"read_global0"}},
  367. { 0xff, 0x5b, 2, {O_N, O_N}, {"read_global1"}},
  368. { 0xff, 0x5c, 2, {O_N, O_N}, {"read_global2"}},
  369. { 0xff, 0x5d, 2, {O_N, O_N}, {"read_global3"}},
  370. { 0xff, 0x5e, 2, {O_N, O_N}, {"bad"}},
  371. { 0xff, 0x5f, 2, {O_N, O_N}, {"bad"}},
  372. { 0xff, 0x60, 2, {O_N, O_N}, {"write_pc"}},
  373. { 0xff, 0x61, 2, {O_N, O_N}, {"write_vars"}},
  374. { 0xff, 0x62, 2, {O_N, O_N}, {"write_frame"}},
  375. { 0xff, 0x63, 2, {O_N, O_N}, {"write_optop"}},
  376. { 0xff, 0x64, 2, {O_N, O_N}, {"priv_write_oplim"}},
  377. { 0xff, 0x65, 2, {O_N, O_N}, {"write_const_pool"}},
  378. { 0xff, 0x66, 2, {O_N, O_N}, {"priv_write_psr"}},
  379. { 0xff, 0x67, 2, {O_N, O_N}, {"priv_write_trapbase"}},
  380. { 0xff, 0x68, 2, {O_N, O_N}, {"priv_write_lockcount0"}},
  381. { 0xff, 0x69, 2, {O_N, O_N}, {"priv_write_lockcount1"}},
  382. { 0xff, 0x6a, 2, {O_N, O_N}, {"bad"}},
  383. { 0xff, 0x6b, 2, {O_N, O_N}, {"bad"}},
  384. { 0xff, 0x6c, 2, {O_N, O_N}, {"priv_write_lockaddr0"}},
  385. { 0xff, 0x6d, 2, {O_N, O_N}, {"priv_write_lockaddr1"}},
  386. { 0xff, 0x6e, 2, {O_N, O_N}, {"bad"}},
  387. { 0xff, 0x6f, 2, {O_N, O_N}, {"bad"}},
  388. { 0xff, 0x70, 2, {O_N, O_N}, {"priv_write_userrange1"}},
  389. { 0xff, 0x71, 2, {O_N, O_N}, {"priv_write_gc_config"}},
  390. { 0xff, 0x72, 2, {O_N, O_N}, {"priv_write_brk1a"}},
  391. { 0xff, 0x73, 2, {O_N, O_N}, {"priv_write_brk2a"}},
  392. { 0xff, 0x74, 2, {O_N, O_N}, {"priv_write_brk12c"}},
  393. { 0xff, 0x75, 2, {O_N, O_N}, {"priv_write_userrange2"}},
  394. { 0xff, 0x76, 2, {O_N, O_N}, {"bad"}},
  395. { 0xff, 0x77, 2, {O_N, O_N}, {"bad"}},
  396. { 0xff, 0x78, 2, {O_N, O_N}, {"bad"}},
  397. { 0xff, 0x79, 2, {O_N, O_N}, {"priv_write_sc_bottom"}},
  398. { 0xff, 0x7a, 2, {O_N, O_N}, {"write_global0"}},
  399. { 0xff, 0x7b, 2, {O_N, O_N}, {"write_global1"}},
  400. { 0xff, 0x7c, 2, {O_N, O_N}, {"write_global2"}},
  401. { 0xff, 0x7d, 2, {O_N, O_N}, {"write_global3"}},
  402. { 0xff, 0x7e, 2, {O_N, O_N}, {"bad"}},
  403. { 0xff, 0x7f, 2, {O_N, O_N}, {"bad"}},
  404. { 0xff, 0x80, 2, {O_N, O_N}, {"bad"}},
  405. { 0xff, 0x81, 2, {O_N, O_N}, {"bad"}},
  406. { 0xff, 0x82, 2, {O_N, O_N}, {"bad"}},
  407. { 0xff, 0x83, 2, {O_N, O_N}, {"bad"}},
  408. { 0xff, 0x84, 2, {O_N, O_N}, {"bad"}},
  409. { 0xff, 0x85, 2, {O_N, O_N}, {"bad"}},
  410. { 0xff, 0x86, 2, {O_N, O_N}, {"bad"}},
  411. { 0xff, 0x87, 2, {O_N, O_N}, {"bad"}},
  412. { 0xff, 0x88, 2, {O_N, O_N}, {"bad"}},
  413. { 0xff, 0x89, 2, {O_N, O_N}, {"bad"}},
  414. { 0xff, 0x8a, 2, {O_N, O_N}, {"bad"}},
  415. { 0xff, 0x8b, 2, {O_N, O_N}, {"bad"}},
  416. { 0xff, 0x8c, 2, {O_N, O_N}, {"bad"}},
  417. { 0xff, 0x8d, 2, {O_N, O_N}, {"bad"}},
  418. { 0xff, 0x8e, 2, {O_N, O_N}, {"bad"}},
  419. { 0xff, 0x8f, 2, {O_N, O_N}, {"bad"}},
  420. { 0xff, 0x90, 2, {O_N, O_N}, {"bad"}},
  421. { 0xff, 0x91, 2, {O_N, O_N}, {"bad"}},
  422. { 0xff, 0x92, 2, {O_N, O_N}, {"bad"}},
  423. { 0xff, 0x93, 2, {O_N, O_N}, {"bad"}},
  424. { 0xff, 0x94, 2, {O_N, O_N}, {"bad"}},
  425. { 0xff, 0x95, 2, {O_N, O_N}, {"bad"}},
  426. { 0xff, 0x96, 2, {O_N, O_N}, {"bad"}},
  427. { 0xff, 0x97, 2, {O_N, O_N}, {"bad"}},
  428. { 0xff, 0x98, 2, {O_N, O_N}, {"bad"}},
  429. { 0xff, 0x99, 2, {O_N, O_N}, {"bad"}},
  430. { 0xff, 0x9a, 2, {O_N, O_N}, {"bad"}},
  431. { 0xff, 0x9b, 2, {O_N, O_N}, {"bad"}},
  432. { 0xff, 0x9c, 2, {O_N, O_N}, {"bad"}},
  433. { 0xff, 0x9d, 2, {O_N, O_N}, {"bad"}},
  434. { 0xff, 0x9e, 2, {O_N, O_N}, {"bad"}},
  435. { 0xff, 0x9f, 2, {O_N, O_N}, {"bad"}},
  436. { 0xff, 0xa0, 2, {O_N, O_N}, {"bad"}},
  437. { 0xff, 0xa1, 2, {O_N, O_N}, {"bad"}},
  438. { 0xff, 0xa2, 2, {O_N, O_N}, {"bad"}},
  439. { 0xff, 0xa3, 2, {O_N, O_N}, {"bad"}},
  440. { 0xff, 0xa4, 2, {O_N, O_N}, {"bad"}},
  441. { 0xff, 0xa5, 2, {O_N, O_N}, {"bad"}},
  442. { 0xff, 0xa6, 2, {O_N, O_N}, {"bad"}},
  443. { 0xff, 0xa7, 2, {O_N, O_N}, {"bad"}},
  444. { 0xff, 0xa8, 2, {O_N, O_N}, {"bad"}},
  445. { 0xff, 0xa9, 2, {O_N, O_N}, {"bad"}},
  446. { 0xff, 0xaa, 2, {O_N, O_N}, {"bad"}},
  447. { 0xff, 0xab, 2, {O_N, O_N}, {"bad"}},
  448. { 0xff, 0xac, 2, {O_N, O_N}, {"bad"}},
  449. { 0xff, 0xad, 2, {O_N, O_N}, {"bad"}},
  450. { 0xff, 0xae, 2, {O_N, O_N}, {"bad"}}, /*LM_FIXED*/
  451. { 0xff, 0xaf, 2, {O_N, O_N}, {"bad"}}, /*LM_FIXED*/
  452. { 0xff, 0xb0, 2, {O_N, O_N}, {"bad"}}, /*LM_FIXED*/
  453. { 0xff, 0xb1, 2, {O_N, O_N}, {"bad"}}, /*LM_FIXED*/
  454. { 0xff, 0xb2, 2, {O_N, O_N}, {"bad"}},
  455. { 0xff, 0xb3, 2, {O_N, O_N}, {"bad"}},
  456. { 0xff, 0xb4, 2, {O_N, O_N}, {"bad"}},
  457. { 0xff, 0xb5, 2, {O_N, O_N}, {"bad"}},
  458. { 0xff, 0xb6, 2, {O_N, O_N}, {"bad"}},
  459. { 0xff, 0xb7, 2, {O_N, O_N}, {"bad"}},
  460. { 0xff, 0xb8, 2, {O_N, O_N}, {"bad"}},
  461. { 0xff, 0xb9, 2, {O_N, O_N}, {"bad"}},
  462. { 0xff, 0xba, 2, {O_N, O_N}, {"bad"}},
  463. { 0xff, 0xbb, 2, {O_N, O_N}, {"bad"}},
  464. { 0xff, 0xbc, 2, {O_N, O_N}, {"bad"}},
  465. { 0xff, 0xbd, 2, {O_N, O_N}, {"bad"}},
  466. { 0xff, 0xbe, 2, {O_N, O_N}, {"bad"}},
  467. { 0xff, 0xbf, 2, {O_N, O_N}, {"bad"}},
  468. { 0xff, 0xc0, 2, {O_N, O_N}, {"bad"}},
  469. { 0xff, 0xc1, 2, {O_N, O_N}, {"bad"}},
  470. { 0xff, 0xc2, 2, {O_N, O_N}, {"bad"}},
  471. { 0xff, 0xc3, 2, {O_N, O_N}, {"bad"}},
  472. { 0xff, 0xc4, 2, {O_N, O_N}, {"bad"}},
  473. { 0xff, 0xc5, 2, {O_N, O_N}, {"bad"}},
  474. { 0xff, 0xc6, 2, {O_N, O_N}, {"bad"}},
  475. { 0xff, 0xc7, 2, {O_N, O_N}, {"bad"}},
  476. { 0xff, 0xc8, 2, {O_N, O_N}, {"bad"}},
  477. { 0xff, 0xc9, 2, {O_N, O_N}, {"bad"}},
  478. { 0xff, 0xca, 2, {O_N, O_N}, {"bad"}},
  479. { 0xff, 0xcb, 2, {O_N, O_N}, {"bad"}},
  480. { 0xff, 0xcc, 2, {O_N, O_N}, {"bad"}},
  481. { 0xff, 0xcd, 2, {O_N, O_N}, {"bad"}},
  482. { 0xff, 0xce, 2, {O_N, O_N}, {"bad"}},
  483. { 0xff, 0xcf, 2, {O_N, O_N}, {"bad"}},
  484. { 0xff, 0xd0, 2, {O_N, O_N}, {"bad"}},
  485. { 0xff, 0xd1, 2, {O_N, O_N}, {"bad"}},
  486. { 0xff, 0xd2, 2, {O_N, O_N}, {"bad"}},
  487. { 0xff, 0xd3, 2, {O_N, O_N}, {"bad"}},
  488. { 0xff, 0xd4, 2, {O_N, O_N}, {"bad"}},
  489. { 0xff, 0xd5, 2, {O_N, O_N}, {"bad"}},
  490. { 0xff, 0xd6, 2, {O_N, O_N}, {"bad"}},
  491. { 0xff, 0xd7, 2, {O_N, O_N}, {"bad"}},
  492. { 0xff, 0xd8, 2, {O_N, O_N}, {"bad"}},
  493. { 0xff, 0xd9, 2, {O_N, O_N}, {"bad"}},
  494. { 0xff, 0xda, 2, {O_N, O_N}, {"bad"}},
  495. { 0xff, 0xdb, 2, {O_N, O_N}, {"bad"}},
  496. { 0xff, 0xdc, 2, {O_N, O_N}, {"bad"}},
  497. { 0xff, 0xdd, 2, {O_N, O_N}, {"bad"}},
  498. { 0xff, 0xde, 2, {O_N, O_N}, {"bad"}},
  499. { 0xff, 0xdf, 2, {O_N, O_N}, {"bad"}},
  500. { 0xff, 0xe0, 2, {O_N, O_N}, {"bad"}},
  501. { 0xff, 0xe1, 2, {O_N, O_N}, {"bad"}},
  502. { 0xff, 0xe2, 2, {O_N, O_N}, {"bad"}},
  503. { 0xff, 0xe3, 2, {O_N, O_N}, {"bad"}},
  504. { 0xff, 0xe4, 2, {O_N, O_N}, {"bad"}},
  505. { 0xff, 0xe5, 2, {O_N, O_N}, {"bad"}},
  506. { 0xff, 0xe6, 2, {O_N, O_N}, {"bad"}},
  507. { 0xff, 0xe7, 2, {O_N, O_N}, {"bad"}},
  508. { 0xff, 0xe8, 2, {O_N, O_N}, {"bad"}},
  509. { 0xff, 0xe9, 2, {O_N, O_N}, {"bad"}},
  510. { 0xff, 0xea, 2, {O_N, O_N}, {"bad"}},
  511. { 0xff, 0xeb, 2, {O_N, O_N}, {"bad"}},
  512. { 0xff, 0xec, 2, {O_N, O_N}, {"bad"}},
  513. { 0xff, 0xed, 2, {O_N, O_N}, {"bad"}},
  514. { 0xff, 0xee, 2, {O_N, O_N}, {"bad"}},
  515. { 0xff, 0xef, 2, {O_N, O_N}, {"bad"}},
  516. { 0xff, 0xf0, 2, {O_N, O_N}, {"bad"}},
  517. { 0xff, 0xf1, 2, {O_N, O_N}, {"bad"}},
  518. { 0xff, 0xf2, 2, {O_N, O_N}, {"bad"}},
  519. { 0xff, 0xf3, 2, {O_N, O_N}, {"bad"}},
  520. { 0xff, 0xf4, 2, {O_N, O_N}, {"bad"}},
  521. { 0xff, 0xf5, 2, {O_N, O_N}, {"bad"}},
  522. { 0xff, 0xf6, 2, {O_N, O_N}, {"bad"}},
  523. { 0xff, 0xf7, 2, {O_N, O_N}, {"bad"}},
  524. { 0xff, 0xf8, 2, {O_N, O_N}, {"bad"}},
  525. { 0xff, 0xf9, 2, {O_N, O_N}, {"bad"}},
  526. { 0xff, 0xfa, 2, {O_N, O_N}, {"bad"}},
  527. { 0xff, 0xfb, 2, {O_N, O_N}, {"bad"}},
  528. { 0xff, 0xfc, 2, {O_N, O_N}, {"bad"}},
  529. { 0xff, 0xfd, 2, {O_N, O_N}, {"bad"}},
  530. { 0xff, 0xfe, 2, {O_N, O_N}, {"bad"}},
  531. { 0xff, 0xff, 2, {O_N, O_N}, {"bad"}},
  532. };