| 1 | /* Xtensa configuration-specific ISA information. |
| 2 | |
| 3 | Copyright (c) 2003-2010 Tensilica Inc. |
| 4 | |
| 5 | Permission is hereby granted, free of charge, to any person obtaining |
| 6 | a copy of this software and associated documentation files (the |
| 7 | "Software"), to deal in the Software without restriction, including |
| 8 | without limitation the rights to use, copy, modify, merge, publish, |
| 9 | distribute, sublicense, and/or sell copies of the Software, and to |
| 10 | permit persons to whom the Software is furnished to do so, subject to |
| 11 | the following conditions: |
| 12 | |
| 13 | The above copyright notice and this permission notice shall be included |
| 14 | in all copies or substantial portions of the Software. |
| 15 | |
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ |
| 23 | |
| 24 | #include "xtensa-isa.h" |
| 25 | #include "xtensa-isa-internal.h" |
| 26 | |
| 27 | |
| 28 | /* Sysregs. */ |
| 29 | |
| 30 | static xtensa_sysreg_internal sysregs[] = { |
| 31 | { "MMID", 89, 0 }, |
| 32 | { "DDR", 104, 0 }, |
| 33 | { "176", 176, 0 }, |
| 34 | { "208", 208, 0 }, |
| 35 | { "INTERRUPT", 226, 0 }, |
| 36 | { "INTCLEAR", 227, 0 }, |
| 37 | { "CCOUNT", 234, 0 }, |
| 38 | { "PRID", 235, 0 }, |
| 39 | { "ICOUNT", 236, 0 }, |
| 40 | { "CCOMPARE0", 240, 0 }, |
| 41 | { "VECBASE", 231, 0 }, |
| 42 | { "EPC1", 177, 0 }, |
| 43 | { "EPC2", 178, 0 }, |
| 44 | { "EPC3", 179, 0 }, |
| 45 | { "EXCSAVE1", 209, 0 }, |
| 46 | { "EXCSAVE2", 210, 0 }, |
| 47 | { "EXCSAVE3", 211, 0 }, |
| 48 | { "EPS2", 194, 0 }, |
| 49 | { "EPS3", 195, 0 }, |
| 50 | { "EXCCAUSE", 232, 0 }, |
| 51 | { "DEPC", 192, 0 }, |
| 52 | { "EXCVADDR", 238, 0 }, |
| 53 | { "SAR", 3, 0 }, |
| 54 | { "LITBASE", 5, 0 }, |
| 55 | { "PS", 230, 0 }, |
| 56 | { "INTENABLE", 228, 0 }, |
| 57 | { "DBREAKA0", 144, 0 }, |
| 58 | { "DBREAKC0", 160, 0 }, |
| 59 | { "IBREAKA0", 128, 0 }, |
| 60 | { "IBREAKENABLE", 96, 0 }, |
| 61 | { "ICOUNTLEVEL", 237, 0 }, |
| 62 | { "DEBUGCAUSE", 233, 0 } |
| 63 | }; |
| 64 | |
| 65 | #define NUM_SYSREGS 32 |
| 66 | #define MAX_SPECIAL_REG 240 |
| 67 | #define MAX_USER_REG 0 |
| 68 | |
| 69 | |
| 70 | /* Processor states. */ |
| 71 | |
| 72 | static xtensa_state_internal states[] = { |
| 73 | { "PC", 32, 0 }, |
| 74 | { "ICOUNT", 32, 0 }, |
| 75 | { "DDR", 32, 0 }, |
| 76 | { "INTERRUPT", 15, 0 }, |
| 77 | { "CCOUNT", 32, 0 }, |
| 78 | { "XTSYNC", 1, 0 }, |
| 79 | { "VECBASE", 25, 0 }, |
| 80 | { "EPC1", 32, 0 }, |
| 81 | { "EPC2", 32, 0 }, |
| 82 | { "EPC3", 32, 0 }, |
| 83 | { "EXCSAVE1", 32, 0 }, |
| 84 | { "EXCSAVE2", 32, 0 }, |
| 85 | { "EXCSAVE3", 32, 0 }, |
| 86 | { "EPS2", 6, 0 }, |
| 87 | { "EPS3", 6, 0 }, |
| 88 | { "EXCCAUSE", 6, 0 }, |
| 89 | { "PSINTLEVEL", 4, 0 }, |
| 90 | { "PSUM", 1, 0 }, |
| 91 | { "PSEXCM", 1, 0 }, |
| 92 | { "DEPC", 32, 0 }, |
| 93 | { "EXCVADDR", 32, 0 }, |
| 94 | { "SAR", 6, 0 }, |
| 95 | { "LITBADDR", 20, 0 }, |
| 96 | { "LITBEN", 1, 0 }, |
| 97 | { "InOCDMode", 1, 0 }, |
| 98 | { "INTENABLE", 15, 0 }, |
| 99 | { "DBREAKA0", 32, 0 }, |
| 100 | { "DBREAKC0", 8, 0 }, |
| 101 | { "IBREAKA0", 32, 0 }, |
| 102 | { "IBREAKENABLE", 1, 0 }, |
| 103 | { "ICOUNTLEVEL", 4, 0 }, |
| 104 | { "DEBUGCAUSE", 6, 0 }, |
| 105 | { "DBNUM", 4, 0 }, |
| 106 | { "CCOMPARE0", 32, 0 } |
| 107 | }; |
| 108 | |
| 109 | #define NUM_STATES 34 |
| 110 | |
| 111 | enum xtensa_state_id { |
| 112 | STATE_PC, |
| 113 | STATE_ICOUNT, |
| 114 | STATE_DDR, |
| 115 | STATE_INTERRUPT, |
| 116 | STATE_CCOUNT, |
| 117 | STATE_XTSYNC, |
| 118 | STATE_VECBASE, |
| 119 | STATE_EPC1, |
| 120 | STATE_EPC2, |
| 121 | STATE_EPC3, |
| 122 | STATE_EXCSAVE1, |
| 123 | STATE_EXCSAVE2, |
| 124 | STATE_EXCSAVE3, |
| 125 | STATE_EPS2, |
| 126 | STATE_EPS3, |
| 127 | STATE_EXCCAUSE, |
| 128 | STATE_PSINTLEVEL, |
| 129 | STATE_PSUM, |
| 130 | STATE_PSEXCM, |
| 131 | STATE_DEPC, |
| 132 | STATE_EXCVADDR, |
| 133 | STATE_SAR, |
| 134 | STATE_LITBADDR, |
| 135 | STATE_LITBEN, |
| 136 | STATE_InOCDMode, |
| 137 | STATE_INTENABLE, |
| 138 | STATE_DBREAKA0, |
| 139 | STATE_DBREAKC0, |
| 140 | STATE_IBREAKA0, |
| 141 | STATE_IBREAKENABLE, |
| 142 | STATE_ICOUNTLEVEL, |
| 143 | STATE_DEBUGCAUSE, |
| 144 | STATE_DBNUM, |
| 145 | STATE_CCOMPARE0 |
| 146 | }; |
| 147 | |
| 148 | |
| 149 | /* Field definitions. */ |
| 150 | |
| 151 | static unsigned |
| 152 | Field_t_Slot_inst_get (const xtensa_insnbuf insn) |
| 153 | { |
| 154 | unsigned tie_t = 0; |
| 155 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 156 | return tie_t; |
| 157 | } |
| 158 | |
| 159 | static void |
| 160 | Field_t_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 161 | { |
| 162 | uint32 tie_t; |
| 163 | tie_t = (val << 28) >> 28; |
| 164 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 165 | } |
| 166 | |
| 167 | static unsigned |
| 168 | Field_s_Slot_inst_get (const xtensa_insnbuf insn) |
| 169 | { |
| 170 | unsigned tie_t = 0; |
| 171 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 172 | return tie_t; |
| 173 | } |
| 174 | |
| 175 | static void |
| 176 | Field_s_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 177 | { |
| 178 | uint32 tie_t; |
| 179 | tie_t = (val << 28) >> 28; |
| 180 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 181 | } |
| 182 | |
| 183 | static unsigned |
| 184 | Field_r_Slot_inst_get (const xtensa_insnbuf insn) |
| 185 | { |
| 186 | unsigned tie_t = 0; |
| 187 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 188 | return tie_t; |
| 189 | } |
| 190 | |
| 191 | static void |
| 192 | Field_r_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 193 | { |
| 194 | uint32 tie_t; |
| 195 | tie_t = (val << 28) >> 28; |
| 196 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 197 | } |
| 198 | |
| 199 | static unsigned |
| 200 | Field_op2_Slot_inst_get (const xtensa_insnbuf insn) |
| 201 | { |
| 202 | unsigned tie_t = 0; |
| 203 | tie_t = (tie_t << 4) | ((insn[0] << 8) >> 28); |
| 204 | return tie_t; |
| 205 | } |
| 206 | |
| 207 | static void |
| 208 | Field_op2_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 209 | { |
| 210 | uint32 tie_t; |
| 211 | tie_t = (val << 28) >> 28; |
| 212 | insn[0] = (insn[0] & ~0xf00000) | (tie_t << 20); |
| 213 | } |
| 214 | |
| 215 | static unsigned |
| 216 | Field_op1_Slot_inst_get (const xtensa_insnbuf insn) |
| 217 | { |
| 218 | unsigned tie_t = 0; |
| 219 | tie_t = (tie_t << 4) | ((insn[0] << 12) >> 28); |
| 220 | return tie_t; |
| 221 | } |
| 222 | |
| 223 | static void |
| 224 | Field_op1_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 225 | { |
| 226 | uint32 tie_t; |
| 227 | tie_t = (val << 28) >> 28; |
| 228 | insn[0] = (insn[0] & ~0xf0000) | (tie_t << 16); |
| 229 | } |
| 230 | |
| 231 | static unsigned |
| 232 | Field_op0_Slot_inst_get (const xtensa_insnbuf insn) |
| 233 | { |
| 234 | unsigned tie_t = 0; |
| 235 | tie_t = (tie_t << 4) | ((insn[0] << 28) >> 28); |
| 236 | return tie_t; |
| 237 | } |
| 238 | |
| 239 | static void |
| 240 | Field_op0_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 241 | { |
| 242 | uint32 tie_t; |
| 243 | tie_t = (val << 28) >> 28; |
| 244 | insn[0] = (insn[0] & ~0xf) | (tie_t << 0); |
| 245 | } |
| 246 | |
| 247 | static unsigned |
| 248 | Field_m_Slot_inst_get (const xtensa_insnbuf insn) |
| 249 | { |
| 250 | unsigned tie_t = 0; |
| 251 | tie_t = (tie_t << 2) | ((insn[0] << 24) >> 30); |
| 252 | return tie_t; |
| 253 | } |
| 254 | |
| 255 | static void |
| 256 | Field_m_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 257 | { |
| 258 | uint32 tie_t; |
| 259 | tie_t = (val << 30) >> 30; |
| 260 | insn[0] = (insn[0] & ~0xc0) | (tie_t << 6); |
| 261 | } |
| 262 | |
| 263 | static unsigned |
| 264 | Field_n_Slot_inst_get (const xtensa_insnbuf insn) |
| 265 | { |
| 266 | unsigned tie_t = 0; |
| 267 | tie_t = (tie_t << 2) | ((insn[0] << 26) >> 30); |
| 268 | return tie_t; |
| 269 | } |
| 270 | |
| 271 | static void |
| 272 | Field_n_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 273 | { |
| 274 | uint32 tie_t; |
| 275 | tie_t = (val << 30) >> 30; |
| 276 | insn[0] = (insn[0] & ~0x30) | (tie_t << 4); |
| 277 | } |
| 278 | |
| 279 | static unsigned |
| 280 | Field_thi3_Slot_inst_get (const xtensa_insnbuf insn) |
| 281 | { |
| 282 | unsigned tie_t = 0; |
| 283 | tie_t = (tie_t << 3) | ((insn[0] << 24) >> 29); |
| 284 | return tie_t; |
| 285 | } |
| 286 | |
| 287 | static void |
| 288 | Field_thi3_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 289 | { |
| 290 | uint32 tie_t; |
| 291 | tie_t = (val << 29) >> 29; |
| 292 | insn[0] = (insn[0] & ~0xe0) | (tie_t << 5); |
| 293 | } |
| 294 | |
| 295 | static unsigned |
| 296 | Field_sr_Slot_inst_get (const xtensa_insnbuf insn) |
| 297 | { |
| 298 | unsigned tie_t = 0; |
| 299 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 300 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 301 | return tie_t; |
| 302 | } |
| 303 | |
| 304 | static void |
| 305 | Field_sr_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 306 | { |
| 307 | uint32 tie_t; |
| 308 | tie_t = (val << 28) >> 28; |
| 309 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 310 | tie_t = (val << 24) >> 28; |
| 311 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 312 | } |
| 313 | |
| 314 | static unsigned |
| 315 | Field_op0_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 316 | { |
| 317 | unsigned tie_t = 0; |
| 318 | tie_t = (tie_t << 4) | ((insn[0] << 28) >> 28); |
| 319 | return tie_t; |
| 320 | } |
| 321 | |
| 322 | static void |
| 323 | Field_op0_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 324 | { |
| 325 | uint32 tie_t; |
| 326 | tie_t = (val << 28) >> 28; |
| 327 | insn[0] = (insn[0] & ~0xf) | (tie_t << 0); |
| 328 | } |
| 329 | |
| 330 | static unsigned |
| 331 | Field_z_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 332 | { |
| 333 | unsigned tie_t = 0; |
| 334 | tie_t = (tie_t << 1) | ((insn[0] << 25) >> 31); |
| 335 | return tie_t; |
| 336 | } |
| 337 | |
| 338 | static void |
| 339 | Field_z_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 340 | { |
| 341 | uint32 tie_t; |
| 342 | tie_t = (val << 31) >> 31; |
| 343 | insn[0] = (insn[0] & ~0x40) | (tie_t << 6); |
| 344 | } |
| 345 | |
| 346 | static unsigned |
| 347 | Field_i_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 348 | { |
| 349 | unsigned tie_t = 0; |
| 350 | tie_t = (tie_t << 1) | ((insn[0] << 24) >> 31); |
| 351 | return tie_t; |
| 352 | } |
| 353 | |
| 354 | static void |
| 355 | Field_i_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 356 | { |
| 357 | uint32 tie_t; |
| 358 | tie_t = (val << 31) >> 31; |
| 359 | insn[0] = (insn[0] & ~0x80) | (tie_t << 7); |
| 360 | } |
| 361 | |
| 362 | static unsigned |
| 363 | Field_op0_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 364 | { |
| 365 | unsigned tie_t = 0; |
| 366 | tie_t = (tie_t << 4) | ((insn[0] << 28) >> 28); |
| 367 | return tie_t; |
| 368 | } |
| 369 | |
| 370 | static void |
| 371 | Field_op0_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 372 | { |
| 373 | uint32 tie_t; |
| 374 | tie_t = (val << 28) >> 28; |
| 375 | insn[0] = (insn[0] & ~0xf) | (tie_t << 0); |
| 376 | } |
| 377 | |
| 378 | static unsigned |
| 379 | Field_t_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 380 | { |
| 381 | unsigned tie_t = 0; |
| 382 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 383 | return tie_t; |
| 384 | } |
| 385 | |
| 386 | static void |
| 387 | Field_t_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 388 | { |
| 389 | uint32 tie_t; |
| 390 | tie_t = (val << 28) >> 28; |
| 391 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 392 | } |
| 393 | |
| 394 | static unsigned |
| 395 | Field_r_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 396 | { |
| 397 | unsigned tie_t = 0; |
| 398 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 399 | return tie_t; |
| 400 | } |
| 401 | |
| 402 | static void |
| 403 | Field_r_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 404 | { |
| 405 | uint32 tie_t; |
| 406 | tie_t = (val << 28) >> 28; |
| 407 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 408 | } |
| 409 | |
| 410 | static unsigned |
| 411 | Field_s_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 412 | { |
| 413 | unsigned tie_t = 0; |
| 414 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 415 | return tie_t; |
| 416 | } |
| 417 | |
| 418 | static void |
| 419 | Field_s_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 420 | { |
| 421 | uint32 tie_t; |
| 422 | tie_t = (val << 28) >> 28; |
| 423 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 424 | } |
| 425 | |
| 426 | static unsigned |
| 427 | Field_t_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 428 | { |
| 429 | unsigned tie_t = 0; |
| 430 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 431 | return tie_t; |
| 432 | } |
| 433 | |
| 434 | static void |
| 435 | Field_t_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 436 | { |
| 437 | uint32 tie_t; |
| 438 | tie_t = (val << 28) >> 28; |
| 439 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 440 | } |
| 441 | |
| 442 | static unsigned |
| 443 | Field_bbi4_Slot_inst_get (const xtensa_insnbuf insn) |
| 444 | { |
| 445 | unsigned tie_t = 0; |
| 446 | tie_t = (tie_t << 1) | ((insn[0] << 19) >> 31); |
| 447 | return tie_t; |
| 448 | } |
| 449 | |
| 450 | static void |
| 451 | Field_bbi4_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 452 | { |
| 453 | uint32 tie_t; |
| 454 | tie_t = (val << 31) >> 31; |
| 455 | insn[0] = (insn[0] & ~0x1000) | (tie_t << 12); |
| 456 | } |
| 457 | |
| 458 | static unsigned |
| 459 | Field_bbi_Slot_inst_get (const xtensa_insnbuf insn) |
| 460 | { |
| 461 | unsigned tie_t = 0; |
| 462 | tie_t = (tie_t << 1) | ((insn[0] << 19) >> 31); |
| 463 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 464 | return tie_t; |
| 465 | } |
| 466 | |
| 467 | static void |
| 468 | Field_bbi_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 469 | { |
| 470 | uint32 tie_t; |
| 471 | tie_t = (val << 28) >> 28; |
| 472 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 473 | tie_t = (val << 27) >> 31; |
| 474 | insn[0] = (insn[0] & ~0x1000) | (tie_t << 12); |
| 475 | } |
| 476 | |
| 477 | static unsigned |
| 478 | Field_imm12_Slot_inst_get (const xtensa_insnbuf insn) |
| 479 | { |
| 480 | unsigned tie_t = 0; |
| 481 | tie_t = (tie_t << 12) | ((insn[0] << 8) >> 20); |
| 482 | return tie_t; |
| 483 | } |
| 484 | |
| 485 | static void |
| 486 | Field_imm12_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 487 | { |
| 488 | uint32 tie_t; |
| 489 | tie_t = (val << 20) >> 20; |
| 490 | insn[0] = (insn[0] & ~0xfff000) | (tie_t << 12); |
| 491 | } |
| 492 | |
| 493 | static unsigned |
| 494 | Field_imm8_Slot_inst_get (const xtensa_insnbuf insn) |
| 495 | { |
| 496 | unsigned tie_t = 0; |
| 497 | tie_t = (tie_t << 8) | ((insn[0] << 8) >> 24); |
| 498 | return tie_t; |
| 499 | } |
| 500 | |
| 501 | static void |
| 502 | Field_imm8_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 503 | { |
| 504 | uint32 tie_t; |
| 505 | tie_t = (val << 24) >> 24; |
| 506 | insn[0] = (insn[0] & ~0xff0000) | (tie_t << 16); |
| 507 | } |
| 508 | |
| 509 | static unsigned |
| 510 | Field_s_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 511 | { |
| 512 | unsigned tie_t = 0; |
| 513 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 514 | return tie_t; |
| 515 | } |
| 516 | |
| 517 | static void |
| 518 | Field_s_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 519 | { |
| 520 | uint32 tie_t; |
| 521 | tie_t = (val << 28) >> 28; |
| 522 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 523 | } |
| 524 | |
| 525 | static unsigned |
| 526 | Field_imm12b_Slot_inst_get (const xtensa_insnbuf insn) |
| 527 | { |
| 528 | unsigned tie_t = 0; |
| 529 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 530 | tie_t = (tie_t << 8) | ((insn[0] << 8) >> 24); |
| 531 | return tie_t; |
| 532 | } |
| 533 | |
| 534 | static void |
| 535 | Field_imm12b_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 536 | { |
| 537 | uint32 tie_t; |
| 538 | tie_t = (val << 24) >> 24; |
| 539 | insn[0] = (insn[0] & ~0xff0000) | (tie_t << 16); |
| 540 | tie_t = (val << 20) >> 28; |
| 541 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 542 | } |
| 543 | |
| 544 | static unsigned |
| 545 | Field_imm16_Slot_inst_get (const xtensa_insnbuf insn) |
| 546 | { |
| 547 | unsigned tie_t = 0; |
| 548 | tie_t = (tie_t << 16) | ((insn[0] << 8) >> 16); |
| 549 | return tie_t; |
| 550 | } |
| 551 | |
| 552 | static void |
| 553 | Field_imm16_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 554 | { |
| 555 | uint32 tie_t; |
| 556 | tie_t = (val << 16) >> 16; |
| 557 | insn[0] = (insn[0] & ~0xffff00) | (tie_t << 8); |
| 558 | } |
| 559 | |
| 560 | static unsigned |
| 561 | Field_offset_Slot_inst_get (const xtensa_insnbuf insn) |
| 562 | { |
| 563 | unsigned tie_t = 0; |
| 564 | tie_t = (tie_t << 18) | ((insn[0] << 8) >> 14); |
| 565 | return tie_t; |
| 566 | } |
| 567 | |
| 568 | static void |
| 569 | Field_offset_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 570 | { |
| 571 | uint32 tie_t; |
| 572 | tie_t = (val << 14) >> 14; |
| 573 | insn[0] = (insn[0] & ~0xffffc0) | (tie_t << 6); |
| 574 | } |
| 575 | |
| 576 | static unsigned |
| 577 | Field_r_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 578 | { |
| 579 | unsigned tie_t = 0; |
| 580 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 581 | return tie_t; |
| 582 | } |
| 583 | |
| 584 | static void |
| 585 | Field_r_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 586 | { |
| 587 | uint32 tie_t; |
| 588 | tie_t = (val << 28) >> 28; |
| 589 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 590 | } |
| 591 | |
| 592 | static unsigned |
| 593 | Field_sa4_Slot_inst_get (const xtensa_insnbuf insn) |
| 594 | { |
| 595 | unsigned tie_t = 0; |
| 596 | tie_t = (tie_t << 1) | ((insn[0] << 11) >> 31); |
| 597 | return tie_t; |
| 598 | } |
| 599 | |
| 600 | static void |
| 601 | Field_sa4_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 602 | { |
| 603 | uint32 tie_t; |
| 604 | tie_t = (val << 31) >> 31; |
| 605 | insn[0] = (insn[0] & ~0x100000) | (tie_t << 20); |
| 606 | } |
| 607 | |
| 608 | static unsigned |
| 609 | Field_sae4_Slot_inst_get (const xtensa_insnbuf insn) |
| 610 | { |
| 611 | unsigned tie_t = 0; |
| 612 | tie_t = (tie_t << 1) | ((insn[0] << 15) >> 31); |
| 613 | return tie_t; |
| 614 | } |
| 615 | |
| 616 | static void |
| 617 | Field_sae4_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 618 | { |
| 619 | uint32 tie_t; |
| 620 | tie_t = (val << 31) >> 31; |
| 621 | insn[0] = (insn[0] & ~0x10000) | (tie_t << 16); |
| 622 | } |
| 623 | |
| 624 | static unsigned |
| 625 | Field_sae_Slot_inst_get (const xtensa_insnbuf insn) |
| 626 | { |
| 627 | unsigned tie_t = 0; |
| 628 | tie_t = (tie_t << 1) | ((insn[0] << 15) >> 31); |
| 629 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 630 | return tie_t; |
| 631 | } |
| 632 | |
| 633 | static void |
| 634 | Field_sae_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 635 | { |
| 636 | uint32 tie_t; |
| 637 | tie_t = (val << 28) >> 28; |
| 638 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 639 | tie_t = (val << 27) >> 31; |
| 640 | insn[0] = (insn[0] & ~0x10000) | (tie_t << 16); |
| 641 | } |
| 642 | |
| 643 | static unsigned |
| 644 | Field_sal_Slot_inst_get (const xtensa_insnbuf insn) |
| 645 | { |
| 646 | unsigned tie_t = 0; |
| 647 | tie_t = (tie_t << 1) | ((insn[0] << 11) >> 31); |
| 648 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 649 | return tie_t; |
| 650 | } |
| 651 | |
| 652 | static void |
| 653 | Field_sal_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 654 | { |
| 655 | uint32 tie_t; |
| 656 | tie_t = (val << 28) >> 28; |
| 657 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 658 | tie_t = (val << 27) >> 31; |
| 659 | insn[0] = (insn[0] & ~0x100000) | (tie_t << 20); |
| 660 | } |
| 661 | |
| 662 | static unsigned |
| 663 | Field_sargt_Slot_inst_get (const xtensa_insnbuf insn) |
| 664 | { |
| 665 | unsigned tie_t = 0; |
| 666 | tie_t = (tie_t << 1) | ((insn[0] << 11) >> 31); |
| 667 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 668 | return tie_t; |
| 669 | } |
| 670 | |
| 671 | static void |
| 672 | Field_sargt_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 673 | { |
| 674 | uint32 tie_t; |
| 675 | tie_t = (val << 28) >> 28; |
| 676 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 677 | tie_t = (val << 27) >> 31; |
| 678 | insn[0] = (insn[0] & ~0x100000) | (tie_t << 20); |
| 679 | } |
| 680 | |
| 681 | static unsigned |
| 682 | Field_sas4_Slot_inst_get (const xtensa_insnbuf insn) |
| 683 | { |
| 684 | unsigned tie_t = 0; |
| 685 | tie_t = (tie_t << 1) | ((insn[0] << 27) >> 31); |
| 686 | return tie_t; |
| 687 | } |
| 688 | |
| 689 | static void |
| 690 | Field_sas4_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 691 | { |
| 692 | uint32 tie_t; |
| 693 | tie_t = (val << 31) >> 31; |
| 694 | insn[0] = (insn[0] & ~0x10) | (tie_t << 4); |
| 695 | } |
| 696 | |
| 697 | static unsigned |
| 698 | Field_sas_Slot_inst_get (const xtensa_insnbuf insn) |
| 699 | { |
| 700 | unsigned tie_t = 0; |
| 701 | tie_t = (tie_t << 1) | ((insn[0] << 27) >> 31); |
| 702 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 703 | return tie_t; |
| 704 | } |
| 705 | |
| 706 | static void |
| 707 | Field_sas_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 708 | { |
| 709 | uint32 tie_t; |
| 710 | tie_t = (val << 28) >> 28; |
| 711 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 712 | tie_t = (val << 27) >> 31; |
| 713 | insn[0] = (insn[0] & ~0x10) | (tie_t << 4); |
| 714 | } |
| 715 | |
| 716 | static unsigned |
| 717 | Field_sr_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 718 | { |
| 719 | unsigned tie_t = 0; |
| 720 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 721 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 722 | return tie_t; |
| 723 | } |
| 724 | |
| 725 | static void |
| 726 | Field_sr_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 727 | { |
| 728 | uint32 tie_t; |
| 729 | tie_t = (val << 28) >> 28; |
| 730 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 731 | tie_t = (val << 24) >> 28; |
| 732 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 733 | } |
| 734 | |
| 735 | static unsigned |
| 736 | Field_sr_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 737 | { |
| 738 | unsigned tie_t = 0; |
| 739 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 740 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 741 | return tie_t; |
| 742 | } |
| 743 | |
| 744 | static void |
| 745 | Field_sr_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 746 | { |
| 747 | uint32 tie_t; |
| 748 | tie_t = (val << 28) >> 28; |
| 749 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 750 | tie_t = (val << 24) >> 28; |
| 751 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 752 | } |
| 753 | |
| 754 | static unsigned |
| 755 | Field_st_Slot_inst_get (const xtensa_insnbuf insn) |
| 756 | { |
| 757 | unsigned tie_t = 0; |
| 758 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 759 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 760 | return tie_t; |
| 761 | } |
| 762 | |
| 763 | static void |
| 764 | Field_st_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 765 | { |
| 766 | uint32 tie_t; |
| 767 | tie_t = (val << 28) >> 28; |
| 768 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 769 | tie_t = (val << 24) >> 28; |
| 770 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 771 | } |
| 772 | |
| 773 | static unsigned |
| 774 | Field_st_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 775 | { |
| 776 | unsigned tie_t = 0; |
| 777 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 778 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 779 | return tie_t; |
| 780 | } |
| 781 | |
| 782 | static void |
| 783 | Field_st_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 784 | { |
| 785 | uint32 tie_t; |
| 786 | tie_t = (val << 28) >> 28; |
| 787 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 788 | tie_t = (val << 24) >> 28; |
| 789 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 790 | } |
| 791 | |
| 792 | static unsigned |
| 793 | Field_st_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 794 | { |
| 795 | unsigned tie_t = 0; |
| 796 | tie_t = (tie_t << 4) | ((insn[0] << 20) >> 28); |
| 797 | tie_t = (tie_t << 4) | ((insn[0] << 24) >> 28); |
| 798 | return tie_t; |
| 799 | } |
| 800 | |
| 801 | static void |
| 802 | Field_st_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 803 | { |
| 804 | uint32 tie_t; |
| 805 | tie_t = (val << 28) >> 28; |
| 806 | insn[0] = (insn[0] & ~0xf0) | (tie_t << 4); |
| 807 | tie_t = (val << 24) >> 28; |
| 808 | insn[0] = (insn[0] & ~0xf00) | (tie_t << 8); |
| 809 | } |
| 810 | |
| 811 | static unsigned |
| 812 | Field_imm4_Slot_inst_get (const xtensa_insnbuf insn) |
| 813 | { |
| 814 | unsigned tie_t = 0; |
| 815 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 816 | return tie_t; |
| 817 | } |
| 818 | |
| 819 | static void |
| 820 | Field_imm4_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 821 | { |
| 822 | uint32 tie_t; |
| 823 | tie_t = (val << 28) >> 28; |
| 824 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 825 | } |
| 826 | |
| 827 | static unsigned |
| 828 | Field_imm4_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 829 | { |
| 830 | unsigned tie_t = 0; |
| 831 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 832 | return tie_t; |
| 833 | } |
| 834 | |
| 835 | static void |
| 836 | Field_imm4_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 837 | { |
| 838 | uint32 tie_t; |
| 839 | tie_t = (val << 28) >> 28; |
| 840 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 841 | } |
| 842 | |
| 843 | static unsigned |
| 844 | Field_imm4_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 845 | { |
| 846 | unsigned tie_t = 0; |
| 847 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 848 | return tie_t; |
| 849 | } |
| 850 | |
| 851 | static void |
| 852 | Field_imm4_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 853 | { |
| 854 | uint32 tie_t; |
| 855 | tie_t = (val << 28) >> 28; |
| 856 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 857 | } |
| 858 | |
| 859 | static unsigned |
| 860 | Field_i_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 861 | { |
| 862 | unsigned tie_t = 0; |
| 863 | tie_t = (tie_t << 1) | ((insn[0] << 24) >> 31); |
| 864 | return tie_t; |
| 865 | } |
| 866 | |
| 867 | static void |
| 868 | Field_i_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 869 | { |
| 870 | uint32 tie_t; |
| 871 | tie_t = (val << 31) >> 31; |
| 872 | insn[0] = (insn[0] & ~0x80) | (tie_t << 7); |
| 873 | } |
| 874 | |
| 875 | static unsigned |
| 876 | Field_imm6lo_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 877 | { |
| 878 | unsigned tie_t = 0; |
| 879 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 880 | return tie_t; |
| 881 | } |
| 882 | |
| 883 | static void |
| 884 | Field_imm6lo_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 885 | { |
| 886 | uint32 tie_t; |
| 887 | tie_t = (val << 28) >> 28; |
| 888 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 889 | } |
| 890 | |
| 891 | static unsigned |
| 892 | Field_imm6lo_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 893 | { |
| 894 | unsigned tie_t = 0; |
| 895 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 896 | return tie_t; |
| 897 | } |
| 898 | |
| 899 | static void |
| 900 | Field_imm6lo_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 901 | { |
| 902 | uint32 tie_t; |
| 903 | tie_t = (val << 28) >> 28; |
| 904 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 905 | } |
| 906 | |
| 907 | static unsigned |
| 908 | Field_imm6hi_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 909 | { |
| 910 | unsigned tie_t = 0; |
| 911 | tie_t = (tie_t << 2) | ((insn[0] << 26) >> 30); |
| 912 | return tie_t; |
| 913 | } |
| 914 | |
| 915 | static void |
| 916 | Field_imm6hi_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 917 | { |
| 918 | uint32 tie_t; |
| 919 | tie_t = (val << 30) >> 30; |
| 920 | insn[0] = (insn[0] & ~0x30) | (tie_t << 4); |
| 921 | } |
| 922 | |
| 923 | static unsigned |
| 924 | Field_imm6hi_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 925 | { |
| 926 | unsigned tie_t = 0; |
| 927 | tie_t = (tie_t << 2) | ((insn[0] << 26) >> 30); |
| 928 | return tie_t; |
| 929 | } |
| 930 | |
| 931 | static void |
| 932 | Field_imm6hi_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 933 | { |
| 934 | uint32 tie_t; |
| 935 | tie_t = (val << 30) >> 30; |
| 936 | insn[0] = (insn[0] & ~0x30) | (tie_t << 4); |
| 937 | } |
| 938 | |
| 939 | static unsigned |
| 940 | Field_imm7lo_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 941 | { |
| 942 | unsigned tie_t = 0; |
| 943 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 944 | return tie_t; |
| 945 | } |
| 946 | |
| 947 | static void |
| 948 | Field_imm7lo_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 949 | { |
| 950 | uint32 tie_t; |
| 951 | tie_t = (val << 28) >> 28; |
| 952 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 953 | } |
| 954 | |
| 955 | static unsigned |
| 956 | Field_imm7lo_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 957 | { |
| 958 | unsigned tie_t = 0; |
| 959 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 960 | return tie_t; |
| 961 | } |
| 962 | |
| 963 | static void |
| 964 | Field_imm7lo_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 965 | { |
| 966 | uint32 tie_t; |
| 967 | tie_t = (val << 28) >> 28; |
| 968 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 969 | } |
| 970 | |
| 971 | static unsigned |
| 972 | Field_imm7hi_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 973 | { |
| 974 | unsigned tie_t = 0; |
| 975 | tie_t = (tie_t << 3) | ((insn[0] << 25) >> 29); |
| 976 | return tie_t; |
| 977 | } |
| 978 | |
| 979 | static void |
| 980 | Field_imm7hi_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 981 | { |
| 982 | uint32 tie_t; |
| 983 | tie_t = (val << 29) >> 29; |
| 984 | insn[0] = (insn[0] & ~0x70) | (tie_t << 4); |
| 985 | } |
| 986 | |
| 987 | static unsigned |
| 988 | Field_imm7hi_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 989 | { |
| 990 | unsigned tie_t = 0; |
| 991 | tie_t = (tie_t << 3) | ((insn[0] << 25) >> 29); |
| 992 | return tie_t; |
| 993 | } |
| 994 | |
| 995 | static void |
| 996 | Field_imm7hi_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 997 | { |
| 998 | uint32 tie_t; |
| 999 | tie_t = (val << 29) >> 29; |
| 1000 | insn[0] = (insn[0] & ~0x70) | (tie_t << 4); |
| 1001 | } |
| 1002 | |
| 1003 | static unsigned |
| 1004 | Field_z_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 1005 | { |
| 1006 | unsigned tie_t = 0; |
| 1007 | tie_t = (tie_t << 1) | ((insn[0] << 25) >> 31); |
| 1008 | return tie_t; |
| 1009 | } |
| 1010 | |
| 1011 | static void |
| 1012 | Field_z_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 1013 | { |
| 1014 | uint32 tie_t; |
| 1015 | tie_t = (val << 31) >> 31; |
| 1016 | insn[0] = (insn[0] & ~0x40) | (tie_t << 6); |
| 1017 | } |
| 1018 | |
| 1019 | static unsigned |
| 1020 | Field_imm6_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 1021 | { |
| 1022 | unsigned tie_t = 0; |
| 1023 | tie_t = (tie_t << 2) | ((insn[0] << 26) >> 30); |
| 1024 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 1025 | return tie_t; |
| 1026 | } |
| 1027 | |
| 1028 | static void |
| 1029 | Field_imm6_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 1030 | { |
| 1031 | uint32 tie_t; |
| 1032 | tie_t = (val << 28) >> 28; |
| 1033 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 1034 | tie_t = (val << 26) >> 30; |
| 1035 | insn[0] = (insn[0] & ~0x30) | (tie_t << 4); |
| 1036 | } |
| 1037 | |
| 1038 | static unsigned |
| 1039 | Field_imm6_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 1040 | { |
| 1041 | unsigned tie_t = 0; |
| 1042 | tie_t = (tie_t << 2) | ((insn[0] << 26) >> 30); |
| 1043 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 1044 | return tie_t; |
| 1045 | } |
| 1046 | |
| 1047 | static void |
| 1048 | Field_imm6_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 1049 | { |
| 1050 | uint32 tie_t; |
| 1051 | tie_t = (val << 28) >> 28; |
| 1052 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 1053 | tie_t = (val << 26) >> 30; |
| 1054 | insn[0] = (insn[0] & ~0x30) | (tie_t << 4); |
| 1055 | } |
| 1056 | |
| 1057 | static unsigned |
| 1058 | Field_imm7_Slot_inst16a_get (const xtensa_insnbuf insn) |
| 1059 | { |
| 1060 | unsigned tie_t = 0; |
| 1061 | tie_t = (tie_t << 3) | ((insn[0] << 25) >> 29); |
| 1062 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 1063 | return tie_t; |
| 1064 | } |
| 1065 | |
| 1066 | static void |
| 1067 | Field_imm7_Slot_inst16a_set (xtensa_insnbuf insn, uint32 val) |
| 1068 | { |
| 1069 | uint32 tie_t; |
| 1070 | tie_t = (val << 28) >> 28; |
| 1071 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 1072 | tie_t = (val << 25) >> 29; |
| 1073 | insn[0] = (insn[0] & ~0x70) | (tie_t << 4); |
| 1074 | } |
| 1075 | |
| 1076 | static unsigned |
| 1077 | Field_imm7_Slot_inst16b_get (const xtensa_insnbuf insn) |
| 1078 | { |
| 1079 | unsigned tie_t = 0; |
| 1080 | tie_t = (tie_t << 3) | ((insn[0] << 25) >> 29); |
| 1081 | tie_t = (tie_t << 4) | ((insn[0] << 16) >> 28); |
| 1082 | return tie_t; |
| 1083 | } |
| 1084 | |
| 1085 | static void |
| 1086 | Field_imm7_Slot_inst16b_set (xtensa_insnbuf insn, uint32 val) |
| 1087 | { |
| 1088 | uint32 tie_t; |
| 1089 | tie_t = (val << 28) >> 28; |
| 1090 | insn[0] = (insn[0] & ~0xf000) | (tie_t << 12); |
| 1091 | tie_t = (val << 25) >> 29; |
| 1092 | insn[0] = (insn[0] & ~0x70) | (tie_t << 4); |
| 1093 | } |
| 1094 | |
| 1095 | static unsigned |
| 1096 | Field_xt_wbr15_imm_Slot_inst_get (const xtensa_insnbuf insn) |
| 1097 | { |
| 1098 | unsigned tie_t = 0; |
| 1099 | tie_t = (tie_t << 15) | ((insn[0] << 8) >> 17); |
| 1100 | return tie_t; |
| 1101 | } |
| 1102 | |
| 1103 | static void |
| 1104 | Field_xt_wbr15_imm_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 1105 | { |
| 1106 | uint32 tie_t; |
| 1107 | tie_t = (val << 17) >> 17; |
| 1108 | insn[0] = (insn[0] & ~0xfffe00) | (tie_t << 9); |
| 1109 | } |
| 1110 | |
| 1111 | static unsigned |
| 1112 | Field_xt_wbr18_imm_Slot_inst_get (const xtensa_insnbuf insn) |
| 1113 | { |
| 1114 | unsigned tie_t = 0; |
| 1115 | tie_t = (tie_t << 18) | ((insn[0] << 8) >> 14); |
| 1116 | return tie_t; |
| 1117 | } |
| 1118 | |
| 1119 | static void |
| 1120 | Field_xt_wbr18_imm_Slot_inst_set (xtensa_insnbuf insn, uint32 val) |
| 1121 | { |
| 1122 | uint32 tie_t; |
| 1123 | tie_t = (val << 14) >> 14; |
| 1124 | insn[0] = (insn[0] & ~0xffffc0) | (tie_t << 6); |
| 1125 | } |
| 1126 | |
| 1127 | static void |
| 1128 | Implicit_Field_set (xtensa_insnbuf insn ATTRIBUTE_UNUSED, |
| 1129 | uint32 val ATTRIBUTE_UNUSED) |
| 1130 | { |
| 1131 | /* Do nothing. */ |
| 1132 | } |
| 1133 | |
| 1134 | static unsigned |
| 1135 | Implicit_Field_ar0_get (const xtensa_insnbuf insn ATTRIBUTE_UNUSED) |
| 1136 | { |
| 1137 | return 0; |
| 1138 | } |
| 1139 | |
| 1140 | enum xtensa_field_id { |
| 1141 | FIELD_t, |
| 1142 | FIELD_bbi4, |
| 1143 | FIELD_bbi, |
| 1144 | FIELD_imm12, |
| 1145 | FIELD_imm8, |
| 1146 | FIELD_s, |
| 1147 | FIELD_imm12b, |
| 1148 | FIELD_imm16, |
| 1149 | FIELD_m, |
| 1150 | FIELD_n, |
| 1151 | FIELD_offset, |
| 1152 | FIELD_op0, |
| 1153 | FIELD_op1, |
| 1154 | FIELD_op2, |
| 1155 | FIELD_r, |
| 1156 | FIELD_sa4, |
| 1157 | FIELD_sae4, |
| 1158 | FIELD_sae, |
| 1159 | FIELD_sal, |
| 1160 | FIELD_sargt, |
| 1161 | FIELD_sas4, |
| 1162 | FIELD_sas, |
| 1163 | FIELD_sr, |
| 1164 | FIELD_st, |
| 1165 | FIELD_thi3, |
| 1166 | FIELD_imm4, |
| 1167 | FIELD_i, |
| 1168 | FIELD_imm6lo, |
| 1169 | FIELD_imm6hi, |
| 1170 | FIELD_imm7lo, |
| 1171 | FIELD_imm7hi, |
| 1172 | FIELD_z, |
| 1173 | FIELD_imm6, |
| 1174 | FIELD_imm7, |
| 1175 | FIELD_xt_wbr15_imm, |
| 1176 | FIELD_xt_wbr18_imm, |
| 1177 | FIELD__ar0 |
| 1178 | }; |
| 1179 | |
| 1180 | |
| 1181 | /* Functional units. */ |
| 1182 | |
| 1183 | static xtensa_funcUnit_internal funcUnits[] = { |
| 1184 | |
| 1185 | }; |
| 1186 | |
| 1187 | |
| 1188 | /* Register files. */ |
| 1189 | |
| 1190 | enum xtensa_regfile_id { |
| 1191 | REGFILE_AR |
| 1192 | }; |
| 1193 | |
| 1194 | static xtensa_regfile_internal regfiles[] = { |
| 1195 | { "AR", "a", REGFILE_AR, 32, 16 } |
| 1196 | }; |
| 1197 | |
| 1198 | |
| 1199 | /* Interfaces. */ |
| 1200 | |
| 1201 | static xtensa_interface_internal interfaces[] = { |
| 1202 | |
| 1203 | }; |
| 1204 | |
| 1205 | |
| 1206 | /* Constant tables. */ |
| 1207 | |
| 1208 | /* constant table ai4c */ |
| 1209 | static const unsigned CONST_TBL_ai4c_0[] = { |
| 1210 | 0xffffffff, |
| 1211 | 0x1, |
| 1212 | 0x2, |
| 1213 | 0x3, |
| 1214 | 0x4, |
| 1215 | 0x5, |
| 1216 | 0x6, |
| 1217 | 0x7, |
| 1218 | 0x8, |
| 1219 | 0x9, |
| 1220 | 0xa, |
| 1221 | 0xb, |
| 1222 | 0xc, |
| 1223 | 0xd, |
| 1224 | 0xe, |
| 1225 | 0xf, |
| 1226 | 0 |
| 1227 | }; |
| 1228 | |
| 1229 | /* constant table b4c */ |
| 1230 | static const unsigned CONST_TBL_b4c_0[] = { |
| 1231 | 0xffffffff, |
| 1232 | 0x1, |
| 1233 | 0x2, |
| 1234 | 0x3, |
| 1235 | 0x4, |
| 1236 | 0x5, |
| 1237 | 0x6, |
| 1238 | 0x7, |
| 1239 | 0x8, |
| 1240 | 0xa, |
| 1241 | 0xc, |
| 1242 | 0x10, |
| 1243 | 0x20, |
| 1244 | 0x40, |
| 1245 | 0x80, |
| 1246 | 0x100, |
| 1247 | 0 |
| 1248 | }; |
| 1249 | |
| 1250 | /* constant table b4cu */ |
| 1251 | static const unsigned CONST_TBL_b4cu_0[] = { |
| 1252 | 0x8000, |
| 1253 | 0x10000, |
| 1254 | 0x2, |
| 1255 | 0x3, |
| 1256 | 0x4, |
| 1257 | 0x5, |
| 1258 | 0x6, |
| 1259 | 0x7, |
| 1260 | 0x8, |
| 1261 | 0xa, |
| 1262 | 0xc, |
| 1263 | 0x10, |
| 1264 | 0x20, |
| 1265 | 0x40, |
| 1266 | 0x80, |
| 1267 | 0x100, |
| 1268 | 0 |
| 1269 | }; |
| 1270 | |
| 1271 | |
| 1272 | /* Instruction operands. */ |
| 1273 | |
| 1274 | static int |
| 1275 | Operand_art_decode (uint32 *valp ATTRIBUTE_UNUSED) |
| 1276 | { |
| 1277 | return 0; |
| 1278 | } |
| 1279 | |
| 1280 | static int |
| 1281 | Operand_art_encode (uint32 *valp) |
| 1282 | { |
| 1283 | int error; |
| 1284 | error = (*valp & ~0xf) != 0; |
| 1285 | return error; |
| 1286 | } |
| 1287 | |
| 1288 | static int |
| 1289 | Operand_ars_decode (uint32 *valp ATTRIBUTE_UNUSED) |
| 1290 | { |
| 1291 | return 0; |
| 1292 | } |
| 1293 | |
| 1294 | static int |
| 1295 | Operand_ars_encode (uint32 *valp) |
| 1296 | { |
| 1297 | int error; |
| 1298 | error = (*valp & ~0xf) != 0; |
| 1299 | return error; |
| 1300 | } |
| 1301 | |
| 1302 | static int |
| 1303 | Operand_arr_decode (uint32 *valp ATTRIBUTE_UNUSED) |
| 1304 | { |
| 1305 | return 0; |
| 1306 | } |
| 1307 | |
| 1308 | static int |
| 1309 | Operand_arr_encode (uint32 *valp) |
| 1310 | { |
| 1311 | int error; |
| 1312 | error = (*valp & ~0xf) != 0; |
| 1313 | return error; |
| 1314 | } |
| 1315 | |
| 1316 | static int |
| 1317 | Operand_ar0_decode (uint32 *valp ATTRIBUTE_UNUSED) |
| 1318 | { |
| 1319 | return 0; |
| 1320 | } |
| 1321 | |
| 1322 | static int |
| 1323 | Operand_ar0_encode (uint32 *valp) |
| 1324 | { |
| 1325 | int error; |
| 1326 | error = (*valp & ~0xf) != 0; |
| 1327 | return error; |
| 1328 | } |
| 1329 | |
| 1330 | static int |
| 1331 | Operand_soffsetx4_decode (uint32 *valp) |
| 1332 | { |
| 1333 | unsigned soffsetx4_0, offset_0; |
| 1334 | offset_0 = *valp & 0x3ffff; |
| 1335 | soffsetx4_0 = 0x4 + ((((int) offset_0 << 14) >> 14) << 2); |
| 1336 | *valp = soffsetx4_0; |
| 1337 | return 0; |
| 1338 | } |
| 1339 | |
| 1340 | static int |
| 1341 | Operand_soffsetx4_encode (uint32 *valp) |
| 1342 | { |
| 1343 | unsigned offset_0, soffsetx4_0; |
| 1344 | soffsetx4_0 = *valp; |
| 1345 | offset_0 = ((soffsetx4_0 - 0x4) >> 2) & 0x3ffff; |
| 1346 | *valp = offset_0; |
| 1347 | return 0; |
| 1348 | } |
| 1349 | |
| 1350 | static int |
| 1351 | Operand_soffsetx4_ator (uint32 *valp, uint32 pc) |
| 1352 | { |
| 1353 | *valp -= (pc & ~0x3); |
| 1354 | return 0; |
| 1355 | } |
| 1356 | |
| 1357 | static int |
| 1358 | Operand_soffsetx4_rtoa (uint32 *valp, uint32 pc) |
| 1359 | { |
| 1360 | *valp += (pc & ~0x3); |
| 1361 | return 0; |
| 1362 | } |
| 1363 | |
| 1364 | static int |
| 1365 | Operand_lsi4x4_decode (uint32 *valp) |
| 1366 | { |
| 1367 | unsigned lsi4x4_0, r_0; |
| 1368 | r_0 = *valp & 0xf; |
| 1369 | lsi4x4_0 = r_0 << 2; |
| 1370 | *valp = lsi4x4_0; |
| 1371 | return 0; |
| 1372 | } |
| 1373 | |
| 1374 | static int |
| 1375 | Operand_lsi4x4_encode (uint32 *valp) |
| 1376 | { |
| 1377 | unsigned r_0, lsi4x4_0; |
| 1378 | lsi4x4_0 = *valp; |
| 1379 | r_0 = ((lsi4x4_0 >> 2) & 0xf); |
| 1380 | *valp = r_0; |
| 1381 | return 0; |
| 1382 | } |
| 1383 | |
| 1384 | static int |
| 1385 | Operand_simm7_decode (uint32 *valp) |
| 1386 | { |
| 1387 | unsigned simm7_0, imm7_0; |
| 1388 | imm7_0 = *valp & 0x7f; |
| 1389 | simm7_0 = ((((-((((imm7_0 >> 6) & 1)) & (((imm7_0 >> 5) & 1)))) & 0x1ffffff)) << 7) | imm7_0; |
| 1390 | *valp = simm7_0; |
| 1391 | return 0; |
| 1392 | } |
| 1393 | |
| 1394 | static int |
| 1395 | Operand_simm7_encode (uint32 *valp) |
| 1396 | { |
| 1397 | unsigned imm7_0, simm7_0; |
| 1398 | simm7_0 = *valp; |
| 1399 | imm7_0 = (simm7_0 & 0x7f); |
| 1400 | *valp = imm7_0; |
| 1401 | return 0; |
| 1402 | } |
| 1403 | |
| 1404 | static int |
| 1405 | Operand_uimm6_decode (uint32 *valp) |
| 1406 | { |
| 1407 | unsigned uimm6_0, imm6_0; |
| 1408 | imm6_0 = *valp & 0x3f; |
| 1409 | uimm6_0 = 0x4 + (((0) << 6) | imm6_0); |
| 1410 | *valp = uimm6_0; |
| 1411 | return 0; |
| 1412 | } |
| 1413 | |
| 1414 | static int |
| 1415 | Operand_uimm6_encode (uint32 *valp) |
| 1416 | { |
| 1417 | unsigned imm6_0, uimm6_0; |
| 1418 | uimm6_0 = *valp; |
| 1419 | imm6_0 = (uimm6_0 - 0x4) & 0x3f; |
| 1420 | *valp = imm6_0; |
| 1421 | return 0; |
| 1422 | } |
| 1423 | |
| 1424 | static int |
| 1425 | Operand_uimm6_ator (uint32 *valp, uint32 pc) |
| 1426 | { |
| 1427 | *valp -= pc; |
| 1428 | return 0; |
| 1429 | } |
| 1430 | |
| 1431 | static int |
| 1432 | Operand_uimm6_rtoa (uint32 *valp, uint32 pc) |
| 1433 | { |
| 1434 | *valp += pc; |
| 1435 | return 0; |
| 1436 | } |
| 1437 | |
| 1438 | static int |
| 1439 | Operand_ai4const_decode (uint32 *valp) |
| 1440 | { |
| 1441 | unsigned ai4const_0, t_0; |
| 1442 | t_0 = *valp & 0xf; |
| 1443 | ai4const_0 = CONST_TBL_ai4c_0[t_0 & 0xf]; |
| 1444 | *valp = ai4const_0; |
| 1445 | return 0; |
| 1446 | } |
| 1447 | |
| 1448 | static int |
| 1449 | Operand_ai4const_encode (uint32 *valp) |
| 1450 | { |
| 1451 | unsigned t_0, ai4const_0; |
| 1452 | ai4const_0 = *valp; |
| 1453 | switch (ai4const_0) |
| 1454 | { |
| 1455 | case 0xffffffff: t_0 = 0; break; |
| 1456 | case 0x1: t_0 = 0x1; break; |
| 1457 | case 0x2: t_0 = 0x2; break; |
| 1458 | case 0x3: t_0 = 0x3; break; |
| 1459 | case 0x4: t_0 = 0x4; break; |
| 1460 | case 0x5: t_0 = 0x5; break; |
| 1461 | case 0x6: t_0 = 0x6; break; |
| 1462 | case 0x7: t_0 = 0x7; break; |
| 1463 | case 0x8: t_0 = 0x8; break; |
| 1464 | case 0x9: t_0 = 0x9; break; |
| 1465 | case 0xa: t_0 = 0xa; break; |
| 1466 | case 0xb: t_0 = 0xb; break; |
| 1467 | case 0xc: t_0 = 0xc; break; |
| 1468 | case 0xd: t_0 = 0xd; break; |
| 1469 | case 0xe: t_0 = 0xe; break; |
| 1470 | default: t_0 = 0xf; break; |
| 1471 | } |
| 1472 | *valp = t_0; |
| 1473 | return 0; |
| 1474 | } |
| 1475 | |
| 1476 | static int |
| 1477 | Operand_b4const_decode (uint32 *valp) |
| 1478 | { |
| 1479 | unsigned b4const_0, r_0; |
| 1480 | r_0 = *valp & 0xf; |
| 1481 | b4const_0 = CONST_TBL_b4c_0[r_0 & 0xf]; |
| 1482 | *valp = b4const_0; |
| 1483 | return 0; |
| 1484 | } |
| 1485 | |
| 1486 | static int |
| 1487 | Operand_b4const_encode (uint32 *valp) |
| 1488 | { |
| 1489 | unsigned r_0, b4const_0; |
| 1490 | b4const_0 = *valp; |
| 1491 | switch (b4const_0) |
| 1492 | { |
| 1493 | case 0xffffffff: r_0 = 0; break; |
| 1494 | case 0x1: r_0 = 0x1; break; |
| 1495 | case 0x2: r_0 = 0x2; break; |
| 1496 | case 0x3: r_0 = 0x3; break; |
| 1497 | case 0x4: r_0 = 0x4; break; |
| 1498 | case 0x5: r_0 = 0x5; break; |
| 1499 | case 0x6: r_0 = 0x6; break; |
| 1500 | case 0x7: r_0 = 0x7; break; |
| 1501 | case 0x8: r_0 = 0x8; break; |
| 1502 | case 0xa: r_0 = 0x9; break; |
| 1503 | case 0xc: r_0 = 0xa; break; |
| 1504 | case 0x10: r_0 = 0xb; break; |
| 1505 | case 0x20: r_0 = 0xc; break; |
| 1506 | case 0x40: r_0 = 0xd; break; |
| 1507 | case 0x80: r_0 = 0xe; break; |
| 1508 | default: r_0 = 0xf; break; |
| 1509 | } |
| 1510 | *valp = r_0; |
| 1511 | return 0; |
| 1512 | } |
| 1513 | |
| 1514 | static int |
| 1515 | Operand_b4constu_decode (uint32 *valp) |
| 1516 | { |
| 1517 | unsigned b4constu_0, r_0; |
| 1518 | r_0 = *valp & 0xf; |
| 1519 | b4constu_0 = CONST_TBL_b4cu_0[r_0 & 0xf]; |
| 1520 | *valp = b4constu_0; |
| 1521 | return 0; |
| 1522 | } |
| 1523 | |
| 1524 | static int |
| 1525 | Operand_b4constu_encode (uint32 *valp) |
| 1526 | { |
| 1527 | unsigned r_0, b4constu_0; |
| 1528 | b4constu_0 = *valp; |
| 1529 | switch (b4constu_0) |
| 1530 | { |
| 1531 | case 0x8000: r_0 = 0; break; |
| 1532 | case 0x10000: r_0 = 0x1; break; |
| 1533 | case 0x2: r_0 = 0x2; break; |
| 1534 | case 0x3: r_0 = 0x3; break; |
| 1535 | case 0x4: r_0 = 0x4; break; |
| 1536 | case 0x5: r_0 = 0x5; break; |
| 1537 | case 0x6: r_0 = 0x6; break; |
| 1538 | case 0x7: r_0 = 0x7; break; |
| 1539 | case 0x8: r_0 = 0x8; break; |
| 1540 | case 0xa: r_0 = 0x9; break; |
| 1541 | case 0xc: r_0 = 0xa; break; |
| 1542 | case 0x10: r_0 = 0xb; break; |
| 1543 | case 0x20: r_0 = 0xc; break; |
| 1544 | case 0x40: r_0 = 0xd; break; |
| 1545 | case 0x80: r_0 = 0xe; break; |
| 1546 | default: r_0 = 0xf; break; |
| 1547 | } |
| 1548 | *valp = r_0; |
| 1549 | return 0; |
| 1550 | } |
| 1551 | |
| 1552 | static int |
| 1553 | Operand_uimm8_decode (uint32 *valp) |
| 1554 | { |
| 1555 | unsigned uimm8_0, imm8_0; |
| 1556 | imm8_0 = *valp & 0xff; |
| 1557 | uimm8_0 = imm8_0; |
| 1558 | *valp = uimm8_0; |
| 1559 | return 0; |
| 1560 | } |
| 1561 | |
| 1562 | static int |
| 1563 | Operand_uimm8_encode (uint32 *valp) |
| 1564 | { |
| 1565 | unsigned imm8_0, uimm8_0; |
| 1566 | uimm8_0 = *valp; |
| 1567 | imm8_0 = (uimm8_0 & 0xff); |
| 1568 | *valp = imm8_0; |
| 1569 | return 0; |
| 1570 | } |
| 1571 | |
| 1572 | static int |
| 1573 | Operand_uimm8x2_decode (uint32 *valp) |
| 1574 | { |
| 1575 | unsigned uimm8x2_0, imm8_0; |
| 1576 | imm8_0 = *valp & 0xff; |
| 1577 | uimm8x2_0 = imm8_0 << 1; |
| 1578 | *valp = uimm8x2_0; |
| 1579 | return 0; |
| 1580 | } |
| 1581 | |
| 1582 | static int |
| 1583 | Operand_uimm8x2_encode (uint32 *valp) |
| 1584 | { |
| 1585 | unsigned imm8_0, uimm8x2_0; |
| 1586 | uimm8x2_0 = *valp; |
| 1587 | imm8_0 = ((uimm8x2_0 >> 1) & 0xff); |
| 1588 | *valp = imm8_0; |
| 1589 | return 0; |
| 1590 | } |
| 1591 | |
| 1592 | static int |
| 1593 | Operand_uimm8x4_decode (uint32 *valp) |
| 1594 | { |
| 1595 | unsigned uimm8x4_0, imm8_0; |
| 1596 | imm8_0 = *valp & 0xff; |
| 1597 | uimm8x4_0 = imm8_0 << 2; |
| 1598 | *valp = uimm8x4_0; |
| 1599 | return 0; |
| 1600 | } |
| 1601 | |
| 1602 | static int |
| 1603 | Operand_uimm8x4_encode (uint32 *valp) |
| 1604 | { |
| 1605 | unsigned imm8_0, uimm8x4_0; |
| 1606 | uimm8x4_0 = *valp; |
| 1607 | imm8_0 = ((uimm8x4_0 >> 2) & 0xff); |
| 1608 | *valp = imm8_0; |
| 1609 | return 0; |
| 1610 | } |
| 1611 | |
| 1612 | static int |
| 1613 | Operand_uimm4x16_decode (uint32 *valp) |
| 1614 | { |
| 1615 | unsigned uimm4x16_0, op2_0; |
| 1616 | op2_0 = *valp & 0xf; |
| 1617 | uimm4x16_0 = op2_0 << 4; |
| 1618 | *valp = uimm4x16_0; |
| 1619 | return 0; |
| 1620 | } |
| 1621 | |
| 1622 | static int |
| 1623 | Operand_uimm4x16_encode (uint32 *valp) |
| 1624 | { |
| 1625 | unsigned op2_0, uimm4x16_0; |
| 1626 | uimm4x16_0 = *valp; |
| 1627 | op2_0 = ((uimm4x16_0 >> 4) & 0xf); |
| 1628 | *valp = op2_0; |
| 1629 | return 0; |
| 1630 | } |
| 1631 | |
| 1632 | static int |
| 1633 | Operand_simm8_decode (uint32 *valp) |
| 1634 | { |
| 1635 | unsigned simm8_0, imm8_0; |
| 1636 | imm8_0 = *valp & 0xff; |
| 1637 | simm8_0 = ((int) imm8_0 << 24) >> 24; |
| 1638 | *valp = simm8_0; |
| 1639 | return 0; |
| 1640 | } |
| 1641 | |
| 1642 | static int |
| 1643 | Operand_simm8_encode (uint32 *valp) |
| 1644 | { |
| 1645 | unsigned imm8_0, simm8_0; |
| 1646 | simm8_0 = *valp; |
| 1647 | imm8_0 = (simm8_0 & 0xff); |
| 1648 | *valp = imm8_0; |
| 1649 | return 0; |
| 1650 | } |
| 1651 | |
| 1652 | static int |
| 1653 | Operand_simm8x256_decode (uint32 *valp) |
| 1654 | { |
| 1655 | unsigned simm8x256_0, imm8_0; |
| 1656 | imm8_0 = *valp & 0xff; |
| 1657 | simm8x256_0 = (((int) imm8_0 << 24) >> 24) << 8; |
| 1658 | *valp = simm8x256_0; |
| 1659 | return 0; |
| 1660 | } |
| 1661 | |
| 1662 | static int |
| 1663 | Operand_simm8x256_encode (uint32 *valp) |
| 1664 | { |
| 1665 | unsigned imm8_0, simm8x256_0; |
| 1666 | simm8x256_0 = *valp; |
| 1667 | imm8_0 = ((simm8x256_0 >> 8) & 0xff); |
| 1668 | *valp = imm8_0; |
| 1669 | return 0; |
| 1670 | } |
| 1671 | |
| 1672 | static int |
| 1673 | Operand_simm12b_decode (uint32 *valp) |
| 1674 | { |
| 1675 | unsigned simm12b_0, imm12b_0; |
| 1676 | imm12b_0 = *valp & 0xfff; |
| 1677 | simm12b_0 = ((int) imm12b_0 << 20) >> 20; |
| 1678 | *valp = simm12b_0; |
| 1679 | return 0; |
| 1680 | } |
| 1681 | |
| 1682 | static int |
| 1683 | Operand_simm12b_encode (uint32 *valp) |
| 1684 | { |
| 1685 | unsigned imm12b_0, simm12b_0; |
| 1686 | simm12b_0 = *valp; |
| 1687 | imm12b_0 = (simm12b_0 & 0xfff); |
| 1688 | *valp = imm12b_0; |
| 1689 | return 0; |
| 1690 | } |
| 1691 | |
| 1692 | static int |
| 1693 | Operand_msalp32_decode (uint32 *valp) |
| 1694 | { |
| 1695 | unsigned msalp32_0, sal_0; |
| 1696 | sal_0 = *valp & 0x1f; |
| 1697 | msalp32_0 = 0x20 - sal_0; |
| 1698 | *valp = msalp32_0; |
| 1699 | return 0; |
| 1700 | } |
| 1701 | |
| 1702 | static int |
| 1703 | Operand_msalp32_encode (uint32 *valp) |
| 1704 | { |
| 1705 | unsigned sal_0, msalp32_0; |
| 1706 | msalp32_0 = *valp; |
| 1707 | sal_0 = (0x20 - msalp32_0) & 0x1f; |
| 1708 | *valp = sal_0; |
| 1709 | return 0; |
| 1710 | } |
| 1711 | |
| 1712 | static int |
| 1713 | Operand_op2p1_decode (uint32 *valp) |
| 1714 | { |
| 1715 | unsigned op2p1_0, op2_0; |
| 1716 | op2_0 = *valp & 0xf; |
| 1717 | op2p1_0 = op2_0 + 0x1; |
| 1718 | *valp = op2p1_0; |
| 1719 | return 0; |
| 1720 | } |
| 1721 | |
| 1722 | static int |
| 1723 | Operand_op2p1_encode (uint32 *valp) |
| 1724 | { |
| 1725 | unsigned op2_0, op2p1_0; |
| 1726 | op2p1_0 = *valp; |
| 1727 | op2_0 = (op2p1_0 - 0x1) & 0xf; |
| 1728 | *valp = op2_0; |
| 1729 | return 0; |
| 1730 | } |
| 1731 | |
| 1732 | static int |
| 1733 | Operand_label8_decode (uint32 *valp) |
| 1734 | { |
| 1735 | unsigned label8_0, imm8_0; |
| 1736 | imm8_0 = *valp & 0xff; |
| 1737 | label8_0 = 0x4 + (((int) imm8_0 << 24) >> 24); |
| 1738 | *valp = label8_0; |
| 1739 | return 0; |
| 1740 | } |
| 1741 | |
| 1742 | static int |
| 1743 | Operand_label8_encode (uint32 *valp) |
| 1744 | { |
| 1745 | unsigned imm8_0, label8_0; |
| 1746 | label8_0 = *valp; |
| 1747 | imm8_0 = (label8_0 - 0x4) & 0xff; |
| 1748 | *valp = imm8_0; |
| 1749 | return 0; |
| 1750 | } |
| 1751 | |
| 1752 | static int |
| 1753 | Operand_label8_ator (uint32 *valp, uint32 pc) |
| 1754 | { |
| 1755 | *valp -= pc; |
| 1756 | return 0; |
| 1757 | } |
| 1758 | |
| 1759 | static int |
| 1760 | Operand_label8_rtoa (uint32 *valp, uint32 pc) |
| 1761 | { |
| 1762 | *valp += pc; |
| 1763 | return 0; |
| 1764 | } |
| 1765 | |
| 1766 | static int |
| 1767 | Operand_label12_decode (uint32 *valp) |
| 1768 | { |
| 1769 | unsigned label12_0, imm12_0; |
| 1770 | imm12_0 = *valp & 0xfff; |
| 1771 | label12_0 = 0x4 + (((int) imm12_0 << 20) >> 20); |
| 1772 | *valp = label12_0; |
| 1773 | return 0; |
| 1774 | } |
| 1775 | |
| 1776 | static int |
| 1777 | Operand_label12_encode (uint32 *valp) |
| 1778 | { |
| 1779 | unsigned imm12_0, label12_0; |
| 1780 | label12_0 = *valp; |
| 1781 | imm12_0 = (label12_0 - 0x4) & 0xfff; |
| 1782 | *valp = imm12_0; |
| 1783 | return 0; |
| 1784 | } |
| 1785 | |
| 1786 | static int |
| 1787 | Operand_label12_ator (uint32 *valp, uint32 pc) |
| 1788 | { |
| 1789 | *valp -= pc; |
| 1790 | return 0; |
| 1791 | } |
| 1792 | |
| 1793 | static int |
| 1794 | Operand_label12_rtoa (uint32 *valp, uint32 pc) |
| 1795 | { |
| 1796 | *valp += pc; |
| 1797 | return 0; |
| 1798 | } |
| 1799 | |
| 1800 | static int |
| 1801 | Operand_soffset_decode (uint32 *valp) |
| 1802 | { |
| 1803 | unsigned soffset_0, offset_0; |
| 1804 | offset_0 = *valp & 0x3ffff; |
| 1805 | soffset_0 = 0x4 + (((int) offset_0 << 14) >> 14); |
| 1806 | *valp = soffset_0; |
| 1807 | return 0; |
| 1808 | } |
| 1809 | |
| 1810 | static int |
| 1811 | Operand_soffset_encode (uint32 *valp) |
| 1812 | { |
| 1813 | unsigned offset_0, soffset_0; |
| 1814 | soffset_0 = *valp; |
| 1815 | offset_0 = (soffset_0 - 0x4) & 0x3ffff; |
| 1816 | *valp = offset_0; |
| 1817 | return 0; |
| 1818 | } |
| 1819 | |
| 1820 | static int |
| 1821 | Operand_soffset_ator (uint32 *valp, uint32 pc) |
| 1822 | { |
| 1823 | *valp -= pc; |
| 1824 | return 0; |
| 1825 | } |
| 1826 | |
| 1827 | static int |
| 1828 | Operand_soffset_rtoa (uint32 *valp, uint32 pc) |
| 1829 | { |
| 1830 | *valp += pc; |
| 1831 | return 0; |
| 1832 | } |
| 1833 | |
| 1834 | static int |
| 1835 | Operand_uimm16x4_decode (uint32 *valp) |
| 1836 | { |
| 1837 | unsigned uimm16x4_0, imm16_0; |
| 1838 | imm16_0 = *valp & 0xffff; |
| 1839 | uimm16x4_0 = (((0xffff) << 16) | imm16_0) << 2; |
| 1840 | *valp = uimm16x4_0; |
| 1841 | return 0; |
| 1842 | } |
| 1843 | |
| 1844 | static int |
| 1845 | Operand_uimm16x4_encode (uint32 *valp) |
| 1846 | { |
| 1847 | unsigned imm16_0, uimm16x4_0; |
| 1848 | uimm16x4_0 = *valp; |
| 1849 | imm16_0 = (uimm16x4_0 >> 2) & 0xffff; |
| 1850 | *valp = imm16_0; |
| 1851 | return 0; |
| 1852 | } |
| 1853 | |
| 1854 | static int |
| 1855 | Operand_uimm16x4_ator (uint32 *valp, uint32 pc) |
| 1856 | { |
| 1857 | *valp -= ((pc + 3) & ~0x3); |
| 1858 | return 0; |
| 1859 | } |
| 1860 | |
| 1861 | static int |
| 1862 | Operand_uimm16x4_rtoa (uint32 *valp, uint32 pc) |
| 1863 | { |
| 1864 | *valp += ((pc + 3) & ~0x3); |
| 1865 | return 0; |
| 1866 | } |
| 1867 | |
| 1868 | static int |
| 1869 | Operand_immt_decode (uint32 *valp) |
| 1870 | { |
| 1871 | unsigned immt_0, t_0; |
| 1872 | t_0 = *valp & 0xf; |
| 1873 | immt_0 = t_0; |
| 1874 | *valp = immt_0; |
| 1875 | return 0; |
| 1876 | } |
| 1877 | |
| 1878 | static int |
| 1879 | Operand_immt_encode (uint32 *valp) |
| 1880 | { |
| 1881 | unsigned t_0, immt_0; |
| 1882 | immt_0 = *valp; |
| 1883 | t_0 = immt_0 & 0xf; |
| 1884 | *valp = t_0; |
| 1885 | return 0; |
| 1886 | } |
| 1887 | |
| 1888 | static int |
| 1889 | Operand_imms_decode (uint32 *valp) |
| 1890 | { |
| 1891 | unsigned imms_0, s_0; |
| 1892 | s_0 = *valp & 0xf; |
| 1893 | imms_0 = s_0; |
| 1894 | *valp = imms_0; |
| 1895 | return 0; |
| 1896 | } |
| 1897 | |
| 1898 | static int |
| 1899 | Operand_imms_encode (uint32 *valp) |
| 1900 | { |
| 1901 | unsigned s_0, imms_0; |
| 1902 | imms_0 = *valp; |
| 1903 | s_0 = imms_0 & 0xf; |
| 1904 | *valp = s_0; |
| 1905 | return 0; |
| 1906 | } |
| 1907 | |
| 1908 | static int |
| 1909 | Operand_xt_wbr15_label_decode (uint32 *valp) |
| 1910 | { |
| 1911 | unsigned xt_wbr15_label_0, xt_wbr15_imm_0; |
| 1912 | xt_wbr15_imm_0 = *valp & 0x7fff; |
| 1913 | xt_wbr15_label_0 = 0x4 + (((int) xt_wbr15_imm_0 << 17) >> 17); |
| 1914 | *valp = xt_wbr15_label_0; |
| 1915 | return 0; |
| 1916 | } |
| 1917 | |
| 1918 | static int |
| 1919 | Operand_xt_wbr15_label_encode (uint32 *valp) |
| 1920 | { |
| 1921 | unsigned xt_wbr15_imm_0, xt_wbr15_label_0; |
| 1922 | xt_wbr15_label_0 = *valp; |
| 1923 | xt_wbr15_imm_0 = (xt_wbr15_label_0 - 0x4) & 0x7fff; |
| 1924 | *valp = xt_wbr15_imm_0; |
| 1925 | return 0; |
| 1926 | } |
| 1927 | |
| 1928 | static int |
| 1929 | Operand_xt_wbr15_label_ator (uint32 *valp, uint32 pc) |
| 1930 | { |
| 1931 | *valp -= pc; |
| 1932 | return 0; |
| 1933 | } |
| 1934 | |
| 1935 | static int |
| 1936 | Operand_xt_wbr15_label_rtoa (uint32 *valp, uint32 pc) |
| 1937 | { |
| 1938 | *valp += pc; |
| 1939 | return 0; |
| 1940 | } |
| 1941 | |
| 1942 | static int |
| 1943 | Operand_xt_wbr18_label_decode (uint32 *valp) |
| 1944 | { |
| 1945 | unsigned xt_wbr18_label_0, xt_wbr18_imm_0; |
| 1946 | xt_wbr18_imm_0 = *valp & 0x3ffff; |
| 1947 | xt_wbr18_label_0 = 0x4 + (((int) xt_wbr18_imm_0 << 14) >> 14); |
| 1948 | *valp = xt_wbr18_label_0; |
| 1949 | return 0; |
| 1950 | } |
| 1951 | |
| 1952 | static int |
| 1953 | Operand_xt_wbr18_label_encode (uint32 *valp) |
| 1954 | { |
| 1955 | unsigned xt_wbr18_imm_0, xt_wbr18_label_0; |
| 1956 | xt_wbr18_label_0 = *valp; |
| 1957 | xt_wbr18_imm_0 = (xt_wbr18_label_0 - 0x4) & 0x3ffff; |
| 1958 | *valp = xt_wbr18_imm_0; |
| 1959 | return 0; |
| 1960 | } |
| 1961 | |
| 1962 | static int |
| 1963 | Operand_xt_wbr18_label_ator (uint32 *valp, uint32 pc) |
| 1964 | { |
| 1965 | *valp -= pc; |
| 1966 | return 0; |
| 1967 | } |
| 1968 | |
| 1969 | static int |
| 1970 | Operand_xt_wbr18_label_rtoa (uint32 *valp, uint32 pc) |
| 1971 | { |
| 1972 | *valp += pc; |
| 1973 | return 0; |
| 1974 | } |
| 1975 | |
| 1976 | static xtensa_operand_internal operands[] = { |
| 1977 | { "art", FIELD_t, REGFILE_AR, 1, |
| 1978 | XTENSA_OPERAND_IS_REGISTER, |
| 1979 | Operand_art_encode, Operand_art_decode, |
| 1980 | 0, 0 }, |
| 1981 | { "ars", FIELD_s, REGFILE_AR, 1, |
| 1982 | XTENSA_OPERAND_IS_REGISTER, |
| 1983 | Operand_ars_encode, Operand_ars_decode, |
| 1984 | 0, 0 }, |
| 1985 | { "*ars_invisible", FIELD_s, REGFILE_AR, 1, |
| 1986 | XTENSA_OPERAND_IS_REGISTER | XTENSA_OPERAND_IS_INVISIBLE, |
| 1987 | Operand_ars_encode, Operand_ars_decode, |
| 1988 | 0, 0 }, |
| 1989 | { "arr", FIELD_r, REGFILE_AR, 1, |
| 1990 | XTENSA_OPERAND_IS_REGISTER, |
| 1991 | Operand_arr_encode, Operand_arr_decode, |
| 1992 | 0, 0 }, |
| 1993 | { "ar0", FIELD__ar0, REGFILE_AR, 1, |
| 1994 | XTENSA_OPERAND_IS_REGISTER | XTENSA_OPERAND_IS_INVISIBLE, |
| 1995 | Operand_ar0_encode, Operand_ar0_decode, |
| 1996 | 0, 0 }, |
| 1997 | { "soffsetx4", FIELD_offset, -1, 0, |
| 1998 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 1999 | Operand_soffsetx4_encode, Operand_soffsetx4_decode, |
| 2000 | Operand_soffsetx4_ator, Operand_soffsetx4_rtoa }, |
| 2001 | { "lsi4x4", FIELD_r, -1, 0, |
| 2002 | 0, |
| 2003 | Operand_lsi4x4_encode, Operand_lsi4x4_decode, |
| 2004 | 0, 0 }, |
| 2005 | { "simm7", FIELD_imm7, -1, 0, |
| 2006 | 0, |
| 2007 | Operand_simm7_encode, Operand_simm7_decode, |
| 2008 | 0, 0 }, |
| 2009 | { "uimm6", FIELD_imm6, -1, 0, |
| 2010 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2011 | Operand_uimm6_encode, Operand_uimm6_decode, |
| 2012 | Operand_uimm6_ator, Operand_uimm6_rtoa }, |
| 2013 | { "ai4const", FIELD_t, -1, 0, |
| 2014 | 0, |
| 2015 | Operand_ai4const_encode, Operand_ai4const_decode, |
| 2016 | 0, 0 }, |
| 2017 | { "b4const", FIELD_r, -1, 0, |
| 2018 | 0, |
| 2019 | Operand_b4const_encode, Operand_b4const_decode, |
| 2020 | 0, 0 }, |
| 2021 | { "b4constu", FIELD_r, -1, 0, |
| 2022 | 0, |
| 2023 | Operand_b4constu_encode, Operand_b4constu_decode, |
| 2024 | 0, 0 }, |
| 2025 | { "uimm8", FIELD_imm8, -1, 0, |
| 2026 | 0, |
| 2027 | Operand_uimm8_encode, Operand_uimm8_decode, |
| 2028 | 0, 0 }, |
| 2029 | { "uimm8x2", FIELD_imm8, -1, 0, |
| 2030 | 0, |
| 2031 | Operand_uimm8x2_encode, Operand_uimm8x2_decode, |
| 2032 | 0, 0 }, |
| 2033 | { "uimm8x4", FIELD_imm8, -1, 0, |
| 2034 | 0, |
| 2035 | Operand_uimm8x4_encode, Operand_uimm8x4_decode, |
| 2036 | 0, 0 }, |
| 2037 | { "uimm4x16", FIELD_op2, -1, 0, |
| 2038 | 0, |
| 2039 | Operand_uimm4x16_encode, Operand_uimm4x16_decode, |
| 2040 | 0, 0 }, |
| 2041 | { "simm8", FIELD_imm8, -1, 0, |
| 2042 | 0, |
| 2043 | Operand_simm8_encode, Operand_simm8_decode, |
| 2044 | 0, 0 }, |
| 2045 | { "simm8x256", FIELD_imm8, -1, 0, |
| 2046 | 0, |
| 2047 | Operand_simm8x256_encode, Operand_simm8x256_decode, |
| 2048 | 0, 0 }, |
| 2049 | { "simm12b", FIELD_imm12b, -1, 0, |
| 2050 | 0, |
| 2051 | Operand_simm12b_encode, Operand_simm12b_decode, |
| 2052 | 0, 0 }, |
| 2053 | { "msalp32", FIELD_sal, -1, 0, |
| 2054 | 0, |
| 2055 | Operand_msalp32_encode, Operand_msalp32_decode, |
| 2056 | 0, 0 }, |
| 2057 | { "op2p1", FIELD_op2, -1, 0, |
| 2058 | 0, |
| 2059 | Operand_op2p1_encode, Operand_op2p1_decode, |
| 2060 | 0, 0 }, |
| 2061 | { "label8", FIELD_imm8, -1, 0, |
| 2062 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2063 | Operand_label8_encode, Operand_label8_decode, |
| 2064 | Operand_label8_ator, Operand_label8_rtoa }, |
| 2065 | { "label12", FIELD_imm12, -1, 0, |
| 2066 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2067 | Operand_label12_encode, Operand_label12_decode, |
| 2068 | Operand_label12_ator, Operand_label12_rtoa }, |
| 2069 | { "soffset", FIELD_offset, -1, 0, |
| 2070 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2071 | Operand_soffset_encode, Operand_soffset_decode, |
| 2072 | Operand_soffset_ator, Operand_soffset_rtoa }, |
| 2073 | { "uimm16x4", FIELD_imm16, -1, 0, |
| 2074 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2075 | Operand_uimm16x4_encode, Operand_uimm16x4_decode, |
| 2076 | Operand_uimm16x4_ator, Operand_uimm16x4_rtoa }, |
| 2077 | { "immt", FIELD_t, -1, 0, |
| 2078 | 0, |
| 2079 | Operand_immt_encode, Operand_immt_decode, |
| 2080 | 0, 0 }, |
| 2081 | { "imms", FIELD_s, -1, 0, |
| 2082 | 0, |
| 2083 | Operand_imms_encode, Operand_imms_decode, |
| 2084 | 0, 0 }, |
| 2085 | { "xt_wbr15_label", FIELD_xt_wbr15_imm, -1, 0, |
| 2086 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2087 | Operand_xt_wbr15_label_encode, Operand_xt_wbr15_label_decode, |
| 2088 | Operand_xt_wbr15_label_ator, Operand_xt_wbr15_label_rtoa }, |
| 2089 | { "xt_wbr18_label", FIELD_xt_wbr18_imm, -1, 0, |
| 2090 | XTENSA_OPERAND_IS_PCRELATIVE, |
| 2091 | Operand_xt_wbr18_label_encode, Operand_xt_wbr18_label_decode, |
| 2092 | Operand_xt_wbr18_label_ator, Operand_xt_wbr18_label_rtoa }, |
| 2093 | { "t", FIELD_t, -1, 0, 0, 0, 0, 0, 0 }, |
| 2094 | { "bbi4", FIELD_bbi4, -1, 0, 0, 0, 0, 0, 0 }, |
| 2095 | { "bbi", FIELD_bbi, -1, 0, 0, 0, 0, 0, 0 }, |
| 2096 | { "imm12", FIELD_imm12, -1, 0, 0, 0, 0, 0, 0 }, |
| 2097 | { "imm8", FIELD_imm8, -1, 0, 0, 0, 0, 0, 0 }, |
| 2098 | { "s", FIELD_s, -1, 0, 0, 0, 0, 0, 0 }, |
| 2099 | { "imm12b", FIELD_imm12b, -1, 0, 0, 0, 0, 0, 0 }, |
| 2100 | { "imm16", FIELD_imm16, -1, 0, 0, 0, 0, 0, 0 }, |
| 2101 | { "m", FIELD_m, -1, 0, 0, 0, 0, 0, 0 }, |
| 2102 | { "n", FIELD_n, -1, 0, 0, 0, 0, 0, 0 }, |
| 2103 | { "offset", FIELD_offset, -1, 0, 0, 0, 0, 0, 0 }, |
| 2104 | { "op0", FIELD_op0, -1, 0, 0, 0, 0, 0, 0 }, |
| 2105 | { "op1", FIELD_op1, -1, 0, 0, 0, 0, 0, 0 }, |
| 2106 | { "op2", FIELD_op2, -1, 0, 0, 0, 0, 0, 0 }, |
| 2107 | { "r", FIELD_r, -1, 0, 0, 0, 0, 0, 0 }, |
| 2108 | { "sa4", FIELD_sa4, -1, 0, 0, 0, 0, 0, 0 }, |
| 2109 | { "sae4", FIELD_sae4, -1, 0, 0, 0, 0, 0, 0 }, |
| 2110 | { "sae", FIELD_sae, -1, 0, 0, 0, 0, 0, 0 }, |
| 2111 | { "sal", FIELD_sal, -1, 0, 0, 0, 0, 0, 0 }, |
| 2112 | { "sargt", FIELD_sargt, -1, 0, 0, 0, 0, 0, 0 }, |
| 2113 | { "sas4", FIELD_sas4, -1, 0, 0, 0, 0, 0, 0 }, |
| 2114 | { "sas", FIELD_sas, -1, 0, 0, 0, 0, 0, 0 }, |
| 2115 | { "sr", FIELD_sr, -1, 0, 0, 0, 0, 0, 0 }, |
| 2116 | { "st", FIELD_st, -1, 0, 0, 0, 0, 0, 0 }, |
| 2117 | { "thi3", FIELD_thi3, -1, 0, 0, 0, 0, 0, 0 }, |
| 2118 | { "imm4", FIELD_imm4, -1, 0, 0, 0, 0, 0, 0 }, |
| 2119 | { "i", FIELD_i, -1, 0, 0, 0, 0, 0, 0 }, |
| 2120 | { "imm6lo", FIELD_imm6lo, -1, 0, 0, 0, 0, 0, 0 }, |
| 2121 | { "imm6hi", FIELD_imm6hi, -1, 0, 0, 0, 0, 0, 0 }, |
| 2122 | { "imm7lo", FIELD_imm7lo, -1, 0, 0, 0, 0, 0, 0 }, |
| 2123 | { "imm7hi", FIELD_imm7hi, -1, 0, 0, 0, 0, 0, 0 }, |
| 2124 | { "z", FIELD_z, -1, 0, 0, 0, 0, 0, 0 }, |
| 2125 | { "imm6", FIELD_imm6, -1, 0, 0, 0, 0, 0, 0 }, |
| 2126 | { "imm7", FIELD_imm7, -1, 0, 0, 0, 0, 0, 0 }, |
| 2127 | { "xt_wbr15_imm", FIELD_xt_wbr15_imm, -1, 0, 0, 0, 0, 0, 0 }, |
| 2128 | { "xt_wbr18_imm", FIELD_xt_wbr18_imm, -1, 0, 0, 0, 0, 0, 0 } |
| 2129 | }; |
| 2130 | |
| 2131 | enum xtensa_operand_id { |
| 2132 | OPERAND_art, |
| 2133 | OPERAND_ars, |
| 2134 | OPERAND__ars_invisible, |
| 2135 | OPERAND_arr, |
| 2136 | OPERAND_ar0, |
| 2137 | OPERAND_soffsetx4, |
| 2138 | OPERAND_lsi4x4, |
| 2139 | OPERAND_simm7, |
| 2140 | OPERAND_uimm6, |
| 2141 | OPERAND_ai4const, |
| 2142 | OPERAND_b4const, |
| 2143 | OPERAND_b4constu, |
| 2144 | OPERAND_uimm8, |
| 2145 | OPERAND_uimm8x2, |
| 2146 | OPERAND_uimm8x4, |
| 2147 | OPERAND_uimm4x16, |
| 2148 | OPERAND_simm8, |
| 2149 | OPERAND_simm8x256, |
| 2150 | OPERAND_simm12b, |
| 2151 | OPERAND_msalp32, |
| 2152 | OPERAND_op2p1, |
| 2153 | OPERAND_label8, |
| 2154 | OPERAND_label12, |
| 2155 | OPERAND_soffset, |
| 2156 | OPERAND_uimm16x4, |
| 2157 | OPERAND_immt, |
| 2158 | OPERAND_imms, |
| 2159 | OPERAND_xt_wbr15_label, |
| 2160 | OPERAND_xt_wbr18_label, |
| 2161 | OPERAND_t, |
| 2162 | OPERAND_bbi4, |
| 2163 | OPERAND_bbi, |
| 2164 | OPERAND_imm12, |
| 2165 | OPERAND_imm8, |
| 2166 | OPERAND_s, |
| 2167 | OPERAND_imm12b, |
| 2168 | OPERAND_imm16, |
| 2169 | OPERAND_m, |
| 2170 | OPERAND_n, |
| 2171 | OPERAND_offset, |
| 2172 | OPERAND_op0, |
| 2173 | OPERAND_op1, |
| 2174 | OPERAND_op2, |
| 2175 | OPERAND_r, |
| 2176 | OPERAND_sa4, |
| 2177 | OPERAND_sae4, |
| 2178 | OPERAND_sae, |
| 2179 | OPERAND_sal, |
| 2180 | OPERAND_sargt, |
| 2181 | OPERAND_sas4, |
| 2182 | OPERAND_sas, |
| 2183 | OPERAND_sr, |
| 2184 | OPERAND_st, |
| 2185 | OPERAND_thi3, |
| 2186 | OPERAND_imm4, |
| 2187 | OPERAND_i, |
| 2188 | OPERAND_imm6lo, |
| 2189 | OPERAND_imm6hi, |
| 2190 | OPERAND_imm7lo, |
| 2191 | OPERAND_imm7hi, |
| 2192 | OPERAND_z, |
| 2193 | OPERAND_imm6, |
| 2194 | OPERAND_imm7, |
| 2195 | OPERAND_xt_wbr15_imm, |
| 2196 | OPERAND_xt_wbr18_imm |
| 2197 | }; |
| 2198 | |
| 2199 | |
| 2200 | /* Iclass table. */ |
| 2201 | |
| 2202 | static xtensa_arg_internal Iclass_xt_iclass_rfe_stateArgs[] = { |
| 2203 | { { STATE_PSEXCM }, 'o' }, |
| 2204 | { { STATE_EPC1 }, 'i' } |
| 2205 | }; |
| 2206 | |
| 2207 | static xtensa_arg_internal Iclass_xt_iclass_rfde_stateArgs[] = { |
| 2208 | { { STATE_DEPC }, 'i' } |
| 2209 | }; |
| 2210 | |
| 2211 | static xtensa_arg_internal Iclass_xt_iclass_add_n_args[] = { |
| 2212 | { { OPERAND_arr }, 'o' }, |
| 2213 | { { OPERAND_ars }, 'i' }, |
| 2214 | { { OPERAND_art }, 'i' } |
| 2215 | }; |
| 2216 | |
| 2217 | static xtensa_arg_internal Iclass_xt_iclass_addi_n_args[] = { |
| 2218 | { { OPERAND_arr }, 'o' }, |
| 2219 | { { OPERAND_ars }, 'i' }, |
| 2220 | { { OPERAND_ai4const }, 'i' } |
| 2221 | }; |
| 2222 | |
| 2223 | static xtensa_arg_internal Iclass_xt_iclass_bz6_args[] = { |
| 2224 | { { OPERAND_ars }, 'i' }, |
| 2225 | { { OPERAND_uimm6 }, 'i' } |
| 2226 | }; |
| 2227 | |
| 2228 | static xtensa_arg_internal Iclass_xt_iclass_loadi4_args[] = { |
| 2229 | { { OPERAND_art }, 'o' }, |
| 2230 | { { OPERAND_ars }, 'i' }, |
| 2231 | { { OPERAND_lsi4x4 }, 'i' } |
| 2232 | }; |
| 2233 | |
| 2234 | static xtensa_arg_internal Iclass_xt_iclass_mov_n_args[] = { |
| 2235 | { { OPERAND_art }, 'o' }, |
| 2236 | { { OPERAND_ars }, 'i' } |
| 2237 | }; |
| 2238 | |
| 2239 | static xtensa_arg_internal Iclass_xt_iclass_movi_n_args[] = { |
| 2240 | { { OPERAND_ars }, 'o' }, |
| 2241 | { { OPERAND_simm7 }, 'i' } |
| 2242 | }; |
| 2243 | |
| 2244 | static xtensa_arg_internal Iclass_xt_iclass_retn_args[] = { |
| 2245 | { { OPERAND__ars_invisible }, 'i' } |
| 2246 | }; |
| 2247 | |
| 2248 | static xtensa_arg_internal Iclass_xt_iclass_storei4_args[] = { |
| 2249 | { { OPERAND_art }, 'i' }, |
| 2250 | { { OPERAND_ars }, 'i' }, |
| 2251 | { { OPERAND_lsi4x4 }, 'i' } |
| 2252 | }; |
| 2253 | |
| 2254 | static xtensa_arg_internal Iclass_xt_iclass_addi_args[] = { |
| 2255 | { { OPERAND_art }, 'o' }, |
| 2256 | { { OPERAND_ars }, 'i' }, |
| 2257 | { { OPERAND_simm8 }, 'i' } |
| 2258 | }; |
| 2259 | |
| 2260 | static xtensa_arg_internal Iclass_xt_iclass_addmi_args[] = { |
| 2261 | { { OPERAND_art }, 'o' }, |
| 2262 | { { OPERAND_ars }, 'i' }, |
| 2263 | { { OPERAND_simm8x256 }, 'i' } |
| 2264 | }; |
| 2265 | |
| 2266 | static xtensa_arg_internal Iclass_xt_iclass_addsub_args[] = { |
| 2267 | { { OPERAND_arr }, 'o' }, |
| 2268 | { { OPERAND_ars }, 'i' }, |
| 2269 | { { OPERAND_art }, 'i' } |
| 2270 | }; |
| 2271 | |
| 2272 | static xtensa_arg_internal Iclass_xt_iclass_bit_args[] = { |
| 2273 | { { OPERAND_arr }, 'o' }, |
| 2274 | { { OPERAND_ars }, 'i' }, |
| 2275 | { { OPERAND_art }, 'i' } |
| 2276 | }; |
| 2277 | |
| 2278 | static xtensa_arg_internal Iclass_xt_iclass_bsi8_args[] = { |
| 2279 | { { OPERAND_ars }, 'i' }, |
| 2280 | { { OPERAND_b4const }, 'i' }, |
| 2281 | { { OPERAND_label8 }, 'i' } |
| 2282 | }; |
| 2283 | |
| 2284 | static xtensa_arg_internal Iclass_xt_iclass_bsi8b_args[] = { |
| 2285 | { { OPERAND_ars }, 'i' }, |
| 2286 | { { OPERAND_bbi }, 'i' }, |
| 2287 | { { OPERAND_label8 }, 'i' } |
| 2288 | }; |
| 2289 | |
| 2290 | static xtensa_arg_internal Iclass_xt_iclass_bsi8u_args[] = { |
| 2291 | { { OPERAND_ars }, 'i' }, |
| 2292 | { { OPERAND_b4constu }, 'i' }, |
| 2293 | { { OPERAND_label8 }, 'i' } |
| 2294 | }; |
| 2295 | |
| 2296 | static xtensa_arg_internal Iclass_xt_iclass_bst8_args[] = { |
| 2297 | { { OPERAND_ars }, 'i' }, |
| 2298 | { { OPERAND_art }, 'i' }, |
| 2299 | { { OPERAND_label8 }, 'i' } |
| 2300 | }; |
| 2301 | |
| 2302 | static xtensa_arg_internal Iclass_xt_iclass_bsz12_args[] = { |
| 2303 | { { OPERAND_ars }, 'i' }, |
| 2304 | { { OPERAND_label12 }, 'i' } |
| 2305 | }; |
| 2306 | |
| 2307 | static xtensa_arg_internal Iclass_xt_iclass_call0_args[] = { |
| 2308 | { { OPERAND_soffsetx4 }, 'i' }, |
| 2309 | { { OPERAND_ar0 }, 'o' } |
| 2310 | }; |
| 2311 | |
| 2312 | static xtensa_arg_internal Iclass_xt_iclass_callx0_args[] = { |
| 2313 | { { OPERAND_ars }, 'i' }, |
| 2314 | { { OPERAND_ar0 }, 'o' } |
| 2315 | }; |
| 2316 | |
| 2317 | static xtensa_arg_internal Iclass_xt_iclass_exti_args[] = { |
| 2318 | { { OPERAND_arr }, 'o' }, |
| 2319 | { { OPERAND_art }, 'i' }, |
| 2320 | { { OPERAND_sae }, 'i' }, |
| 2321 | { { OPERAND_op2p1 }, 'i' } |
| 2322 | }; |
| 2323 | |
| 2324 | static xtensa_arg_internal Iclass_xt_iclass_jump_args[] = { |
| 2325 | { { OPERAND_soffset }, 'i' } |
| 2326 | }; |
| 2327 | |
| 2328 | static xtensa_arg_internal Iclass_xt_iclass_jumpx_args[] = { |
| 2329 | { { OPERAND_ars }, 'i' } |
| 2330 | }; |
| 2331 | |
| 2332 | static xtensa_arg_internal Iclass_xt_iclass_l16ui_args[] = { |
| 2333 | { { OPERAND_art }, 'o' }, |
| 2334 | { { OPERAND_ars }, 'i' }, |
| 2335 | { { OPERAND_uimm8x2 }, 'i' } |
| 2336 | }; |
| 2337 | |
| 2338 | static xtensa_arg_internal Iclass_xt_iclass_l16si_args[] = { |
| 2339 | { { OPERAND_art }, 'o' }, |
| 2340 | { { OPERAND_ars }, 'i' }, |
| 2341 | { { OPERAND_uimm8x2 }, 'i' } |
| 2342 | }; |
| 2343 | |
| 2344 | static xtensa_arg_internal Iclass_xt_iclass_l32i_args[] = { |
| 2345 | { { OPERAND_art }, 'o' }, |
| 2346 | { { OPERAND_ars }, 'i' }, |
| 2347 | { { OPERAND_uimm8x4 }, 'i' } |
| 2348 | }; |
| 2349 | |
| 2350 | static xtensa_arg_internal Iclass_xt_iclass_l32r_args[] = { |
| 2351 | { { OPERAND_art }, 'o' }, |
| 2352 | { { OPERAND_uimm16x4 }, 'i' } |
| 2353 | }; |
| 2354 | |
| 2355 | static xtensa_arg_internal Iclass_xt_iclass_l32r_stateArgs[] = { |
| 2356 | { { STATE_LITBADDR }, 'i' }, |
| 2357 | { { STATE_LITBEN }, 'i' } |
| 2358 | }; |
| 2359 | |
| 2360 | static xtensa_arg_internal Iclass_xt_iclass_l8i_args[] = { |
| 2361 | { { OPERAND_art }, 'o' }, |
| 2362 | { { OPERAND_ars }, 'i' }, |
| 2363 | { { OPERAND_uimm8 }, 'i' } |
| 2364 | }; |
| 2365 | |
| 2366 | static xtensa_arg_internal Iclass_xt_iclass_movi_args[] = { |
| 2367 | { { OPERAND_art }, 'o' }, |
| 2368 | { { OPERAND_simm12b }, 'i' } |
| 2369 | }; |
| 2370 | |
| 2371 | static xtensa_arg_internal Iclass_xt_iclass_movz_args[] = { |
| 2372 | { { OPERAND_arr }, 'm' }, |
| 2373 | { { OPERAND_ars }, 'i' }, |
| 2374 | { { OPERAND_art }, 'i' } |
| 2375 | }; |
| 2376 | |
| 2377 | static xtensa_arg_internal Iclass_xt_iclass_neg_args[] = { |
| 2378 | { { OPERAND_arr }, 'o' }, |
| 2379 | { { OPERAND_art }, 'i' } |
| 2380 | }; |
| 2381 | |
| 2382 | static xtensa_arg_internal Iclass_xt_iclass_return_args[] = { |
| 2383 | { { OPERAND__ars_invisible }, 'i' } |
| 2384 | }; |
| 2385 | |
| 2386 | static xtensa_arg_internal Iclass_xt_iclass_s16i_args[] = { |
| 2387 | { { OPERAND_art }, 'i' }, |
| 2388 | { { OPERAND_ars }, 'i' }, |
| 2389 | { { OPERAND_uimm8x2 }, 'i' } |
| 2390 | }; |
| 2391 | |
| 2392 | static xtensa_arg_internal Iclass_xt_iclass_s32i_args[] = { |
| 2393 | { { OPERAND_art }, 'i' }, |
| 2394 | { { OPERAND_ars }, 'i' }, |
| 2395 | { { OPERAND_uimm8x4 }, 'i' } |
| 2396 | }; |
| 2397 | |
| 2398 | static xtensa_arg_internal Iclass_xt_iclass_s8i_args[] = { |
| 2399 | { { OPERAND_art }, 'i' }, |
| 2400 | { { OPERAND_ars }, 'i' }, |
| 2401 | { { OPERAND_uimm8 }, 'i' } |
| 2402 | }; |
| 2403 | |
| 2404 | static xtensa_arg_internal Iclass_xt_iclass_sar_args[] = { |
| 2405 | { { OPERAND_ars }, 'i' } |
| 2406 | }; |
| 2407 | |
| 2408 | static xtensa_arg_internal Iclass_xt_iclass_sar_stateArgs[] = { |
| 2409 | { { STATE_SAR }, 'o' } |
| 2410 | }; |
| 2411 | |
| 2412 | static xtensa_arg_internal Iclass_xt_iclass_sari_args[] = { |
| 2413 | { { OPERAND_sas }, 'i' } |
| 2414 | }; |
| 2415 | |
| 2416 | static xtensa_arg_internal Iclass_xt_iclass_sari_stateArgs[] = { |
| 2417 | { { STATE_SAR }, 'o' } |
| 2418 | }; |
| 2419 | |
| 2420 | static xtensa_arg_internal Iclass_xt_iclass_shifts_args[] = { |
| 2421 | { { OPERAND_arr }, 'o' }, |
| 2422 | { { OPERAND_ars }, 'i' } |
| 2423 | }; |
| 2424 | |
| 2425 | static xtensa_arg_internal Iclass_xt_iclass_shifts_stateArgs[] = { |
| 2426 | { { STATE_SAR }, 'i' } |
| 2427 | }; |
| 2428 | |
| 2429 | static xtensa_arg_internal Iclass_xt_iclass_shiftst_args[] = { |
| 2430 | { { OPERAND_arr }, 'o' }, |
| 2431 | { { OPERAND_ars }, 'i' }, |
| 2432 | { { OPERAND_art }, 'i' } |
| 2433 | }; |
| 2434 | |
| 2435 | static xtensa_arg_internal Iclass_xt_iclass_shiftst_stateArgs[] = { |
| 2436 | { { STATE_SAR }, 'i' } |
| 2437 | }; |
| 2438 | |
| 2439 | static xtensa_arg_internal Iclass_xt_iclass_shiftt_args[] = { |
| 2440 | { { OPERAND_arr }, 'o' }, |
| 2441 | { { OPERAND_art }, 'i' } |
| 2442 | }; |
| 2443 | |
| 2444 | static xtensa_arg_internal Iclass_xt_iclass_shiftt_stateArgs[] = { |
| 2445 | { { STATE_SAR }, 'i' } |
| 2446 | }; |
| 2447 | |
| 2448 | static xtensa_arg_internal Iclass_xt_iclass_slli_args[] = { |
| 2449 | { { OPERAND_arr }, 'o' }, |
| 2450 | { { OPERAND_ars }, 'i' }, |
| 2451 | { { OPERAND_msalp32 }, 'i' } |
| 2452 | }; |
| 2453 | |
| 2454 | static xtensa_arg_internal Iclass_xt_iclass_srai_args[] = { |
| 2455 | { { OPERAND_arr }, 'o' }, |
| 2456 | { { OPERAND_art }, 'i' }, |
| 2457 | { { OPERAND_sargt }, 'i' } |
| 2458 | }; |
| 2459 | |
| 2460 | static xtensa_arg_internal Iclass_xt_iclass_srli_args[] = { |
| 2461 | { { OPERAND_arr }, 'o' }, |
| 2462 | { { OPERAND_art }, 'i' }, |
| 2463 | { { OPERAND_s }, 'i' } |
| 2464 | }; |
| 2465 | |
| 2466 | static xtensa_arg_internal Iclass_xt_iclass_sync_stateArgs[] = { |
| 2467 | { { STATE_XTSYNC }, 'i' } |
| 2468 | }; |
| 2469 | |
| 2470 | static xtensa_arg_internal Iclass_xt_iclass_rsil_args[] = { |
| 2471 | { { OPERAND_art }, 'o' }, |
| 2472 | { { OPERAND_s }, 'i' } |
| 2473 | }; |
| 2474 | |
| 2475 | static xtensa_arg_internal Iclass_xt_iclass_rsil_stateArgs[] = { |
| 2476 | { { STATE_PSUM }, 'i' }, |
| 2477 | { { STATE_PSEXCM }, 'i' }, |
| 2478 | { { STATE_PSINTLEVEL }, 'm' } |
| 2479 | }; |
| 2480 | |
| 2481 | static xtensa_arg_internal Iclass_xt_iclass_rsr_sar_args[] = { |
| 2482 | { { OPERAND_art }, 'o' } |
| 2483 | }; |
| 2484 | |
| 2485 | static xtensa_arg_internal Iclass_xt_iclass_rsr_sar_stateArgs[] = { |
| 2486 | { { STATE_SAR }, 'i' } |
| 2487 | }; |
| 2488 | |
| 2489 | static xtensa_arg_internal Iclass_xt_iclass_wsr_sar_args[] = { |
| 2490 | { { OPERAND_art }, 'i' } |
| 2491 | }; |
| 2492 | |
| 2493 | static xtensa_arg_internal Iclass_xt_iclass_wsr_sar_stateArgs[] = { |
| 2494 | { { STATE_SAR }, 'o' }, |
| 2495 | { { STATE_XTSYNC }, 'o' } |
| 2496 | }; |
| 2497 | |
| 2498 | static xtensa_arg_internal Iclass_xt_iclass_xsr_sar_args[] = { |
| 2499 | { { OPERAND_art }, 'm' } |
| 2500 | }; |
| 2501 | |
| 2502 | static xtensa_arg_internal Iclass_xt_iclass_xsr_sar_stateArgs[] = { |
| 2503 | { { STATE_SAR }, 'm' } |
| 2504 | }; |
| 2505 | |
| 2506 | static xtensa_arg_internal Iclass_xt_iclass_rsr_litbase_args[] = { |
| 2507 | { { OPERAND_art }, 'o' } |
| 2508 | }; |
| 2509 | |
| 2510 | static xtensa_arg_internal Iclass_xt_iclass_rsr_litbase_stateArgs[] = { |
| 2511 | { { STATE_LITBADDR }, 'i' }, |
| 2512 | { { STATE_LITBEN }, 'i' } |
| 2513 | }; |
| 2514 | |
| 2515 | static xtensa_arg_internal Iclass_xt_iclass_wsr_litbase_args[] = { |
| 2516 | { { OPERAND_art }, 'i' } |
| 2517 | }; |
| 2518 | |
| 2519 | static xtensa_arg_internal Iclass_xt_iclass_wsr_litbase_stateArgs[] = { |
| 2520 | { { STATE_LITBADDR }, 'o' }, |
| 2521 | { { STATE_LITBEN }, 'o' } |
| 2522 | }; |
| 2523 | |
| 2524 | static xtensa_arg_internal Iclass_xt_iclass_xsr_litbase_args[] = { |
| 2525 | { { OPERAND_art }, 'm' } |
| 2526 | }; |
| 2527 | |
| 2528 | static xtensa_arg_internal Iclass_xt_iclass_xsr_litbase_stateArgs[] = { |
| 2529 | { { STATE_LITBADDR }, 'm' }, |
| 2530 | { { STATE_LITBEN }, 'm' } |
| 2531 | }; |
| 2532 | |
| 2533 | static xtensa_arg_internal Iclass_xt_iclass_rsr_176_args[] = { |
| 2534 | { { OPERAND_art }, 'o' } |
| 2535 | }; |
| 2536 | |
| 2537 | static xtensa_arg_internal Iclass_xt_iclass_wsr_176_args[] = { |
| 2538 | { { OPERAND_art }, 'i' } |
| 2539 | }; |
| 2540 | |
| 2541 | static xtensa_arg_internal Iclass_xt_iclass_rsr_208_args[] = { |
| 2542 | { { OPERAND_art }, 'o' } |
| 2543 | }; |
| 2544 | |
| 2545 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ps_args[] = { |
| 2546 | { { OPERAND_art }, 'o' } |
| 2547 | }; |
| 2548 | |
| 2549 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ps_stateArgs[] = { |
| 2550 | { { STATE_PSUM }, 'i' }, |
| 2551 | { { STATE_PSEXCM }, 'i' }, |
| 2552 | { { STATE_PSINTLEVEL }, 'i' } |
| 2553 | }; |
| 2554 | |
| 2555 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ps_args[] = { |
| 2556 | { { OPERAND_art }, 'i' } |
| 2557 | }; |
| 2558 | |
| 2559 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ps_stateArgs[] = { |
| 2560 | { { STATE_PSUM }, 'o' }, |
| 2561 | { { STATE_PSEXCM }, 'o' }, |
| 2562 | { { STATE_PSINTLEVEL }, 'o' } |
| 2563 | }; |
| 2564 | |
| 2565 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ps_args[] = { |
| 2566 | { { OPERAND_art }, 'm' } |
| 2567 | }; |
| 2568 | |
| 2569 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ps_stateArgs[] = { |
| 2570 | { { STATE_PSUM }, 'm' }, |
| 2571 | { { STATE_PSEXCM }, 'm' }, |
| 2572 | { { STATE_PSINTLEVEL }, 'm' } |
| 2573 | }; |
| 2574 | |
| 2575 | static xtensa_arg_internal Iclass_xt_iclass_rsr_epc1_args[] = { |
| 2576 | { { OPERAND_art }, 'o' } |
| 2577 | }; |
| 2578 | |
| 2579 | static xtensa_arg_internal Iclass_xt_iclass_rsr_epc1_stateArgs[] = { |
| 2580 | { { STATE_EPC1 }, 'i' } |
| 2581 | }; |
| 2582 | |
| 2583 | static xtensa_arg_internal Iclass_xt_iclass_wsr_epc1_args[] = { |
| 2584 | { { OPERAND_art }, 'i' } |
| 2585 | }; |
| 2586 | |
| 2587 | static xtensa_arg_internal Iclass_xt_iclass_wsr_epc1_stateArgs[] = { |
| 2588 | { { STATE_EPC1 }, 'o' } |
| 2589 | }; |
| 2590 | |
| 2591 | static xtensa_arg_internal Iclass_xt_iclass_xsr_epc1_args[] = { |
| 2592 | { { OPERAND_art }, 'm' } |
| 2593 | }; |
| 2594 | |
| 2595 | static xtensa_arg_internal Iclass_xt_iclass_xsr_epc1_stateArgs[] = { |
| 2596 | { { STATE_EPC1 }, 'm' } |
| 2597 | }; |
| 2598 | |
| 2599 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excsave1_args[] = { |
| 2600 | { { OPERAND_art }, 'o' } |
| 2601 | }; |
| 2602 | |
| 2603 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excsave1_stateArgs[] = { |
| 2604 | { { STATE_EXCSAVE1 }, 'i' } |
| 2605 | }; |
| 2606 | |
| 2607 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excsave1_args[] = { |
| 2608 | { { OPERAND_art }, 'i' } |
| 2609 | }; |
| 2610 | |
| 2611 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excsave1_stateArgs[] = { |
| 2612 | { { STATE_EXCSAVE1 }, 'o' } |
| 2613 | }; |
| 2614 | |
| 2615 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excsave1_args[] = { |
| 2616 | { { OPERAND_art }, 'm' } |
| 2617 | }; |
| 2618 | |
| 2619 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excsave1_stateArgs[] = { |
| 2620 | { { STATE_EXCSAVE1 }, 'm' } |
| 2621 | }; |
| 2622 | |
| 2623 | static xtensa_arg_internal Iclass_xt_iclass_rsr_epc2_args[] = { |
| 2624 | { { OPERAND_art }, 'o' } |
| 2625 | }; |
| 2626 | |
| 2627 | static xtensa_arg_internal Iclass_xt_iclass_rsr_epc2_stateArgs[] = { |
| 2628 | { { STATE_EPC2 }, 'i' } |
| 2629 | }; |
| 2630 | |
| 2631 | static xtensa_arg_internal Iclass_xt_iclass_wsr_epc2_args[] = { |
| 2632 | { { OPERAND_art }, 'i' } |
| 2633 | }; |
| 2634 | |
| 2635 | static xtensa_arg_internal Iclass_xt_iclass_wsr_epc2_stateArgs[] = { |
| 2636 | { { STATE_EPC2 }, 'o' } |
| 2637 | }; |
| 2638 | |
| 2639 | static xtensa_arg_internal Iclass_xt_iclass_xsr_epc2_args[] = { |
| 2640 | { { OPERAND_art }, 'm' } |
| 2641 | }; |
| 2642 | |
| 2643 | static xtensa_arg_internal Iclass_xt_iclass_xsr_epc2_stateArgs[] = { |
| 2644 | { { STATE_EPC2 }, 'm' } |
| 2645 | }; |
| 2646 | |
| 2647 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excsave2_args[] = { |
| 2648 | { { OPERAND_art }, 'o' } |
| 2649 | }; |
| 2650 | |
| 2651 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excsave2_stateArgs[] = { |
| 2652 | { { STATE_EXCSAVE2 }, 'i' } |
| 2653 | }; |
| 2654 | |
| 2655 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excsave2_args[] = { |
| 2656 | { { OPERAND_art }, 'i' } |
| 2657 | }; |
| 2658 | |
| 2659 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excsave2_stateArgs[] = { |
| 2660 | { { STATE_EXCSAVE2 }, 'o' } |
| 2661 | }; |
| 2662 | |
| 2663 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excsave2_args[] = { |
| 2664 | { { OPERAND_art }, 'm' } |
| 2665 | }; |
| 2666 | |
| 2667 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excsave2_stateArgs[] = { |
| 2668 | { { STATE_EXCSAVE2 }, 'm' } |
| 2669 | }; |
| 2670 | |
| 2671 | static xtensa_arg_internal Iclass_xt_iclass_rsr_epc3_args[] = { |
| 2672 | { { OPERAND_art }, 'o' } |
| 2673 | }; |
| 2674 | |
| 2675 | static xtensa_arg_internal Iclass_xt_iclass_rsr_epc3_stateArgs[] = { |
| 2676 | { { STATE_EPC3 }, 'i' } |
| 2677 | }; |
| 2678 | |
| 2679 | static xtensa_arg_internal Iclass_xt_iclass_wsr_epc3_args[] = { |
| 2680 | { { OPERAND_art }, 'i' } |
| 2681 | }; |
| 2682 | |
| 2683 | static xtensa_arg_internal Iclass_xt_iclass_wsr_epc3_stateArgs[] = { |
| 2684 | { { STATE_EPC3 }, 'o' } |
| 2685 | }; |
| 2686 | |
| 2687 | static xtensa_arg_internal Iclass_xt_iclass_xsr_epc3_args[] = { |
| 2688 | { { OPERAND_art }, 'm' } |
| 2689 | }; |
| 2690 | |
| 2691 | static xtensa_arg_internal Iclass_xt_iclass_xsr_epc3_stateArgs[] = { |
| 2692 | { { STATE_EPC3 }, 'm' } |
| 2693 | }; |
| 2694 | |
| 2695 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excsave3_args[] = { |
| 2696 | { { OPERAND_art }, 'o' } |
| 2697 | }; |
| 2698 | |
| 2699 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excsave3_stateArgs[] = { |
| 2700 | { { STATE_EXCSAVE3 }, 'i' } |
| 2701 | }; |
| 2702 | |
| 2703 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excsave3_args[] = { |
| 2704 | { { OPERAND_art }, 'i' } |
| 2705 | }; |
| 2706 | |
| 2707 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excsave3_stateArgs[] = { |
| 2708 | { { STATE_EXCSAVE3 }, 'o' } |
| 2709 | }; |
| 2710 | |
| 2711 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excsave3_args[] = { |
| 2712 | { { OPERAND_art }, 'm' } |
| 2713 | }; |
| 2714 | |
| 2715 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excsave3_stateArgs[] = { |
| 2716 | { { STATE_EXCSAVE3 }, 'm' } |
| 2717 | }; |
| 2718 | |
| 2719 | static xtensa_arg_internal Iclass_xt_iclass_rsr_eps2_args[] = { |
| 2720 | { { OPERAND_art }, 'o' } |
| 2721 | }; |
| 2722 | |
| 2723 | static xtensa_arg_internal Iclass_xt_iclass_rsr_eps2_stateArgs[] = { |
| 2724 | { { STATE_EPS2 }, 'i' } |
| 2725 | }; |
| 2726 | |
| 2727 | static xtensa_arg_internal Iclass_xt_iclass_wsr_eps2_args[] = { |
| 2728 | { { OPERAND_art }, 'i' } |
| 2729 | }; |
| 2730 | |
| 2731 | static xtensa_arg_internal Iclass_xt_iclass_wsr_eps2_stateArgs[] = { |
| 2732 | { { STATE_EPS2 }, 'o' } |
| 2733 | }; |
| 2734 | |
| 2735 | static xtensa_arg_internal Iclass_xt_iclass_xsr_eps2_args[] = { |
| 2736 | { { OPERAND_art }, 'm' } |
| 2737 | }; |
| 2738 | |
| 2739 | static xtensa_arg_internal Iclass_xt_iclass_xsr_eps2_stateArgs[] = { |
| 2740 | { { STATE_EPS2 }, 'm' } |
| 2741 | }; |
| 2742 | |
| 2743 | static xtensa_arg_internal Iclass_xt_iclass_rsr_eps3_args[] = { |
| 2744 | { { OPERAND_art }, 'o' } |
| 2745 | }; |
| 2746 | |
| 2747 | static xtensa_arg_internal Iclass_xt_iclass_rsr_eps3_stateArgs[] = { |
| 2748 | { { STATE_EPS3 }, 'i' } |
| 2749 | }; |
| 2750 | |
| 2751 | static xtensa_arg_internal Iclass_xt_iclass_wsr_eps3_args[] = { |
| 2752 | { { OPERAND_art }, 'i' } |
| 2753 | }; |
| 2754 | |
| 2755 | static xtensa_arg_internal Iclass_xt_iclass_wsr_eps3_stateArgs[] = { |
| 2756 | { { STATE_EPS3 }, 'o' } |
| 2757 | }; |
| 2758 | |
| 2759 | static xtensa_arg_internal Iclass_xt_iclass_xsr_eps3_args[] = { |
| 2760 | { { OPERAND_art }, 'm' } |
| 2761 | }; |
| 2762 | |
| 2763 | static xtensa_arg_internal Iclass_xt_iclass_xsr_eps3_stateArgs[] = { |
| 2764 | { { STATE_EPS3 }, 'm' } |
| 2765 | }; |
| 2766 | |
| 2767 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excvaddr_args[] = { |
| 2768 | { { OPERAND_art }, 'o' } |
| 2769 | }; |
| 2770 | |
| 2771 | static xtensa_arg_internal Iclass_xt_iclass_rsr_excvaddr_stateArgs[] = { |
| 2772 | { { STATE_EXCVADDR }, 'i' } |
| 2773 | }; |
| 2774 | |
| 2775 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excvaddr_args[] = { |
| 2776 | { { OPERAND_art }, 'i' } |
| 2777 | }; |
| 2778 | |
| 2779 | static xtensa_arg_internal Iclass_xt_iclass_wsr_excvaddr_stateArgs[] = { |
| 2780 | { { STATE_EXCVADDR }, 'o' } |
| 2781 | }; |
| 2782 | |
| 2783 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excvaddr_args[] = { |
| 2784 | { { OPERAND_art }, 'm' } |
| 2785 | }; |
| 2786 | |
| 2787 | static xtensa_arg_internal Iclass_xt_iclass_xsr_excvaddr_stateArgs[] = { |
| 2788 | { { STATE_EXCVADDR }, 'm' } |
| 2789 | }; |
| 2790 | |
| 2791 | static xtensa_arg_internal Iclass_xt_iclass_rsr_depc_args[] = { |
| 2792 | { { OPERAND_art }, 'o' } |
| 2793 | }; |
| 2794 | |
| 2795 | static xtensa_arg_internal Iclass_xt_iclass_rsr_depc_stateArgs[] = { |
| 2796 | { { STATE_DEPC }, 'i' } |
| 2797 | }; |
| 2798 | |
| 2799 | static xtensa_arg_internal Iclass_xt_iclass_wsr_depc_args[] = { |
| 2800 | { { OPERAND_art }, 'i' } |
| 2801 | }; |
| 2802 | |
| 2803 | static xtensa_arg_internal Iclass_xt_iclass_wsr_depc_stateArgs[] = { |
| 2804 | { { STATE_DEPC }, 'o' } |
| 2805 | }; |
| 2806 | |
| 2807 | static xtensa_arg_internal Iclass_xt_iclass_xsr_depc_args[] = { |
| 2808 | { { OPERAND_art }, 'm' } |
| 2809 | }; |
| 2810 | |
| 2811 | static xtensa_arg_internal Iclass_xt_iclass_xsr_depc_stateArgs[] = { |
| 2812 | { { STATE_DEPC }, 'm' } |
| 2813 | }; |
| 2814 | |
| 2815 | static xtensa_arg_internal Iclass_xt_iclass_rsr_exccause_args[] = { |
| 2816 | { { OPERAND_art }, 'o' } |
| 2817 | }; |
| 2818 | |
| 2819 | static xtensa_arg_internal Iclass_xt_iclass_rsr_exccause_stateArgs[] = { |
| 2820 | { { STATE_EXCCAUSE }, 'i' }, |
| 2821 | { { STATE_XTSYNC }, 'i' } |
| 2822 | }; |
| 2823 | |
| 2824 | static xtensa_arg_internal Iclass_xt_iclass_wsr_exccause_args[] = { |
| 2825 | { { OPERAND_art }, 'i' } |
| 2826 | }; |
| 2827 | |
| 2828 | static xtensa_arg_internal Iclass_xt_iclass_wsr_exccause_stateArgs[] = { |
| 2829 | { { STATE_EXCCAUSE }, 'o' } |
| 2830 | }; |
| 2831 | |
| 2832 | static xtensa_arg_internal Iclass_xt_iclass_xsr_exccause_args[] = { |
| 2833 | { { OPERAND_art }, 'm' } |
| 2834 | }; |
| 2835 | |
| 2836 | static xtensa_arg_internal Iclass_xt_iclass_xsr_exccause_stateArgs[] = { |
| 2837 | { { STATE_EXCCAUSE }, 'm' } |
| 2838 | }; |
| 2839 | |
| 2840 | static xtensa_arg_internal Iclass_xt_iclass_rsr_prid_args[] = { |
| 2841 | { { OPERAND_art }, 'o' } |
| 2842 | }; |
| 2843 | |
| 2844 | static xtensa_arg_internal Iclass_xt_iclass_rsr_vecbase_args[] = { |
| 2845 | { { OPERAND_art }, 'o' } |
| 2846 | }; |
| 2847 | |
| 2848 | static xtensa_arg_internal Iclass_xt_iclass_rsr_vecbase_stateArgs[] = { |
| 2849 | { { STATE_VECBASE }, 'i' } |
| 2850 | }; |
| 2851 | |
| 2852 | static xtensa_arg_internal Iclass_xt_iclass_wsr_vecbase_args[] = { |
| 2853 | { { OPERAND_art }, 'i' } |
| 2854 | }; |
| 2855 | |
| 2856 | static xtensa_arg_internal Iclass_xt_iclass_wsr_vecbase_stateArgs[] = { |
| 2857 | { { STATE_VECBASE }, 'o' } |
| 2858 | }; |
| 2859 | |
| 2860 | static xtensa_arg_internal Iclass_xt_iclass_xsr_vecbase_args[] = { |
| 2861 | { { OPERAND_art }, 'm' } |
| 2862 | }; |
| 2863 | |
| 2864 | static xtensa_arg_internal Iclass_xt_iclass_xsr_vecbase_stateArgs[] = { |
| 2865 | { { STATE_VECBASE }, 'm' } |
| 2866 | }; |
| 2867 | |
| 2868 | static xtensa_arg_internal Iclass_xt_mul16_args[] = { |
| 2869 | { { OPERAND_arr }, 'o' }, |
| 2870 | { { OPERAND_ars }, 'i' }, |
| 2871 | { { OPERAND_art }, 'i' } |
| 2872 | }; |
| 2873 | |
| 2874 | static xtensa_arg_internal Iclass_xt_mul32_args[] = { |
| 2875 | { { OPERAND_arr }, 'o' }, |
| 2876 | { { OPERAND_ars }, 'i' }, |
| 2877 | { { OPERAND_art }, 'i' } |
| 2878 | }; |
| 2879 | |
| 2880 | static xtensa_arg_internal Iclass_xt_iclass_rfi_args[] = { |
| 2881 | { { OPERAND_s }, 'i' } |
| 2882 | }; |
| 2883 | |
| 2884 | static xtensa_arg_internal Iclass_xt_iclass_rfi_stateArgs[] = { |
| 2885 | { { STATE_PSUM }, 'o' }, |
| 2886 | { { STATE_PSEXCM }, 'o' }, |
| 2887 | { { STATE_PSINTLEVEL }, 'o' }, |
| 2888 | { { STATE_EPC1 }, 'i' }, |
| 2889 | { { STATE_EPC2 }, 'i' }, |
| 2890 | { { STATE_EPC3 }, 'i' }, |
| 2891 | { { STATE_EPS2 }, 'i' }, |
| 2892 | { { STATE_EPS3 }, 'i' }, |
| 2893 | { { STATE_InOCDMode }, 'm' } |
| 2894 | }; |
| 2895 | |
| 2896 | static xtensa_arg_internal Iclass_xt_iclass_wait_args[] = { |
| 2897 | { { OPERAND_s }, 'i' } |
| 2898 | }; |
| 2899 | |
| 2900 | static xtensa_arg_internal Iclass_xt_iclass_wait_stateArgs[] = { |
| 2901 | { { STATE_PSINTLEVEL }, 'o' } |
| 2902 | }; |
| 2903 | |
| 2904 | static xtensa_arg_internal Iclass_xt_iclass_rsr_interrupt_args[] = { |
| 2905 | { { OPERAND_art }, 'o' } |
| 2906 | }; |
| 2907 | |
| 2908 | static xtensa_arg_internal Iclass_xt_iclass_rsr_interrupt_stateArgs[] = { |
| 2909 | { { STATE_INTERRUPT }, 'i' } |
| 2910 | }; |
| 2911 | |
| 2912 | static xtensa_arg_internal Iclass_xt_iclass_wsr_intset_args[] = { |
| 2913 | { { OPERAND_art }, 'i' } |
| 2914 | }; |
| 2915 | |
| 2916 | static xtensa_arg_internal Iclass_xt_iclass_wsr_intset_stateArgs[] = { |
| 2917 | { { STATE_XTSYNC }, 'o' }, |
| 2918 | { { STATE_INTERRUPT }, 'm' } |
| 2919 | }; |
| 2920 | |
| 2921 | static xtensa_arg_internal Iclass_xt_iclass_wsr_intclear_args[] = { |
| 2922 | { { OPERAND_art }, 'i' } |
| 2923 | }; |
| 2924 | |
| 2925 | static xtensa_arg_internal Iclass_xt_iclass_wsr_intclear_stateArgs[] = { |
| 2926 | { { STATE_XTSYNC }, 'o' }, |
| 2927 | { { STATE_INTERRUPT }, 'm' } |
| 2928 | }; |
| 2929 | |
| 2930 | static xtensa_arg_internal Iclass_xt_iclass_rsr_intenable_args[] = { |
| 2931 | { { OPERAND_art }, 'o' } |
| 2932 | }; |
| 2933 | |
| 2934 | static xtensa_arg_internal Iclass_xt_iclass_rsr_intenable_stateArgs[] = { |
| 2935 | { { STATE_INTENABLE }, 'i' } |
| 2936 | }; |
| 2937 | |
| 2938 | static xtensa_arg_internal Iclass_xt_iclass_wsr_intenable_args[] = { |
| 2939 | { { OPERAND_art }, 'i' } |
| 2940 | }; |
| 2941 | |
| 2942 | static xtensa_arg_internal Iclass_xt_iclass_wsr_intenable_stateArgs[] = { |
| 2943 | { { STATE_INTENABLE }, 'o' } |
| 2944 | }; |
| 2945 | |
| 2946 | static xtensa_arg_internal Iclass_xt_iclass_xsr_intenable_args[] = { |
| 2947 | { { OPERAND_art }, 'm' } |
| 2948 | }; |
| 2949 | |
| 2950 | static xtensa_arg_internal Iclass_xt_iclass_xsr_intenable_stateArgs[] = { |
| 2951 | { { STATE_INTENABLE }, 'm' } |
| 2952 | }; |
| 2953 | |
| 2954 | static xtensa_arg_internal Iclass_xt_iclass_break_args[] = { |
| 2955 | { { OPERAND_imms }, 'i' }, |
| 2956 | { { OPERAND_immt }, 'i' } |
| 2957 | }; |
| 2958 | |
| 2959 | static xtensa_arg_internal Iclass_xt_iclass_break_stateArgs[] = { |
| 2960 | { { STATE_PSEXCM }, 'i' }, |
| 2961 | { { STATE_PSINTLEVEL }, 'i' } |
| 2962 | }; |
| 2963 | |
| 2964 | static xtensa_arg_internal Iclass_xt_iclass_break_n_args[] = { |
| 2965 | { { OPERAND_imms }, 'i' } |
| 2966 | }; |
| 2967 | |
| 2968 | static xtensa_arg_internal Iclass_xt_iclass_break_n_stateArgs[] = { |
| 2969 | { { STATE_PSEXCM }, 'i' }, |
| 2970 | { { STATE_PSINTLEVEL }, 'i' } |
| 2971 | }; |
| 2972 | |
| 2973 | static xtensa_arg_internal Iclass_xt_iclass_rsr_dbreaka0_args[] = { |
| 2974 | { { OPERAND_art }, 'o' } |
| 2975 | }; |
| 2976 | |
| 2977 | static xtensa_arg_internal Iclass_xt_iclass_rsr_dbreaka0_stateArgs[] = { |
| 2978 | { { STATE_DBREAKA0 }, 'i' } |
| 2979 | }; |
| 2980 | |
| 2981 | static xtensa_arg_internal Iclass_xt_iclass_wsr_dbreaka0_args[] = { |
| 2982 | { { OPERAND_art }, 'i' } |
| 2983 | }; |
| 2984 | |
| 2985 | static xtensa_arg_internal Iclass_xt_iclass_wsr_dbreaka0_stateArgs[] = { |
| 2986 | { { STATE_DBREAKA0 }, 'o' }, |
| 2987 | { { STATE_XTSYNC }, 'o' } |
| 2988 | }; |
| 2989 | |
| 2990 | static xtensa_arg_internal Iclass_xt_iclass_xsr_dbreaka0_args[] = { |
| 2991 | { { OPERAND_art }, 'm' } |
| 2992 | }; |
| 2993 | |
| 2994 | static xtensa_arg_internal Iclass_xt_iclass_xsr_dbreaka0_stateArgs[] = { |
| 2995 | { { STATE_DBREAKA0 }, 'm' }, |
| 2996 | { { STATE_XTSYNC }, 'o' } |
| 2997 | }; |
| 2998 | |
| 2999 | static xtensa_arg_internal Iclass_xt_iclass_rsr_dbreakc0_args[] = { |
| 3000 | { { OPERAND_art }, 'o' } |
| 3001 | }; |
| 3002 | |
| 3003 | static xtensa_arg_internal Iclass_xt_iclass_rsr_dbreakc0_stateArgs[] = { |
| 3004 | { { STATE_DBREAKC0 }, 'i' } |
| 3005 | }; |
| 3006 | |
| 3007 | static xtensa_arg_internal Iclass_xt_iclass_wsr_dbreakc0_args[] = { |
| 3008 | { { OPERAND_art }, 'i' } |
| 3009 | }; |
| 3010 | |
| 3011 | static xtensa_arg_internal Iclass_xt_iclass_wsr_dbreakc0_stateArgs[] = { |
| 3012 | { { STATE_DBREAKC0 }, 'o' }, |
| 3013 | { { STATE_XTSYNC }, 'o' } |
| 3014 | }; |
| 3015 | |
| 3016 | static xtensa_arg_internal Iclass_xt_iclass_xsr_dbreakc0_args[] = { |
| 3017 | { { OPERAND_art }, 'm' } |
| 3018 | }; |
| 3019 | |
| 3020 | static xtensa_arg_internal Iclass_xt_iclass_xsr_dbreakc0_stateArgs[] = { |
| 3021 | { { STATE_DBREAKC0 }, 'm' }, |
| 3022 | { { STATE_XTSYNC }, 'o' } |
| 3023 | }; |
| 3024 | |
| 3025 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ibreaka0_args[] = { |
| 3026 | { { OPERAND_art }, 'o' } |
| 3027 | }; |
| 3028 | |
| 3029 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ibreaka0_stateArgs[] = { |
| 3030 | { { STATE_IBREAKA0 }, 'i' } |
| 3031 | }; |
| 3032 | |
| 3033 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ibreaka0_args[] = { |
| 3034 | { { OPERAND_art }, 'i' } |
| 3035 | }; |
| 3036 | |
| 3037 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ibreaka0_stateArgs[] = { |
| 3038 | { { STATE_IBREAKA0 }, 'o' } |
| 3039 | }; |
| 3040 | |
| 3041 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ibreaka0_args[] = { |
| 3042 | { { OPERAND_art }, 'm' } |
| 3043 | }; |
| 3044 | |
| 3045 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ibreaka0_stateArgs[] = { |
| 3046 | { { STATE_IBREAKA0 }, 'm' } |
| 3047 | }; |
| 3048 | |
| 3049 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ibreakenable_args[] = { |
| 3050 | { { OPERAND_art }, 'o' } |
| 3051 | }; |
| 3052 | |
| 3053 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ibreakenable_stateArgs[] = { |
| 3054 | { { STATE_IBREAKENABLE }, 'i' } |
| 3055 | }; |
| 3056 | |
| 3057 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ibreakenable_args[] = { |
| 3058 | { { OPERAND_art }, 'i' } |
| 3059 | }; |
| 3060 | |
| 3061 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ibreakenable_stateArgs[] = { |
| 3062 | { { STATE_IBREAKENABLE }, 'o' } |
| 3063 | }; |
| 3064 | |
| 3065 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ibreakenable_args[] = { |
| 3066 | { { OPERAND_art }, 'm' } |
| 3067 | }; |
| 3068 | |
| 3069 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ibreakenable_stateArgs[] = { |
| 3070 | { { STATE_IBREAKENABLE }, 'm' } |
| 3071 | }; |
| 3072 | |
| 3073 | static xtensa_arg_internal Iclass_xt_iclass_rsr_debugcause_args[] = { |
| 3074 | { { OPERAND_art }, 'o' } |
| 3075 | }; |
| 3076 | |
| 3077 | static xtensa_arg_internal Iclass_xt_iclass_rsr_debugcause_stateArgs[] = { |
| 3078 | { { STATE_DEBUGCAUSE }, 'i' }, |
| 3079 | { { STATE_DBNUM }, 'i' } |
| 3080 | }; |
| 3081 | |
| 3082 | static xtensa_arg_internal Iclass_xt_iclass_wsr_debugcause_args[] = { |
| 3083 | { { OPERAND_art }, 'i' } |
| 3084 | }; |
| 3085 | |
| 3086 | static xtensa_arg_internal Iclass_xt_iclass_wsr_debugcause_stateArgs[] = { |
| 3087 | { { STATE_DEBUGCAUSE }, 'o' }, |
| 3088 | { { STATE_DBNUM }, 'o' } |
| 3089 | }; |
| 3090 | |
| 3091 | static xtensa_arg_internal Iclass_xt_iclass_xsr_debugcause_args[] = { |
| 3092 | { { OPERAND_art }, 'm' } |
| 3093 | }; |
| 3094 | |
| 3095 | static xtensa_arg_internal Iclass_xt_iclass_xsr_debugcause_stateArgs[] = { |
| 3096 | { { STATE_DEBUGCAUSE }, 'm' }, |
| 3097 | { { STATE_DBNUM }, 'm' } |
| 3098 | }; |
| 3099 | |
| 3100 | static xtensa_arg_internal Iclass_xt_iclass_rsr_icount_args[] = { |
| 3101 | { { OPERAND_art }, 'o' } |
| 3102 | }; |
| 3103 | |
| 3104 | static xtensa_arg_internal Iclass_xt_iclass_rsr_icount_stateArgs[] = { |
| 3105 | { { STATE_ICOUNT }, 'i' } |
| 3106 | }; |
| 3107 | |
| 3108 | static xtensa_arg_internal Iclass_xt_iclass_wsr_icount_args[] = { |
| 3109 | { { OPERAND_art }, 'i' } |
| 3110 | }; |
| 3111 | |
| 3112 | static xtensa_arg_internal Iclass_xt_iclass_wsr_icount_stateArgs[] = { |
| 3113 | { { STATE_XTSYNC }, 'o' }, |
| 3114 | { { STATE_ICOUNT }, 'o' } |
| 3115 | }; |
| 3116 | |
| 3117 | static xtensa_arg_internal Iclass_xt_iclass_xsr_icount_args[] = { |
| 3118 | { { OPERAND_art }, 'm' } |
| 3119 | }; |
| 3120 | |
| 3121 | static xtensa_arg_internal Iclass_xt_iclass_xsr_icount_stateArgs[] = { |
| 3122 | { { STATE_XTSYNC }, 'o' }, |
| 3123 | { { STATE_ICOUNT }, 'm' } |
| 3124 | }; |
| 3125 | |
| 3126 | static xtensa_arg_internal Iclass_xt_iclass_rsr_icountlevel_args[] = { |
| 3127 | { { OPERAND_art }, 'o' } |
| 3128 | }; |
| 3129 | |
| 3130 | static xtensa_arg_internal Iclass_xt_iclass_rsr_icountlevel_stateArgs[] = { |
| 3131 | { { STATE_ICOUNTLEVEL }, 'i' } |
| 3132 | }; |
| 3133 | |
| 3134 | static xtensa_arg_internal Iclass_xt_iclass_wsr_icountlevel_args[] = { |
| 3135 | { { OPERAND_art }, 'i' } |
| 3136 | }; |
| 3137 | |
| 3138 | static xtensa_arg_internal Iclass_xt_iclass_wsr_icountlevel_stateArgs[] = { |
| 3139 | { { STATE_ICOUNTLEVEL }, 'o' } |
| 3140 | }; |
| 3141 | |
| 3142 | static xtensa_arg_internal Iclass_xt_iclass_xsr_icountlevel_args[] = { |
| 3143 | { { OPERAND_art }, 'm' } |
| 3144 | }; |
| 3145 | |
| 3146 | static xtensa_arg_internal Iclass_xt_iclass_xsr_icountlevel_stateArgs[] = { |
| 3147 | { { STATE_ICOUNTLEVEL }, 'm' } |
| 3148 | }; |
| 3149 | |
| 3150 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ddr_args[] = { |
| 3151 | { { OPERAND_art }, 'o' } |
| 3152 | }; |
| 3153 | |
| 3154 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ddr_stateArgs[] = { |
| 3155 | { { STATE_DDR }, 'i' } |
| 3156 | }; |
| 3157 | |
| 3158 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ddr_args[] = { |
| 3159 | { { OPERAND_art }, 'i' } |
| 3160 | }; |
| 3161 | |
| 3162 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ddr_stateArgs[] = { |
| 3163 | { { STATE_XTSYNC }, 'o' }, |
| 3164 | { { STATE_DDR }, 'o' } |
| 3165 | }; |
| 3166 | |
| 3167 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ddr_args[] = { |
| 3168 | { { OPERAND_art }, 'm' } |
| 3169 | }; |
| 3170 | |
| 3171 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ddr_stateArgs[] = { |
| 3172 | { { STATE_XTSYNC }, 'o' }, |
| 3173 | { { STATE_DDR }, 'm' } |
| 3174 | }; |
| 3175 | |
| 3176 | static xtensa_arg_internal Iclass_xt_iclass_rfdo_args[] = { |
| 3177 | { { OPERAND_imms }, 'i' } |
| 3178 | }; |
| 3179 | |
| 3180 | static xtensa_arg_internal Iclass_xt_iclass_rfdo_stateArgs[] = { |
| 3181 | { { STATE_InOCDMode }, 'm' }, |
| 3182 | { { STATE_EPC2 }, 'i' }, |
| 3183 | { { STATE_PSUM }, 'o' }, |
| 3184 | { { STATE_PSEXCM }, 'o' }, |
| 3185 | { { STATE_PSINTLEVEL }, 'o' }, |
| 3186 | { { STATE_EPS2 }, 'i' } |
| 3187 | }; |
| 3188 | |
| 3189 | static xtensa_arg_internal Iclass_xt_iclass_rfdd_stateArgs[] = { |
| 3190 | { { STATE_InOCDMode }, 'm' } |
| 3191 | }; |
| 3192 | |
| 3193 | static xtensa_arg_internal Iclass_xt_iclass_wsr_mmid_args[] = { |
| 3194 | { { OPERAND_art }, 'i' } |
| 3195 | }; |
| 3196 | |
| 3197 | static xtensa_arg_internal Iclass_xt_iclass_wsr_mmid_stateArgs[] = { |
| 3198 | { { STATE_XTSYNC }, 'o' } |
| 3199 | }; |
| 3200 | |
| 3201 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ccount_args[] = { |
| 3202 | { { OPERAND_art }, 'o' } |
| 3203 | }; |
| 3204 | |
| 3205 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ccount_stateArgs[] = { |
| 3206 | { { STATE_CCOUNT }, 'i' } |
| 3207 | }; |
| 3208 | |
| 3209 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ccount_args[] = { |
| 3210 | { { OPERAND_art }, 'i' } |
| 3211 | }; |
| 3212 | |
| 3213 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ccount_stateArgs[] = { |
| 3214 | { { STATE_XTSYNC }, 'o' }, |
| 3215 | { { STATE_CCOUNT }, 'o' } |
| 3216 | }; |
| 3217 | |
| 3218 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ccount_args[] = { |
| 3219 | { { OPERAND_art }, 'm' } |
| 3220 | }; |
| 3221 | |
| 3222 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ccount_stateArgs[] = { |
| 3223 | { { STATE_XTSYNC }, 'o' }, |
| 3224 | { { STATE_CCOUNT }, 'm' } |
| 3225 | }; |
| 3226 | |
| 3227 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ccompare0_args[] = { |
| 3228 | { { OPERAND_art }, 'o' } |
| 3229 | }; |
| 3230 | |
| 3231 | static xtensa_arg_internal Iclass_xt_iclass_rsr_ccompare0_stateArgs[] = { |
| 3232 | { { STATE_CCOMPARE0 }, 'i' } |
| 3233 | }; |
| 3234 | |
| 3235 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ccompare0_args[] = { |
| 3236 | { { OPERAND_art }, 'i' } |
| 3237 | }; |
| 3238 | |
| 3239 | static xtensa_arg_internal Iclass_xt_iclass_wsr_ccompare0_stateArgs[] = { |
| 3240 | { { STATE_CCOMPARE0 }, 'o' }, |
| 3241 | { { STATE_INTERRUPT }, 'm' } |
| 3242 | }; |
| 3243 | |
| 3244 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ccompare0_args[] = { |
| 3245 | { { OPERAND_art }, 'm' } |
| 3246 | }; |
| 3247 | |
| 3248 | static xtensa_arg_internal Iclass_xt_iclass_xsr_ccompare0_stateArgs[] = { |
| 3249 | { { STATE_CCOMPARE0 }, 'm' }, |
| 3250 | { { STATE_INTERRUPT }, 'm' } |
| 3251 | }; |
| 3252 | |
| 3253 | static xtensa_arg_internal Iclass_xt_iclass_idtlb_args[] = { |
| 3254 | { { OPERAND_ars }, 'i' } |
| 3255 | }; |
| 3256 | |
| 3257 | static xtensa_arg_internal Iclass_xt_iclass_idtlb_stateArgs[] = { |
| 3258 | { { STATE_XTSYNC }, 'o' } |
| 3259 | }; |
| 3260 | |
| 3261 | static xtensa_arg_internal Iclass_xt_iclass_rdtlb_args[] = { |
| 3262 | { { OPERAND_art }, 'o' }, |
| 3263 | { { OPERAND_ars }, 'i' } |
| 3264 | }; |
| 3265 | |
| 3266 | static xtensa_arg_internal Iclass_xt_iclass_wdtlb_args[] = { |
| 3267 | { { OPERAND_art }, 'i' }, |
| 3268 | { { OPERAND_ars }, 'i' } |
| 3269 | }; |
| 3270 | |
| 3271 | static xtensa_arg_internal Iclass_xt_iclass_wdtlb_stateArgs[] = { |
| 3272 | { { STATE_XTSYNC }, 'o' } |
| 3273 | }; |
| 3274 | |
| 3275 | static xtensa_arg_internal Iclass_xt_iclass_iitlb_args[] = { |
| 3276 | { { OPERAND_ars }, 'i' } |
| 3277 | }; |
| 3278 | |
| 3279 | static xtensa_arg_internal Iclass_xt_iclass_ritlb_args[] = { |
| 3280 | { { OPERAND_art }, 'o' }, |
| 3281 | { { OPERAND_ars }, 'i' } |
| 3282 | }; |
| 3283 | |
| 3284 | static xtensa_arg_internal Iclass_xt_iclass_witlb_args[] = { |
| 3285 | { { OPERAND_art }, 'i' }, |
| 3286 | { { OPERAND_ars }, 'i' } |
| 3287 | }; |
| 3288 | |
| 3289 | static xtensa_arg_internal Iclass_xt_iclass_nsa_args[] = { |
| 3290 | { { OPERAND_art }, 'o' }, |
| 3291 | { { OPERAND_ars }, 'i' } |
| 3292 | }; |
| 3293 | |
| 3294 | static xtensa_iclass_internal iclasses[] = { |
| 3295 | { 0, 0 /* xt_iclass_excw */, |
| 3296 | 0, 0, 0, 0 }, |
| 3297 | { 0, 0 /* xt_iclass_rfe */, |
| 3298 | 2, Iclass_xt_iclass_rfe_stateArgs, 0, 0 }, |
| 3299 | { 0, 0 /* xt_iclass_rfde */, |
| 3300 | 1, Iclass_xt_iclass_rfde_stateArgs, 0, 0 }, |
| 3301 | { 0, 0 /* xt_iclass_syscall */, |
| 3302 | 0, 0, 0, 0 }, |
| 3303 | { 0, 0 /* xt_iclass_simcall */, |
| 3304 | 0, 0, 0, 0 }, |
| 3305 | { 3, Iclass_xt_iclass_add_n_args, |
| 3306 | 0, 0, 0, 0 }, |
| 3307 | { 3, Iclass_xt_iclass_addi_n_args, |
| 3308 | 0, 0, 0, 0 }, |
| 3309 | { 2, Iclass_xt_iclass_bz6_args, |
| 3310 | 0, 0, 0, 0 }, |
| 3311 | { 0, 0 /* xt_iclass_ill_n */, |
| 3312 | 0, 0, 0, 0 }, |
| 3313 | { 3, Iclass_xt_iclass_loadi4_args, |
| 3314 | 0, 0, 0, 0 }, |
| 3315 | { 2, Iclass_xt_iclass_mov_n_args, |
| 3316 | 0, 0, 0, 0 }, |
| 3317 | { 2, Iclass_xt_iclass_movi_n_args, |
| 3318 | 0, 0, 0, 0 }, |
| 3319 | { 0, 0 /* xt_iclass_nopn */, |
| 3320 | 0, 0, 0, 0 }, |
| 3321 | { 1, Iclass_xt_iclass_retn_args, |
| 3322 | 0, 0, 0, 0 }, |
| 3323 | { 3, Iclass_xt_iclass_storei4_args, |
| 3324 | 0, 0, 0, 0 }, |
| 3325 | { 3, Iclass_xt_iclass_addi_args, |
| 3326 | 0, 0, 0, 0 }, |
| 3327 | { 3, Iclass_xt_iclass_addmi_args, |
| 3328 | 0, 0, 0, 0 }, |
| 3329 | { 3, Iclass_xt_iclass_addsub_args, |
| 3330 | 0, 0, 0, 0 }, |
| 3331 | { 3, Iclass_xt_iclass_bit_args, |
| 3332 | 0, 0, 0, 0 }, |
| 3333 | { 3, Iclass_xt_iclass_bsi8_args, |
| 3334 | 0, 0, 0, 0 }, |
| 3335 | { 3, Iclass_xt_iclass_bsi8b_args, |
| 3336 | 0, 0, 0, 0 }, |
| 3337 | { 3, Iclass_xt_iclass_bsi8u_args, |
| 3338 | 0, 0, 0, 0 }, |
| 3339 | { 3, Iclass_xt_iclass_bst8_args, |
| 3340 | 0, 0, 0, 0 }, |
| 3341 | { 2, Iclass_xt_iclass_bsz12_args, |
| 3342 | 0, 0, 0, 0 }, |
| 3343 | { 2, Iclass_xt_iclass_call0_args, |
| 3344 | 0, 0, 0, 0 }, |
| 3345 | { 2, Iclass_xt_iclass_callx0_args, |
| 3346 | 0, 0, 0, 0 }, |
| 3347 | { 4, Iclass_xt_iclass_exti_args, |
| 3348 | 0, 0, 0, 0 }, |
| 3349 | { 0, 0 /* xt_iclass_ill */, |
| 3350 | 0, 0, 0, 0 }, |
| 3351 | { 1, Iclass_xt_iclass_jump_args, |
| 3352 | 0, 0, 0, 0 }, |
| 3353 | { 1, Iclass_xt_iclass_jumpx_args, |
| 3354 | 0, 0, 0, 0 }, |
| 3355 | { 3, Iclass_xt_iclass_l16ui_args, |
| 3356 | 0, 0, 0, 0 }, |
| 3357 | { 3, Iclass_xt_iclass_l16si_args, |
| 3358 | 0, 0, 0, 0 }, |
| 3359 | { 3, Iclass_xt_iclass_l32i_args, |
| 3360 | 0, 0, 0, 0 }, |
| 3361 | { 2, Iclass_xt_iclass_l32r_args, |
| 3362 | 2, Iclass_xt_iclass_l32r_stateArgs, 0, 0 }, |
| 3363 | { 3, Iclass_xt_iclass_l8i_args, |
| 3364 | 0, 0, 0, 0 }, |
| 3365 | { 2, Iclass_xt_iclass_movi_args, |
| 3366 | 0, 0, 0, 0 }, |
| 3367 | { 3, Iclass_xt_iclass_movz_args, |
| 3368 | 0, 0, 0, 0 }, |
| 3369 | { 2, Iclass_xt_iclass_neg_args, |
| 3370 | 0, 0, 0, 0 }, |
| 3371 | { 0, 0 /* xt_iclass_nop */, |
| 3372 | 0, 0, 0, 0 }, |
| 3373 | { 1, Iclass_xt_iclass_return_args, |
| 3374 | 0, 0, 0, 0 }, |
| 3375 | { 3, Iclass_xt_iclass_s16i_args, |
| 3376 | 0, 0, 0, 0 }, |
| 3377 | { 3, Iclass_xt_iclass_s32i_args, |
| 3378 | 0, 0, 0, 0 }, |
| 3379 | { 3, Iclass_xt_iclass_s8i_args, |
| 3380 | 0, 0, 0, 0 }, |
| 3381 | { 1, Iclass_xt_iclass_sar_args, |
| 3382 | 1, Iclass_xt_iclass_sar_stateArgs, 0, 0 }, |
| 3383 | { 1, Iclass_xt_iclass_sari_args, |
| 3384 | 1, Iclass_xt_iclass_sari_stateArgs, 0, 0 }, |
| 3385 | { 2, Iclass_xt_iclass_shifts_args, |
| 3386 | 1, Iclass_xt_iclass_shifts_stateArgs, 0, 0 }, |
| 3387 | { 3, Iclass_xt_iclass_shiftst_args, |
| 3388 | 1, Iclass_xt_iclass_shiftst_stateArgs, 0, 0 }, |
| 3389 | { 2, Iclass_xt_iclass_shiftt_args, |
| 3390 | 1, Iclass_xt_iclass_shiftt_stateArgs, 0, 0 }, |
| 3391 | { 3, Iclass_xt_iclass_slli_args, |
| 3392 | 0, 0, 0, 0 }, |
| 3393 | { 3, Iclass_xt_iclass_srai_args, |
| 3394 | 0, 0, 0, 0 }, |
| 3395 | { 3, Iclass_xt_iclass_srli_args, |
| 3396 | 0, 0, 0, 0 }, |
| 3397 | { 0, 0 /* xt_iclass_memw */, |
| 3398 | 0, 0, 0, 0 }, |
| 3399 | { 0, 0 /* xt_iclass_extw */, |
| 3400 | 0, 0, 0, 0 }, |
| 3401 | { 0, 0 /* xt_iclass_isync */, |
| 3402 | 0, 0, 0, 0 }, |
| 3403 | { 0, 0 /* xt_iclass_sync */, |
| 3404 | 1, Iclass_xt_iclass_sync_stateArgs, 0, 0 }, |
| 3405 | { 2, Iclass_xt_iclass_rsil_args, |
| 3406 | 3, Iclass_xt_iclass_rsil_stateArgs, 0, 0 }, |
| 3407 | { 1, Iclass_xt_iclass_rsr_sar_args, |
| 3408 | 1, Iclass_xt_iclass_rsr_sar_stateArgs, 0, 0 }, |
| 3409 | { 1, Iclass_xt_iclass_wsr_sar_args, |
| 3410 | 2, Iclass_xt_iclass_wsr_sar_stateArgs, 0, 0 }, |
| 3411 | { 1, Iclass_xt_iclass_xsr_sar_args, |
| 3412 | 1, Iclass_xt_iclass_xsr_sar_stateArgs, 0, 0 }, |
| 3413 | { 1, Iclass_xt_iclass_rsr_litbase_args, |
| 3414 | 2, Iclass_xt_iclass_rsr_litbase_stateArgs, 0, 0 }, |
| 3415 | { 1, Iclass_xt_iclass_wsr_litbase_args, |
| 3416 | 2, Iclass_xt_iclass_wsr_litbase_stateArgs, 0, 0 }, |
| 3417 | { 1, Iclass_xt_iclass_xsr_litbase_args, |
| 3418 | 2, Iclass_xt_iclass_xsr_litbase_stateArgs, 0, 0 }, |
| 3419 | { 1, Iclass_xt_iclass_rsr_176_args, |
| 3420 | 0, 0, 0, 0 }, |
| 3421 | { 1, Iclass_xt_iclass_wsr_176_args, |
| 3422 | 0, 0, 0, 0 }, |
| 3423 | { 1, Iclass_xt_iclass_rsr_208_args, |
| 3424 | 0, 0, 0, 0 }, |
| 3425 | { 1, Iclass_xt_iclass_rsr_ps_args, |
| 3426 | 3, Iclass_xt_iclass_rsr_ps_stateArgs, 0, 0 }, |
| 3427 | { 1, Iclass_xt_iclass_wsr_ps_args, |
| 3428 | 3, Iclass_xt_iclass_wsr_ps_stateArgs, 0, 0 }, |
| 3429 | { 1, Iclass_xt_iclass_xsr_ps_args, |
| 3430 | 3, Iclass_xt_iclass_xsr_ps_stateArgs, 0, 0 }, |
| 3431 | { 1, Iclass_xt_iclass_rsr_epc1_args, |
| 3432 | 1, Iclass_xt_iclass_rsr_epc1_stateArgs, 0, 0 }, |
| 3433 | { 1, Iclass_xt_iclass_wsr_epc1_args, |
| 3434 | 1, Iclass_xt_iclass_wsr_epc1_stateArgs, 0, 0 }, |
| 3435 | { 1, Iclass_xt_iclass_xsr_epc1_args, |
| 3436 | 1, Iclass_xt_iclass_xsr_epc1_stateArgs, 0, 0 }, |
| 3437 | { 1, Iclass_xt_iclass_rsr_excsave1_args, |
| 3438 | 1, Iclass_xt_iclass_rsr_excsave1_stateArgs, 0, 0 }, |
| 3439 | { 1, Iclass_xt_iclass_wsr_excsave1_args, |
| 3440 | 1, Iclass_xt_iclass_wsr_excsave1_stateArgs, 0, 0 }, |
| 3441 | { 1, Iclass_xt_iclass_xsr_excsave1_args, |
| 3442 | 1, Iclass_xt_iclass_xsr_excsave1_stateArgs, 0, 0 }, |
| 3443 | { 1, Iclass_xt_iclass_rsr_epc2_args, |
| 3444 | 1, Iclass_xt_iclass_rsr_epc2_stateArgs, 0, 0 }, |
| 3445 | { 1, Iclass_xt_iclass_wsr_epc2_args, |
| 3446 | 1, Iclass_xt_iclass_wsr_epc2_stateArgs, 0, 0 }, |
| 3447 | { 1, Iclass_xt_iclass_xsr_epc2_args, |
| 3448 | 1, Iclass_xt_iclass_xsr_epc2_stateArgs, 0, 0 }, |
| 3449 | { 1, Iclass_xt_iclass_rsr_excsave2_args, |
| 3450 | 1, Iclass_xt_iclass_rsr_excsave2_stateArgs, 0, 0 }, |
| 3451 | { 1, Iclass_xt_iclass_wsr_excsave2_args, |
| 3452 | 1, Iclass_xt_iclass_wsr_excsave2_stateArgs, 0, 0 }, |
| 3453 | { 1, Iclass_xt_iclass_xsr_excsave2_args, |
| 3454 | 1, Iclass_xt_iclass_xsr_excsave2_stateArgs, 0, 0 }, |
| 3455 | { 1, Iclass_xt_iclass_rsr_epc3_args, |
| 3456 | 1, Iclass_xt_iclass_rsr_epc3_stateArgs, 0, 0 }, |
| 3457 | { 1, Iclass_xt_iclass_wsr_epc3_args, |
| 3458 | 1, Iclass_xt_iclass_wsr_epc3_stateArgs, 0, 0 }, |
| 3459 | { 1, Iclass_xt_iclass_xsr_epc3_args, |
| 3460 | 1, Iclass_xt_iclass_xsr_epc3_stateArgs, 0, 0 }, |
| 3461 | { 1, Iclass_xt_iclass_rsr_excsave3_args, |
| 3462 | 1, Iclass_xt_iclass_rsr_excsave3_stateArgs, 0, 0 }, |
| 3463 | { 1, Iclass_xt_iclass_wsr_excsave3_args, |
| 3464 | 1, Iclass_xt_iclass_wsr_excsave3_stateArgs, 0, 0 }, |
| 3465 | { 1, Iclass_xt_iclass_xsr_excsave3_args, |
| 3466 | 1, Iclass_xt_iclass_xsr_excsave3_stateArgs, 0, 0 }, |
| 3467 | { 1, Iclass_xt_iclass_rsr_eps2_args, |
| 3468 | 1, Iclass_xt_iclass_rsr_eps2_stateArgs, 0, 0 }, |
| 3469 | { 1, Iclass_xt_iclass_wsr_eps2_args, |
| 3470 | 1, Iclass_xt_iclass_wsr_eps2_stateArgs, 0, 0 }, |
| 3471 | { 1, Iclass_xt_iclass_xsr_eps2_args, |
| 3472 | 1, Iclass_xt_iclass_xsr_eps2_stateArgs, 0, 0 }, |
| 3473 | { 1, Iclass_xt_iclass_rsr_eps3_args, |
| 3474 | 1, Iclass_xt_iclass_rsr_eps3_stateArgs, 0, 0 }, |
| 3475 | { 1, Iclass_xt_iclass_wsr_eps3_args, |
| 3476 | 1, Iclass_xt_iclass_wsr_eps3_stateArgs, 0, 0 }, |
| 3477 | { 1, Iclass_xt_iclass_xsr_eps3_args, |
| 3478 | 1, Iclass_xt_iclass_xsr_eps3_stateArgs, 0, 0 }, |
| 3479 | { 1, Iclass_xt_iclass_rsr_excvaddr_args, |
| 3480 | 1, Iclass_xt_iclass_rsr_excvaddr_stateArgs, 0, 0 }, |
| 3481 | { 1, Iclass_xt_iclass_wsr_excvaddr_args, |
| 3482 | 1, Iclass_xt_iclass_wsr_excvaddr_stateArgs, 0, 0 }, |
| 3483 | { 1, Iclass_xt_iclass_xsr_excvaddr_args, |
| 3484 | 1, Iclass_xt_iclass_xsr_excvaddr_stateArgs, 0, 0 }, |
| 3485 | { 1, Iclass_xt_iclass_rsr_depc_args, |
| 3486 | 1, Iclass_xt_iclass_rsr_depc_stateArgs, 0, 0 }, |
| 3487 | { 1, Iclass_xt_iclass_wsr_depc_args, |
| 3488 | 1, Iclass_xt_iclass_wsr_depc_stateArgs, 0, 0 }, |
| 3489 | { 1, Iclass_xt_iclass_xsr_depc_args, |
| 3490 | 1, Iclass_xt_iclass_xsr_depc_stateArgs, 0, 0 }, |
| 3491 | { 1, Iclass_xt_iclass_rsr_exccause_args, |
| 3492 | 2, Iclass_xt_iclass_rsr_exccause_stateArgs, 0, 0 }, |
| 3493 | { 1, Iclass_xt_iclass_wsr_exccause_args, |
| 3494 | 1, Iclass_xt_iclass_wsr_exccause_stateArgs, 0, 0 }, |
| 3495 | { 1, Iclass_xt_iclass_xsr_exccause_args, |
| 3496 | 1, Iclass_xt_iclass_xsr_exccause_stateArgs, 0, 0 }, |
| 3497 | { 1, Iclass_xt_iclass_rsr_prid_args, |
| 3498 | 0, 0, 0, 0 }, |
| 3499 | { 1, Iclass_xt_iclass_rsr_vecbase_args, |
| 3500 | 1, Iclass_xt_iclass_rsr_vecbase_stateArgs, 0, 0 }, |
| 3501 | { 1, Iclass_xt_iclass_wsr_vecbase_args, |
| 3502 | 1, Iclass_xt_iclass_wsr_vecbase_stateArgs, 0, 0 }, |
| 3503 | { 1, Iclass_xt_iclass_xsr_vecbase_args, |
| 3504 | 1, Iclass_xt_iclass_xsr_vecbase_stateArgs, 0, 0 }, |
| 3505 | { 3, Iclass_xt_mul16_args, |
| 3506 | 0, 0, 0, 0 }, |
| 3507 | { 3, Iclass_xt_mul32_args, |
| 3508 | 0, 0, 0, 0 }, |
| 3509 | { 1, Iclass_xt_iclass_rfi_args, |
| 3510 | 9, Iclass_xt_iclass_rfi_stateArgs, 0, 0 }, |
| 3511 | { 1, Iclass_xt_iclass_wait_args, |
| 3512 | 1, Iclass_xt_iclass_wait_stateArgs, 0, 0 }, |
| 3513 | { 1, Iclass_xt_iclass_rsr_interrupt_args, |
| 3514 | 1, Iclass_xt_iclass_rsr_interrupt_stateArgs, 0, 0 }, |
| 3515 | { 1, Iclass_xt_iclass_wsr_intset_args, |
| 3516 | 2, Iclass_xt_iclass_wsr_intset_stateArgs, 0, 0 }, |
| 3517 | { 1, Iclass_xt_iclass_wsr_intclear_args, |
| 3518 | 2, Iclass_xt_iclass_wsr_intclear_stateArgs, 0, 0 }, |
| 3519 | { 1, Iclass_xt_iclass_rsr_intenable_args, |
| 3520 | 1, Iclass_xt_iclass_rsr_intenable_stateArgs, 0, 0 }, |
| 3521 | { 1, Iclass_xt_iclass_wsr_intenable_args, |
| 3522 | 1, Iclass_xt_iclass_wsr_intenable_stateArgs, 0, 0 }, |
| 3523 | { 1, Iclass_xt_iclass_xsr_intenable_args, |
| 3524 | 1, Iclass_xt_iclass_xsr_intenable_stateArgs, 0, 0 }, |
| 3525 | { 2, Iclass_xt_iclass_break_args, |
| 3526 | 2, Iclass_xt_iclass_break_stateArgs, 0, 0 }, |
| 3527 | { 1, Iclass_xt_iclass_break_n_args, |
| 3528 | 2, Iclass_xt_iclass_break_n_stateArgs, 0, 0 }, |
| 3529 | { 1, Iclass_xt_iclass_rsr_dbreaka0_args, |
| 3530 | 1, Iclass_xt_iclass_rsr_dbreaka0_stateArgs, 0, 0 }, |
| 3531 | { 1, Iclass_xt_iclass_wsr_dbreaka0_args, |
| 3532 | 2, Iclass_xt_iclass_wsr_dbreaka0_stateArgs, 0, 0 }, |
| 3533 | { 1, Iclass_xt_iclass_xsr_dbreaka0_args, |
| 3534 | 2, Iclass_xt_iclass_xsr_dbreaka0_stateArgs, 0, 0 }, |
| 3535 | { 1, Iclass_xt_iclass_rsr_dbreakc0_args, |
| 3536 | 1, Iclass_xt_iclass_rsr_dbreakc0_stateArgs, 0, 0 }, |
| 3537 | { 1, Iclass_xt_iclass_wsr_dbreakc0_args, |
| 3538 | 2, Iclass_xt_iclass_wsr_dbreakc0_stateArgs, 0, 0 }, |
| 3539 | { 1, Iclass_xt_iclass_xsr_dbreakc0_args, |
| 3540 | 2, Iclass_xt_iclass_xsr_dbreakc0_stateArgs, 0, 0 }, |
| 3541 | { 1, Iclass_xt_iclass_rsr_ibreaka0_args, |
| 3542 | 1, Iclass_xt_iclass_rsr_ibreaka0_stateArgs, 0, 0 }, |
| 3543 | { 1, Iclass_xt_iclass_wsr_ibreaka0_args, |
| 3544 | 1, Iclass_xt_iclass_wsr_ibreaka0_stateArgs, 0, 0 }, |
| 3545 | { 1, Iclass_xt_iclass_xsr_ibreaka0_args, |
| 3546 | 1, Iclass_xt_iclass_xsr_ibreaka0_stateArgs, 0, 0 }, |
| 3547 | { 1, Iclass_xt_iclass_rsr_ibreakenable_args, |
| 3548 | 1, Iclass_xt_iclass_rsr_ibreakenable_stateArgs, 0, 0 }, |
| 3549 | { 1, Iclass_xt_iclass_wsr_ibreakenable_args, |
| 3550 | 1, Iclass_xt_iclass_wsr_ibreakenable_stateArgs, 0, 0 }, |
| 3551 | { 1, Iclass_xt_iclass_xsr_ibreakenable_args, |
| 3552 | 1, Iclass_xt_iclass_xsr_ibreakenable_stateArgs, 0, 0 }, |
| 3553 | { 1, Iclass_xt_iclass_rsr_debugcause_args, |
| 3554 | 2, Iclass_xt_iclass_rsr_debugcause_stateArgs, 0, 0 }, |
| 3555 | { 1, Iclass_xt_iclass_wsr_debugcause_args, |
| 3556 | 2, Iclass_xt_iclass_wsr_debugcause_stateArgs, 0, 0 }, |
| 3557 | { 1, Iclass_xt_iclass_xsr_debugcause_args, |
| 3558 | 2, Iclass_xt_iclass_xsr_debugcause_stateArgs, 0, 0 }, |
| 3559 | { 1, Iclass_xt_iclass_rsr_icount_args, |
| 3560 | 1, Iclass_xt_iclass_rsr_icount_stateArgs, 0, 0 }, |
| 3561 | { 1, Iclass_xt_iclass_wsr_icount_args, |
| 3562 | 2, Iclass_xt_iclass_wsr_icount_stateArgs, 0, 0 }, |
| 3563 | { 1, Iclass_xt_iclass_xsr_icount_args, |
| 3564 | 2, Iclass_xt_iclass_xsr_icount_stateArgs, 0, 0 }, |
| 3565 | { 1, Iclass_xt_iclass_rsr_icountlevel_args, |
| 3566 | 1, Iclass_xt_iclass_rsr_icountlevel_stateArgs, 0, 0 }, |
| 3567 | { 1, Iclass_xt_iclass_wsr_icountlevel_args, |
| 3568 | 1, Iclass_xt_iclass_wsr_icountlevel_stateArgs, 0, 0 }, |
| 3569 | { 1, Iclass_xt_iclass_xsr_icountlevel_args, |
| 3570 | 1, Iclass_xt_iclass_xsr_icountlevel_stateArgs, 0, 0 }, |
| 3571 | { 1, Iclass_xt_iclass_rsr_ddr_args, |
| 3572 | 1, Iclass_xt_iclass_rsr_ddr_stateArgs, 0, 0 }, |
| 3573 | { 1, Iclass_xt_iclass_wsr_ddr_args, |
| 3574 | 2, Iclass_xt_iclass_wsr_ddr_stateArgs, 0, 0 }, |
| 3575 | { 1, Iclass_xt_iclass_xsr_ddr_args, |
| 3576 | 2, Iclass_xt_iclass_xsr_ddr_stateArgs, 0, 0 }, |
| 3577 | { 1, Iclass_xt_iclass_rfdo_args, |
| 3578 | 6, Iclass_xt_iclass_rfdo_stateArgs, 0, 0 }, |
| 3579 | { 0, 0 /* xt_iclass_rfdd */, |
| 3580 | 1, Iclass_xt_iclass_rfdd_stateArgs, 0, 0 }, |
| 3581 | { 1, Iclass_xt_iclass_wsr_mmid_args, |
| 3582 | 1, Iclass_xt_iclass_wsr_mmid_stateArgs, 0, 0 }, |
| 3583 | { 1, Iclass_xt_iclass_rsr_ccount_args, |
| 3584 | 1, Iclass_xt_iclass_rsr_ccount_stateArgs, 0, 0 }, |
| 3585 | { 1, Iclass_xt_iclass_wsr_ccount_args, |
| 3586 | 2, Iclass_xt_iclass_wsr_ccount_stateArgs, 0, 0 }, |
| 3587 | { 1, Iclass_xt_iclass_xsr_ccount_args, |
| 3588 | 2, Iclass_xt_iclass_xsr_ccount_stateArgs, 0, 0 }, |
| 3589 | { 1, Iclass_xt_iclass_rsr_ccompare0_args, |
| 3590 | 1, Iclass_xt_iclass_rsr_ccompare0_stateArgs, 0, 0 }, |
| 3591 | { 1, Iclass_xt_iclass_wsr_ccompare0_args, |
| 3592 | 2, Iclass_xt_iclass_wsr_ccompare0_stateArgs, 0, 0 }, |
| 3593 | { 1, Iclass_xt_iclass_xsr_ccompare0_args, |
| 3594 | 2, Iclass_xt_iclass_xsr_ccompare0_stateArgs, 0, 0 }, |
| 3595 | { 1, Iclass_xt_iclass_idtlb_args, |
| 3596 | 1, Iclass_xt_iclass_idtlb_stateArgs, 0, 0 }, |
| 3597 | { 2, Iclass_xt_iclass_rdtlb_args, |
| 3598 | 0, 0, 0, 0 }, |
| 3599 | { 2, Iclass_xt_iclass_wdtlb_args, |
| 3600 | 1, Iclass_xt_iclass_wdtlb_stateArgs, 0, 0 }, |
| 3601 | { 1, Iclass_xt_iclass_iitlb_args, |
| 3602 | 0, 0, 0, 0 }, |
| 3603 | { 2, Iclass_xt_iclass_ritlb_args, |
| 3604 | 0, 0, 0, 0 }, |
| 3605 | { 2, Iclass_xt_iclass_witlb_args, |
| 3606 | 0, 0, 0, 0 }, |
| 3607 | { 2, Iclass_xt_iclass_nsa_args, |
| 3608 | 0, 0, 0, 0 }, |
| 3609 | { 0, 0 /* xt_iclass_rer */, |
| 3610 | 0, 0, 0, 0 }, |
| 3611 | { 0, 0 /* xt_iclass_wer */, |
| 3612 | 0, 0, 0, 0 } |
| 3613 | }; |
| 3614 | |
| 3615 | enum xtensa_iclass_id { |
| 3616 | ICLASS_xt_iclass_excw, |
| 3617 | ICLASS_xt_iclass_rfe, |
| 3618 | ICLASS_xt_iclass_rfde, |
| 3619 | ICLASS_xt_iclass_syscall, |
| 3620 | ICLASS_xt_iclass_simcall, |
| 3621 | ICLASS_xt_iclass_add_n, |
| 3622 | ICLASS_xt_iclass_addi_n, |
| 3623 | ICLASS_xt_iclass_bz6, |
| 3624 | ICLASS_xt_iclass_ill_n, |
| 3625 | ICLASS_xt_iclass_loadi4, |
| 3626 | ICLASS_xt_iclass_mov_n, |
| 3627 | ICLASS_xt_iclass_movi_n, |
| 3628 | ICLASS_xt_iclass_nopn, |
| 3629 | ICLASS_xt_iclass_retn, |
| 3630 | ICLASS_xt_iclass_storei4, |
| 3631 | ICLASS_xt_iclass_addi, |
| 3632 | ICLASS_xt_iclass_addmi, |
| 3633 | ICLASS_xt_iclass_addsub, |
| 3634 | ICLASS_xt_iclass_bit, |
| 3635 | ICLASS_xt_iclass_bsi8, |
| 3636 | ICLASS_xt_iclass_bsi8b, |
| 3637 | ICLASS_xt_iclass_bsi8u, |
| 3638 | ICLASS_xt_iclass_bst8, |
| 3639 | ICLASS_xt_iclass_bsz12, |
| 3640 | ICLASS_xt_iclass_call0, |
| 3641 | ICLASS_xt_iclass_callx0, |
| 3642 | ICLASS_xt_iclass_exti, |
| 3643 | ICLASS_xt_iclass_ill, |
| 3644 | ICLASS_xt_iclass_jump, |
| 3645 | ICLASS_xt_iclass_jumpx, |
| 3646 | ICLASS_xt_iclass_l16ui, |
| 3647 | ICLASS_xt_iclass_l16si, |
| 3648 | ICLASS_xt_iclass_l32i, |
| 3649 | ICLASS_xt_iclass_l32r, |
| 3650 | ICLASS_xt_iclass_l8i, |
| 3651 | ICLASS_xt_iclass_movi, |
| 3652 | ICLASS_xt_iclass_movz, |
| 3653 | ICLASS_xt_iclass_neg, |
| 3654 | ICLASS_xt_iclass_nop, |
| 3655 | ICLASS_xt_iclass_return, |
| 3656 | ICLASS_xt_iclass_s16i, |
| 3657 | ICLASS_xt_iclass_s32i, |
| 3658 | ICLASS_xt_iclass_s8i, |
| 3659 | ICLASS_xt_iclass_sar, |
| 3660 | ICLASS_xt_iclass_sari, |
| 3661 | ICLASS_xt_iclass_shifts, |
| 3662 | ICLASS_xt_iclass_shiftst, |
| 3663 | ICLASS_xt_iclass_shiftt, |
| 3664 | ICLASS_xt_iclass_slli, |
| 3665 | ICLASS_xt_iclass_srai, |
| 3666 | ICLASS_xt_iclass_srli, |
| 3667 | ICLASS_xt_iclass_memw, |
| 3668 | ICLASS_xt_iclass_extw, |
| 3669 | ICLASS_xt_iclass_isync, |
| 3670 | ICLASS_xt_iclass_sync, |
| 3671 | ICLASS_xt_iclass_rsil, |
| 3672 | ICLASS_xt_iclass_rsr_sar, |
| 3673 | ICLASS_xt_iclass_wsr_sar, |
| 3674 | ICLASS_xt_iclass_xsr_sar, |
| 3675 | ICLASS_xt_iclass_rsr_litbase, |
| 3676 | ICLASS_xt_iclass_wsr_litbase, |
| 3677 | ICLASS_xt_iclass_xsr_litbase, |
| 3678 | ICLASS_xt_iclass_rsr_176, |
| 3679 | ICLASS_xt_iclass_wsr_176, |
| 3680 | ICLASS_xt_iclass_rsr_208, |
| 3681 | ICLASS_xt_iclass_rsr_ps, |
| 3682 | ICLASS_xt_iclass_wsr_ps, |
| 3683 | ICLASS_xt_iclass_xsr_ps, |
| 3684 | ICLASS_xt_iclass_rsr_epc1, |
| 3685 | ICLASS_xt_iclass_wsr_epc1, |
| 3686 | ICLASS_xt_iclass_xsr_epc1, |
| 3687 | ICLASS_xt_iclass_rsr_excsave1, |
| 3688 | ICLASS_xt_iclass_wsr_excsave1, |
| 3689 | ICLASS_xt_iclass_xsr_excsave1, |
| 3690 | ICLASS_xt_iclass_rsr_epc2, |
| 3691 | ICLASS_xt_iclass_wsr_epc2, |
| 3692 | ICLASS_xt_iclass_xsr_epc2, |
| 3693 | ICLASS_xt_iclass_rsr_excsave2, |
| 3694 | ICLASS_xt_iclass_wsr_excsave2, |
| 3695 | ICLASS_xt_iclass_xsr_excsave2, |
| 3696 | ICLASS_xt_iclass_rsr_epc3, |
| 3697 | ICLASS_xt_iclass_wsr_epc3, |
| 3698 | ICLASS_xt_iclass_xsr_epc3, |
| 3699 | ICLASS_xt_iclass_rsr_excsave3, |
| 3700 | ICLASS_xt_iclass_wsr_excsave3, |
| 3701 | ICLASS_xt_iclass_xsr_excsave3, |
| 3702 | ICLASS_xt_iclass_rsr_eps2, |
| 3703 | ICLASS_xt_iclass_wsr_eps2, |
| 3704 | ICLASS_xt_iclass_xsr_eps2, |
| 3705 | ICLASS_xt_iclass_rsr_eps3, |
| 3706 | ICLASS_xt_iclass_wsr_eps3, |
| 3707 | ICLASS_xt_iclass_xsr_eps3, |
| 3708 | ICLASS_xt_iclass_rsr_excvaddr, |
| 3709 | ICLASS_xt_iclass_wsr_excvaddr, |
| 3710 | ICLASS_xt_iclass_xsr_excvaddr, |
| 3711 | ICLASS_xt_iclass_rsr_depc, |
| 3712 | ICLASS_xt_iclass_wsr_depc, |
| 3713 | ICLASS_xt_iclass_xsr_depc, |
| 3714 | ICLASS_xt_iclass_rsr_exccause, |
| 3715 | ICLASS_xt_iclass_wsr_exccause, |
| 3716 | ICLASS_xt_iclass_xsr_exccause, |
| 3717 | ICLASS_xt_iclass_rsr_prid, |
| 3718 | ICLASS_xt_iclass_rsr_vecbase, |
| 3719 | ICLASS_xt_iclass_wsr_vecbase, |
| 3720 | ICLASS_xt_iclass_xsr_vecbase, |
| 3721 | ICLASS_xt_mul16, |
| 3722 | ICLASS_xt_mul32, |
| 3723 | ICLASS_xt_iclass_rfi, |
| 3724 | ICLASS_xt_iclass_wait, |
| 3725 | ICLASS_xt_iclass_rsr_interrupt, |
| 3726 | ICLASS_xt_iclass_wsr_intset, |
| 3727 | ICLASS_xt_iclass_wsr_intclear, |
| 3728 | ICLASS_xt_iclass_rsr_intenable, |
| 3729 | ICLASS_xt_iclass_wsr_intenable, |
| 3730 | ICLASS_xt_iclass_xsr_intenable, |
| 3731 | ICLASS_xt_iclass_break, |
| 3732 | ICLASS_xt_iclass_break_n, |
| 3733 | ICLASS_xt_iclass_rsr_dbreaka0, |
| 3734 | ICLASS_xt_iclass_wsr_dbreaka0, |
| 3735 | ICLASS_xt_iclass_xsr_dbreaka0, |
| 3736 | ICLASS_xt_iclass_rsr_dbreakc0, |
| 3737 | ICLASS_xt_iclass_wsr_dbreakc0, |
| 3738 | ICLASS_xt_iclass_xsr_dbreakc0, |
| 3739 | ICLASS_xt_iclass_rsr_ibreaka0, |
| 3740 | ICLASS_xt_iclass_wsr_ibreaka0, |
| 3741 | ICLASS_xt_iclass_xsr_ibreaka0, |
| 3742 | ICLASS_xt_iclass_rsr_ibreakenable, |
| 3743 | ICLASS_xt_iclass_wsr_ibreakenable, |
| 3744 | ICLASS_xt_iclass_xsr_ibreakenable, |
| 3745 | ICLASS_xt_iclass_rsr_debugcause, |
| 3746 | ICLASS_xt_iclass_wsr_debugcause, |
| 3747 | ICLASS_xt_iclass_xsr_debugcause, |
| 3748 | ICLASS_xt_iclass_rsr_icount, |
| 3749 | ICLASS_xt_iclass_wsr_icount, |
| 3750 | ICLASS_xt_iclass_xsr_icount, |
| 3751 | ICLASS_xt_iclass_rsr_icountlevel, |
| 3752 | ICLASS_xt_iclass_wsr_icountlevel, |
| 3753 | ICLASS_xt_iclass_xsr_icountlevel, |
| 3754 | ICLASS_xt_iclass_rsr_ddr, |
| 3755 | ICLASS_xt_iclass_wsr_ddr, |
| 3756 | ICLASS_xt_iclass_xsr_ddr, |
| 3757 | ICLASS_xt_iclass_rfdo, |
| 3758 | ICLASS_xt_iclass_rfdd, |
| 3759 | ICLASS_xt_iclass_wsr_mmid, |
| 3760 | ICLASS_xt_iclass_rsr_ccount, |
| 3761 | ICLASS_xt_iclass_wsr_ccount, |
| 3762 | ICLASS_xt_iclass_xsr_ccount, |
| 3763 | ICLASS_xt_iclass_rsr_ccompare0, |
| 3764 | ICLASS_xt_iclass_wsr_ccompare0, |
| 3765 | ICLASS_xt_iclass_xsr_ccompare0, |
| 3766 | ICLASS_xt_iclass_idtlb, |
| 3767 | ICLASS_xt_iclass_rdtlb, |
| 3768 | ICLASS_xt_iclass_wdtlb, |
| 3769 | ICLASS_xt_iclass_iitlb, |
| 3770 | ICLASS_xt_iclass_ritlb, |
| 3771 | ICLASS_xt_iclass_witlb, |
| 3772 | ICLASS_xt_iclass_nsa, |
| 3773 | ICLASS_xt_iclass_rer, |
| 3774 | ICLASS_xt_iclass_wer |
| 3775 | }; |
| 3776 | |
| 3777 | |
| 3778 | /* Opcode encodings. */ |
| 3779 | |
| 3780 | static void |
| 3781 | Opcode_excw_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3782 | { |
| 3783 | slotbuf[0] = 0x2080; |
| 3784 | } |
| 3785 | |
| 3786 | static void |
| 3787 | Opcode_rfe_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3788 | { |
| 3789 | slotbuf[0] = 0x3000; |
| 3790 | } |
| 3791 | |
| 3792 | static void |
| 3793 | Opcode_rfde_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3794 | { |
| 3795 | slotbuf[0] = 0x3200; |
| 3796 | } |
| 3797 | |
| 3798 | static void |
| 3799 | Opcode_syscall_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3800 | { |
| 3801 | slotbuf[0] = 0x5000; |
| 3802 | } |
| 3803 | |
| 3804 | static void |
| 3805 | Opcode_simcall_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3806 | { |
| 3807 | slotbuf[0] = 0x5100; |
| 3808 | } |
| 3809 | |
| 3810 | static void |
| 3811 | Opcode_add_n_Slot_inst16a_encode (xtensa_insnbuf slotbuf) |
| 3812 | { |
| 3813 | slotbuf[0] = 0xa; |
| 3814 | } |
| 3815 | |
| 3816 | static void |
| 3817 | Opcode_addi_n_Slot_inst16a_encode (xtensa_insnbuf slotbuf) |
| 3818 | { |
| 3819 | slotbuf[0] = 0xb; |
| 3820 | } |
| 3821 | |
| 3822 | static void |
| 3823 | Opcode_beqz_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3824 | { |
| 3825 | slotbuf[0] = 0x8c; |
| 3826 | } |
| 3827 | |
| 3828 | static void |
| 3829 | Opcode_bnez_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3830 | { |
| 3831 | slotbuf[0] = 0xcc; |
| 3832 | } |
| 3833 | |
| 3834 | static void |
| 3835 | Opcode_ill_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3836 | { |
| 3837 | slotbuf[0] = 0xf06d; |
| 3838 | } |
| 3839 | |
| 3840 | static void |
| 3841 | Opcode_l32i_n_Slot_inst16a_encode (xtensa_insnbuf slotbuf) |
| 3842 | { |
| 3843 | slotbuf[0] = 0x8; |
| 3844 | } |
| 3845 | |
| 3846 | static void |
| 3847 | Opcode_mov_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3848 | { |
| 3849 | slotbuf[0] = 0xd; |
| 3850 | } |
| 3851 | |
| 3852 | static void |
| 3853 | Opcode_movi_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3854 | { |
| 3855 | slotbuf[0] = 0xc; |
| 3856 | } |
| 3857 | |
| 3858 | static void |
| 3859 | Opcode_nop_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3860 | { |
| 3861 | slotbuf[0] = 0xf03d; |
| 3862 | } |
| 3863 | |
| 3864 | static void |
| 3865 | Opcode_ret_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 3866 | { |
| 3867 | slotbuf[0] = 0xf00d; |
| 3868 | } |
| 3869 | |
| 3870 | static void |
| 3871 | Opcode_s32i_n_Slot_inst16a_encode (xtensa_insnbuf slotbuf) |
| 3872 | { |
| 3873 | slotbuf[0] = 0x9; |
| 3874 | } |
| 3875 | |
| 3876 | static void |
| 3877 | Opcode_addi_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3878 | { |
| 3879 | slotbuf[0] = 0xc002; |
| 3880 | } |
| 3881 | |
| 3882 | static void |
| 3883 | Opcode_addmi_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3884 | { |
| 3885 | slotbuf[0] = 0xd002; |
| 3886 | } |
| 3887 | |
| 3888 | static void |
| 3889 | Opcode_add_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3890 | { |
| 3891 | slotbuf[0] = 0x800000; |
| 3892 | } |
| 3893 | |
| 3894 | static void |
| 3895 | Opcode_sub_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3896 | { |
| 3897 | slotbuf[0] = 0xc00000; |
| 3898 | } |
| 3899 | |
| 3900 | static void |
| 3901 | Opcode_addx2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3902 | { |
| 3903 | slotbuf[0] = 0x900000; |
| 3904 | } |
| 3905 | |
| 3906 | static void |
| 3907 | Opcode_addx4_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3908 | { |
| 3909 | slotbuf[0] = 0xa00000; |
| 3910 | } |
| 3911 | |
| 3912 | static void |
| 3913 | Opcode_addx8_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3914 | { |
| 3915 | slotbuf[0] = 0xb00000; |
| 3916 | } |
| 3917 | |
| 3918 | static void |
| 3919 | Opcode_subx2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3920 | { |
| 3921 | slotbuf[0] = 0xd00000; |
| 3922 | } |
| 3923 | |
| 3924 | static void |
| 3925 | Opcode_subx4_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3926 | { |
| 3927 | slotbuf[0] = 0xe00000; |
| 3928 | } |
| 3929 | |
| 3930 | static void |
| 3931 | Opcode_subx8_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3932 | { |
| 3933 | slotbuf[0] = 0xf00000; |
| 3934 | } |
| 3935 | |
| 3936 | static void |
| 3937 | Opcode_and_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3938 | { |
| 3939 | slotbuf[0] = 0x100000; |
| 3940 | } |
| 3941 | |
| 3942 | static void |
| 3943 | Opcode_or_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3944 | { |
| 3945 | slotbuf[0] = 0x200000; |
| 3946 | } |
| 3947 | |
| 3948 | static void |
| 3949 | Opcode_xor_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3950 | { |
| 3951 | slotbuf[0] = 0x300000; |
| 3952 | } |
| 3953 | |
| 3954 | static void |
| 3955 | Opcode_beqi_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3956 | { |
| 3957 | slotbuf[0] = 0x26; |
| 3958 | } |
| 3959 | |
| 3960 | static void |
| 3961 | Opcode_bnei_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3962 | { |
| 3963 | slotbuf[0] = 0x66; |
| 3964 | } |
| 3965 | |
| 3966 | static void |
| 3967 | Opcode_bgei_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3968 | { |
| 3969 | slotbuf[0] = 0xe6; |
| 3970 | } |
| 3971 | |
| 3972 | static void |
| 3973 | Opcode_blti_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3974 | { |
| 3975 | slotbuf[0] = 0xa6; |
| 3976 | } |
| 3977 | |
| 3978 | static void |
| 3979 | Opcode_bbci_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3980 | { |
| 3981 | slotbuf[0] = 0x6007; |
| 3982 | } |
| 3983 | |
| 3984 | static void |
| 3985 | Opcode_bbsi_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3986 | { |
| 3987 | slotbuf[0] = 0xe007; |
| 3988 | } |
| 3989 | |
| 3990 | static void |
| 3991 | Opcode_bgeui_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3992 | { |
| 3993 | slotbuf[0] = 0xf6; |
| 3994 | } |
| 3995 | |
| 3996 | static void |
| 3997 | Opcode_bltui_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 3998 | { |
| 3999 | slotbuf[0] = 0xb6; |
| 4000 | } |
| 4001 | |
| 4002 | static void |
| 4003 | Opcode_beq_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4004 | { |
| 4005 | slotbuf[0] = 0x1007; |
| 4006 | } |
| 4007 | |
| 4008 | static void |
| 4009 | Opcode_bne_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4010 | { |
| 4011 | slotbuf[0] = 0x9007; |
| 4012 | } |
| 4013 | |
| 4014 | static void |
| 4015 | Opcode_bge_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4016 | { |
| 4017 | slotbuf[0] = 0xa007; |
| 4018 | } |
| 4019 | |
| 4020 | static void |
| 4021 | Opcode_blt_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4022 | { |
| 4023 | slotbuf[0] = 0x2007; |
| 4024 | } |
| 4025 | |
| 4026 | static void |
| 4027 | Opcode_bgeu_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4028 | { |
| 4029 | slotbuf[0] = 0xb007; |
| 4030 | } |
| 4031 | |
| 4032 | static void |
| 4033 | Opcode_bltu_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4034 | { |
| 4035 | slotbuf[0] = 0x3007; |
| 4036 | } |
| 4037 | |
| 4038 | static void |
| 4039 | Opcode_bany_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4040 | { |
| 4041 | slotbuf[0] = 0x8007; |
| 4042 | } |
| 4043 | |
| 4044 | static void |
| 4045 | Opcode_bnone_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4046 | { |
| 4047 | slotbuf[0] = 0x7; |
| 4048 | } |
| 4049 | |
| 4050 | static void |
| 4051 | Opcode_ball_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4052 | { |
| 4053 | slotbuf[0] = 0x4007; |
| 4054 | } |
| 4055 | |
| 4056 | static void |
| 4057 | Opcode_bnall_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4058 | { |
| 4059 | slotbuf[0] = 0xc007; |
| 4060 | } |
| 4061 | |
| 4062 | static void |
| 4063 | Opcode_bbc_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4064 | { |
| 4065 | slotbuf[0] = 0x5007; |
| 4066 | } |
| 4067 | |
| 4068 | static void |
| 4069 | Opcode_bbs_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4070 | { |
| 4071 | slotbuf[0] = 0xd007; |
| 4072 | } |
| 4073 | |
| 4074 | static void |
| 4075 | Opcode_beqz_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4076 | { |
| 4077 | slotbuf[0] = 0x16; |
| 4078 | } |
| 4079 | |
| 4080 | static void |
| 4081 | Opcode_bnez_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4082 | { |
| 4083 | slotbuf[0] = 0x56; |
| 4084 | } |
| 4085 | |
| 4086 | static void |
| 4087 | Opcode_bgez_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4088 | { |
| 4089 | slotbuf[0] = 0xd6; |
| 4090 | } |
| 4091 | |
| 4092 | static void |
| 4093 | Opcode_bltz_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4094 | { |
| 4095 | slotbuf[0] = 0x96; |
| 4096 | } |
| 4097 | |
| 4098 | static void |
| 4099 | Opcode_call0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4100 | { |
| 4101 | slotbuf[0] = 0x5; |
| 4102 | } |
| 4103 | |
| 4104 | static void |
| 4105 | Opcode_callx0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4106 | { |
| 4107 | slotbuf[0] = 0xc0; |
| 4108 | } |
| 4109 | |
| 4110 | static void |
| 4111 | Opcode_extui_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4112 | { |
| 4113 | slotbuf[0] = 0x40000; |
| 4114 | } |
| 4115 | |
| 4116 | static void |
| 4117 | Opcode_ill_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4118 | { |
| 4119 | slotbuf[0] = 0; |
| 4120 | } |
| 4121 | |
| 4122 | static void |
| 4123 | Opcode_j_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4124 | { |
| 4125 | slotbuf[0] = 0x6; |
| 4126 | } |
| 4127 | |
| 4128 | static void |
| 4129 | Opcode_jx_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4130 | { |
| 4131 | slotbuf[0] = 0xa0; |
| 4132 | } |
| 4133 | |
| 4134 | static void |
| 4135 | Opcode_l16ui_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4136 | { |
| 4137 | slotbuf[0] = 0x1002; |
| 4138 | } |
| 4139 | |
| 4140 | static void |
| 4141 | Opcode_l16si_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4142 | { |
| 4143 | slotbuf[0] = 0x9002; |
| 4144 | } |
| 4145 | |
| 4146 | static void |
| 4147 | Opcode_l32i_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4148 | { |
| 4149 | slotbuf[0] = 0x2002; |
| 4150 | } |
| 4151 | |
| 4152 | static void |
| 4153 | Opcode_l32r_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4154 | { |
| 4155 | slotbuf[0] = 0x1; |
| 4156 | } |
| 4157 | |
| 4158 | static void |
| 4159 | Opcode_l8ui_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4160 | { |
| 4161 | slotbuf[0] = 0x2; |
| 4162 | } |
| 4163 | |
| 4164 | static void |
| 4165 | Opcode_movi_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4166 | { |
| 4167 | slotbuf[0] = 0xa002; |
| 4168 | } |
| 4169 | |
| 4170 | static void |
| 4171 | Opcode_moveqz_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4172 | { |
| 4173 | slotbuf[0] = 0x830000; |
| 4174 | } |
| 4175 | |
| 4176 | static void |
| 4177 | Opcode_movnez_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4178 | { |
| 4179 | slotbuf[0] = 0x930000; |
| 4180 | } |
| 4181 | |
| 4182 | static void |
| 4183 | Opcode_movltz_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4184 | { |
| 4185 | slotbuf[0] = 0xa30000; |
| 4186 | } |
| 4187 | |
| 4188 | static void |
| 4189 | Opcode_movgez_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4190 | { |
| 4191 | slotbuf[0] = 0xb30000; |
| 4192 | } |
| 4193 | |
| 4194 | static void |
| 4195 | Opcode_neg_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4196 | { |
| 4197 | slotbuf[0] = 0x600000; |
| 4198 | } |
| 4199 | |
| 4200 | static void |
| 4201 | Opcode_abs_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4202 | { |
| 4203 | slotbuf[0] = 0x600100; |
| 4204 | } |
| 4205 | |
| 4206 | static void |
| 4207 | Opcode_nop_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4208 | { |
| 4209 | slotbuf[0] = 0x20f0; |
| 4210 | } |
| 4211 | |
| 4212 | static void |
| 4213 | Opcode_ret_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4214 | { |
| 4215 | slotbuf[0] = 0x80; |
| 4216 | } |
| 4217 | |
| 4218 | static void |
| 4219 | Opcode_s16i_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4220 | { |
| 4221 | slotbuf[0] = 0x5002; |
| 4222 | } |
| 4223 | |
| 4224 | static void |
| 4225 | Opcode_s32i_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4226 | { |
| 4227 | slotbuf[0] = 0x6002; |
| 4228 | } |
| 4229 | |
| 4230 | static void |
| 4231 | Opcode_s8i_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4232 | { |
| 4233 | slotbuf[0] = 0x4002; |
| 4234 | } |
| 4235 | |
| 4236 | static void |
| 4237 | Opcode_ssr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4238 | { |
| 4239 | slotbuf[0] = 0x400000; |
| 4240 | } |
| 4241 | |
| 4242 | static void |
| 4243 | Opcode_ssl_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4244 | { |
| 4245 | slotbuf[0] = 0x401000; |
| 4246 | } |
| 4247 | |
| 4248 | static void |
| 4249 | Opcode_ssa8l_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4250 | { |
| 4251 | slotbuf[0] = 0x402000; |
| 4252 | } |
| 4253 | |
| 4254 | static void |
| 4255 | Opcode_ssa8b_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4256 | { |
| 4257 | slotbuf[0] = 0x403000; |
| 4258 | } |
| 4259 | |
| 4260 | static void |
| 4261 | Opcode_ssai_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4262 | { |
| 4263 | slotbuf[0] = 0x404000; |
| 4264 | } |
| 4265 | |
| 4266 | static void |
| 4267 | Opcode_sll_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4268 | { |
| 4269 | slotbuf[0] = 0xa10000; |
| 4270 | } |
| 4271 | |
| 4272 | static void |
| 4273 | Opcode_src_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4274 | { |
| 4275 | slotbuf[0] = 0x810000; |
| 4276 | } |
| 4277 | |
| 4278 | static void |
| 4279 | Opcode_srl_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4280 | { |
| 4281 | slotbuf[0] = 0x910000; |
| 4282 | } |
| 4283 | |
| 4284 | static void |
| 4285 | Opcode_sra_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4286 | { |
| 4287 | slotbuf[0] = 0xb10000; |
| 4288 | } |
| 4289 | |
| 4290 | static void |
| 4291 | Opcode_slli_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4292 | { |
| 4293 | slotbuf[0] = 0x10000; |
| 4294 | } |
| 4295 | |
| 4296 | static void |
| 4297 | Opcode_srai_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4298 | { |
| 4299 | slotbuf[0] = 0x210000; |
| 4300 | } |
| 4301 | |
| 4302 | static void |
| 4303 | Opcode_srli_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4304 | { |
| 4305 | slotbuf[0] = 0x410000; |
| 4306 | } |
| 4307 | |
| 4308 | static void |
| 4309 | Opcode_memw_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4310 | { |
| 4311 | slotbuf[0] = 0x20c0; |
| 4312 | } |
| 4313 | |
| 4314 | static void |
| 4315 | Opcode_extw_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4316 | { |
| 4317 | slotbuf[0] = 0x20d0; |
| 4318 | } |
| 4319 | |
| 4320 | static void |
| 4321 | Opcode_isync_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4322 | { |
| 4323 | slotbuf[0] = 0x2000; |
| 4324 | } |
| 4325 | |
| 4326 | static void |
| 4327 | Opcode_rsync_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4328 | { |
| 4329 | slotbuf[0] = 0x2010; |
| 4330 | } |
| 4331 | |
| 4332 | static void |
| 4333 | Opcode_esync_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4334 | { |
| 4335 | slotbuf[0] = 0x2020; |
| 4336 | } |
| 4337 | |
| 4338 | static void |
| 4339 | Opcode_dsync_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4340 | { |
| 4341 | slotbuf[0] = 0x2030; |
| 4342 | } |
| 4343 | |
| 4344 | static void |
| 4345 | Opcode_rsil_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4346 | { |
| 4347 | slotbuf[0] = 0x6000; |
| 4348 | } |
| 4349 | |
| 4350 | static void |
| 4351 | Opcode_rsr_sar_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4352 | { |
| 4353 | slotbuf[0] = 0x30300; |
| 4354 | } |
| 4355 | |
| 4356 | static void |
| 4357 | Opcode_wsr_sar_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4358 | { |
| 4359 | slotbuf[0] = 0x130300; |
| 4360 | } |
| 4361 | |
| 4362 | static void |
| 4363 | Opcode_xsr_sar_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4364 | { |
| 4365 | slotbuf[0] = 0x610300; |
| 4366 | } |
| 4367 | |
| 4368 | static void |
| 4369 | Opcode_rsr_litbase_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4370 | { |
| 4371 | slotbuf[0] = 0x30500; |
| 4372 | } |
| 4373 | |
| 4374 | static void |
| 4375 | Opcode_wsr_litbase_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4376 | { |
| 4377 | slotbuf[0] = 0x130500; |
| 4378 | } |
| 4379 | |
| 4380 | static void |
| 4381 | Opcode_xsr_litbase_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4382 | { |
| 4383 | slotbuf[0] = 0x610500; |
| 4384 | } |
| 4385 | |
| 4386 | static void |
| 4387 | Opcode_rsr_176_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4388 | { |
| 4389 | slotbuf[0] = 0x3b000; |
| 4390 | } |
| 4391 | |
| 4392 | static void |
| 4393 | Opcode_wsr_176_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4394 | { |
| 4395 | slotbuf[0] = 0x13b000; |
| 4396 | } |
| 4397 | |
| 4398 | static void |
| 4399 | Opcode_rsr_208_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4400 | { |
| 4401 | slotbuf[0] = 0x3d000; |
| 4402 | } |
| 4403 | |
| 4404 | static void |
| 4405 | Opcode_rsr_ps_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4406 | { |
| 4407 | slotbuf[0] = 0x3e600; |
| 4408 | } |
| 4409 | |
| 4410 | static void |
| 4411 | Opcode_wsr_ps_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4412 | { |
| 4413 | slotbuf[0] = 0x13e600; |
| 4414 | } |
| 4415 | |
| 4416 | static void |
| 4417 | Opcode_xsr_ps_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4418 | { |
| 4419 | slotbuf[0] = 0x61e600; |
| 4420 | } |
| 4421 | |
| 4422 | static void |
| 4423 | Opcode_rsr_epc1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4424 | { |
| 4425 | slotbuf[0] = 0x3b100; |
| 4426 | } |
| 4427 | |
| 4428 | static void |
| 4429 | Opcode_wsr_epc1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4430 | { |
| 4431 | slotbuf[0] = 0x13b100; |
| 4432 | } |
| 4433 | |
| 4434 | static void |
| 4435 | Opcode_xsr_epc1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4436 | { |
| 4437 | slotbuf[0] = 0x61b100; |
| 4438 | } |
| 4439 | |
| 4440 | static void |
| 4441 | Opcode_rsr_excsave1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4442 | { |
| 4443 | slotbuf[0] = 0x3d100; |
| 4444 | } |
| 4445 | |
| 4446 | static void |
| 4447 | Opcode_wsr_excsave1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4448 | { |
| 4449 | slotbuf[0] = 0x13d100; |
| 4450 | } |
| 4451 | |
| 4452 | static void |
| 4453 | Opcode_xsr_excsave1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4454 | { |
| 4455 | slotbuf[0] = 0x61d100; |
| 4456 | } |
| 4457 | |
| 4458 | static void |
| 4459 | Opcode_rsr_epc2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4460 | { |
| 4461 | slotbuf[0] = 0x3b200; |
| 4462 | } |
| 4463 | |
| 4464 | static void |
| 4465 | Opcode_wsr_epc2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4466 | { |
| 4467 | slotbuf[0] = 0x13b200; |
| 4468 | } |
| 4469 | |
| 4470 | static void |
| 4471 | Opcode_xsr_epc2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4472 | { |
| 4473 | slotbuf[0] = 0x61b200; |
| 4474 | } |
| 4475 | |
| 4476 | static void |
| 4477 | Opcode_rsr_excsave2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4478 | { |
| 4479 | slotbuf[0] = 0x3d200; |
| 4480 | } |
| 4481 | |
| 4482 | static void |
| 4483 | Opcode_wsr_excsave2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4484 | { |
| 4485 | slotbuf[0] = 0x13d200; |
| 4486 | } |
| 4487 | |
| 4488 | static void |
| 4489 | Opcode_xsr_excsave2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4490 | { |
| 4491 | slotbuf[0] = 0x61d200; |
| 4492 | } |
| 4493 | |
| 4494 | static void |
| 4495 | Opcode_rsr_epc3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4496 | { |
| 4497 | slotbuf[0] = 0x3b300; |
| 4498 | } |
| 4499 | |
| 4500 | static void |
| 4501 | Opcode_wsr_epc3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4502 | { |
| 4503 | slotbuf[0] = 0x13b300; |
| 4504 | } |
| 4505 | |
| 4506 | static void |
| 4507 | Opcode_xsr_epc3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4508 | { |
| 4509 | slotbuf[0] = 0x61b300; |
| 4510 | } |
| 4511 | |
| 4512 | static void |
| 4513 | Opcode_rsr_excsave3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4514 | { |
| 4515 | slotbuf[0] = 0x3d300; |
| 4516 | } |
| 4517 | |
| 4518 | static void |
| 4519 | Opcode_wsr_excsave3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4520 | { |
| 4521 | slotbuf[0] = 0x13d300; |
| 4522 | } |
| 4523 | |
| 4524 | static void |
| 4525 | Opcode_xsr_excsave3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4526 | { |
| 4527 | slotbuf[0] = 0x61d300; |
| 4528 | } |
| 4529 | |
| 4530 | static void |
| 4531 | Opcode_rsr_eps2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4532 | { |
| 4533 | slotbuf[0] = 0x3c200; |
| 4534 | } |
| 4535 | |
| 4536 | static void |
| 4537 | Opcode_wsr_eps2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4538 | { |
| 4539 | slotbuf[0] = 0x13c200; |
| 4540 | } |
| 4541 | |
| 4542 | static void |
| 4543 | Opcode_xsr_eps2_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4544 | { |
| 4545 | slotbuf[0] = 0x61c200; |
| 4546 | } |
| 4547 | |
| 4548 | static void |
| 4549 | Opcode_rsr_eps3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4550 | { |
| 4551 | slotbuf[0] = 0x3c300; |
| 4552 | } |
| 4553 | |
| 4554 | static void |
| 4555 | Opcode_wsr_eps3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4556 | { |
| 4557 | slotbuf[0] = 0x13c300; |
| 4558 | } |
| 4559 | |
| 4560 | static void |
| 4561 | Opcode_xsr_eps3_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4562 | { |
| 4563 | slotbuf[0] = 0x61c300; |
| 4564 | } |
| 4565 | |
| 4566 | static void |
| 4567 | Opcode_rsr_excvaddr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4568 | { |
| 4569 | slotbuf[0] = 0x3ee00; |
| 4570 | } |
| 4571 | |
| 4572 | static void |
| 4573 | Opcode_wsr_excvaddr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4574 | { |
| 4575 | slotbuf[0] = 0x13ee00; |
| 4576 | } |
| 4577 | |
| 4578 | static void |
| 4579 | Opcode_xsr_excvaddr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4580 | { |
| 4581 | slotbuf[0] = 0x61ee00; |
| 4582 | } |
| 4583 | |
| 4584 | static void |
| 4585 | Opcode_rsr_depc_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4586 | { |
| 4587 | slotbuf[0] = 0x3c000; |
| 4588 | } |
| 4589 | |
| 4590 | static void |
| 4591 | Opcode_wsr_depc_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4592 | { |
| 4593 | slotbuf[0] = 0x13c000; |
| 4594 | } |
| 4595 | |
| 4596 | static void |
| 4597 | Opcode_xsr_depc_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4598 | { |
| 4599 | slotbuf[0] = 0x61c000; |
| 4600 | } |
| 4601 | |
| 4602 | static void |
| 4603 | Opcode_rsr_exccause_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4604 | { |
| 4605 | slotbuf[0] = 0x3e800; |
| 4606 | } |
| 4607 | |
| 4608 | static void |
| 4609 | Opcode_wsr_exccause_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4610 | { |
| 4611 | slotbuf[0] = 0x13e800; |
| 4612 | } |
| 4613 | |
| 4614 | static void |
| 4615 | Opcode_xsr_exccause_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4616 | { |
| 4617 | slotbuf[0] = 0x61e800; |
| 4618 | } |
| 4619 | |
| 4620 | static void |
| 4621 | Opcode_rsr_prid_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4622 | { |
| 4623 | slotbuf[0] = 0x3eb00; |
| 4624 | } |
| 4625 | |
| 4626 | static void |
| 4627 | Opcode_rsr_vecbase_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4628 | { |
| 4629 | slotbuf[0] = 0x3e700; |
| 4630 | } |
| 4631 | |
| 4632 | static void |
| 4633 | Opcode_wsr_vecbase_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4634 | { |
| 4635 | slotbuf[0] = 0x13e700; |
| 4636 | } |
| 4637 | |
| 4638 | static void |
| 4639 | Opcode_xsr_vecbase_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4640 | { |
| 4641 | slotbuf[0] = 0x61e700; |
| 4642 | } |
| 4643 | |
| 4644 | static void |
| 4645 | Opcode_mul16u_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4646 | { |
| 4647 | slotbuf[0] = 0xc10000; |
| 4648 | } |
| 4649 | |
| 4650 | static void |
| 4651 | Opcode_mul16s_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4652 | { |
| 4653 | slotbuf[0] = 0xd10000; |
| 4654 | } |
| 4655 | |
| 4656 | static void |
| 4657 | Opcode_mull_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4658 | { |
| 4659 | slotbuf[0] = 0x820000; |
| 4660 | } |
| 4661 | |
| 4662 | static void |
| 4663 | Opcode_rfi_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4664 | { |
| 4665 | slotbuf[0] = 0x3010; |
| 4666 | } |
| 4667 | |
| 4668 | static void |
| 4669 | Opcode_waiti_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4670 | { |
| 4671 | slotbuf[0] = 0x7000; |
| 4672 | } |
| 4673 | |
| 4674 | static void |
| 4675 | Opcode_rsr_interrupt_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4676 | { |
| 4677 | slotbuf[0] = 0x3e200; |
| 4678 | } |
| 4679 | |
| 4680 | static void |
| 4681 | Opcode_wsr_intset_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4682 | { |
| 4683 | slotbuf[0] = 0x13e200; |
| 4684 | } |
| 4685 | |
| 4686 | static void |
| 4687 | Opcode_wsr_intclear_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4688 | { |
| 4689 | slotbuf[0] = 0x13e300; |
| 4690 | } |
| 4691 | |
| 4692 | static void |
| 4693 | Opcode_rsr_intenable_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4694 | { |
| 4695 | slotbuf[0] = 0x3e400; |
| 4696 | } |
| 4697 | |
| 4698 | static void |
| 4699 | Opcode_wsr_intenable_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4700 | { |
| 4701 | slotbuf[0] = 0x13e400; |
| 4702 | } |
| 4703 | |
| 4704 | static void |
| 4705 | Opcode_xsr_intenable_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4706 | { |
| 4707 | slotbuf[0] = 0x61e400; |
| 4708 | } |
| 4709 | |
| 4710 | static void |
| 4711 | Opcode_break_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4712 | { |
| 4713 | slotbuf[0] = 0x4000; |
| 4714 | } |
| 4715 | |
| 4716 | static void |
| 4717 | Opcode_break_n_Slot_inst16b_encode (xtensa_insnbuf slotbuf) |
| 4718 | { |
| 4719 | slotbuf[0] = 0xf02d; |
| 4720 | } |
| 4721 | |
| 4722 | static void |
| 4723 | Opcode_rsr_dbreaka0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4724 | { |
| 4725 | slotbuf[0] = 0x39000; |
| 4726 | } |
| 4727 | |
| 4728 | static void |
| 4729 | Opcode_wsr_dbreaka0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4730 | { |
| 4731 | slotbuf[0] = 0x139000; |
| 4732 | } |
| 4733 | |
| 4734 | static void |
| 4735 | Opcode_xsr_dbreaka0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4736 | { |
| 4737 | slotbuf[0] = 0x619000; |
| 4738 | } |
| 4739 | |
| 4740 | static void |
| 4741 | Opcode_rsr_dbreakc0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4742 | { |
| 4743 | slotbuf[0] = 0x3a000; |
| 4744 | } |
| 4745 | |
| 4746 | static void |
| 4747 | Opcode_wsr_dbreakc0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4748 | { |
| 4749 | slotbuf[0] = 0x13a000; |
| 4750 | } |
| 4751 | |
| 4752 | static void |
| 4753 | Opcode_xsr_dbreakc0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4754 | { |
| 4755 | slotbuf[0] = 0x61a000; |
| 4756 | } |
| 4757 | |
| 4758 | static void |
| 4759 | Opcode_rsr_ibreaka0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4760 | { |
| 4761 | slotbuf[0] = 0x38000; |
| 4762 | } |
| 4763 | |
| 4764 | static void |
| 4765 | Opcode_wsr_ibreaka0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4766 | { |
| 4767 | slotbuf[0] = 0x138000; |
| 4768 | } |
| 4769 | |
| 4770 | static void |
| 4771 | Opcode_xsr_ibreaka0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4772 | { |
| 4773 | slotbuf[0] = 0x618000; |
| 4774 | } |
| 4775 | |
| 4776 | static void |
| 4777 | Opcode_rsr_ibreakenable_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4778 | { |
| 4779 | slotbuf[0] = 0x36000; |
| 4780 | } |
| 4781 | |
| 4782 | static void |
| 4783 | Opcode_wsr_ibreakenable_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4784 | { |
| 4785 | slotbuf[0] = 0x136000; |
| 4786 | } |
| 4787 | |
| 4788 | static void |
| 4789 | Opcode_xsr_ibreakenable_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4790 | { |
| 4791 | slotbuf[0] = 0x616000; |
| 4792 | } |
| 4793 | |
| 4794 | static void |
| 4795 | Opcode_rsr_debugcause_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4796 | { |
| 4797 | slotbuf[0] = 0x3e900; |
| 4798 | } |
| 4799 | |
| 4800 | static void |
| 4801 | Opcode_wsr_debugcause_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4802 | { |
| 4803 | slotbuf[0] = 0x13e900; |
| 4804 | } |
| 4805 | |
| 4806 | static void |
| 4807 | Opcode_xsr_debugcause_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4808 | { |
| 4809 | slotbuf[0] = 0x61e900; |
| 4810 | } |
| 4811 | |
| 4812 | static void |
| 4813 | Opcode_rsr_icount_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4814 | { |
| 4815 | slotbuf[0] = 0x3ec00; |
| 4816 | } |
| 4817 | |
| 4818 | static void |
| 4819 | Opcode_wsr_icount_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4820 | { |
| 4821 | slotbuf[0] = 0x13ec00; |
| 4822 | } |
| 4823 | |
| 4824 | static void |
| 4825 | Opcode_xsr_icount_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4826 | { |
| 4827 | slotbuf[0] = 0x61ec00; |
| 4828 | } |
| 4829 | |
| 4830 | static void |
| 4831 | Opcode_rsr_icountlevel_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4832 | { |
| 4833 | slotbuf[0] = 0x3ed00; |
| 4834 | } |
| 4835 | |
| 4836 | static void |
| 4837 | Opcode_wsr_icountlevel_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4838 | { |
| 4839 | slotbuf[0] = 0x13ed00; |
| 4840 | } |
| 4841 | |
| 4842 | static void |
| 4843 | Opcode_xsr_icountlevel_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4844 | { |
| 4845 | slotbuf[0] = 0x61ed00; |
| 4846 | } |
| 4847 | |
| 4848 | static void |
| 4849 | Opcode_rsr_ddr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4850 | { |
| 4851 | slotbuf[0] = 0x36800; |
| 4852 | } |
| 4853 | |
| 4854 | static void |
| 4855 | Opcode_wsr_ddr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4856 | { |
| 4857 | slotbuf[0] = 0x136800; |
| 4858 | } |
| 4859 | |
| 4860 | static void |
| 4861 | Opcode_xsr_ddr_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4862 | { |
| 4863 | slotbuf[0] = 0x616800; |
| 4864 | } |
| 4865 | |
| 4866 | static void |
| 4867 | Opcode_rfdo_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4868 | { |
| 4869 | slotbuf[0] = 0xf1e000; |
| 4870 | } |
| 4871 | |
| 4872 | static void |
| 4873 | Opcode_rfdd_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4874 | { |
| 4875 | slotbuf[0] = 0xf1e010; |
| 4876 | } |
| 4877 | |
| 4878 | static void |
| 4879 | Opcode_wsr_mmid_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4880 | { |
| 4881 | slotbuf[0] = 0x135900; |
| 4882 | } |
| 4883 | |
| 4884 | static void |
| 4885 | Opcode_rsr_ccount_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4886 | { |
| 4887 | slotbuf[0] = 0x3ea00; |
| 4888 | } |
| 4889 | |
| 4890 | static void |
| 4891 | Opcode_wsr_ccount_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4892 | { |
| 4893 | slotbuf[0] = 0x13ea00; |
| 4894 | } |
| 4895 | |
| 4896 | static void |
| 4897 | Opcode_xsr_ccount_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4898 | { |
| 4899 | slotbuf[0] = 0x61ea00; |
| 4900 | } |
| 4901 | |
| 4902 | static void |
| 4903 | Opcode_rsr_ccompare0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4904 | { |
| 4905 | slotbuf[0] = 0x3f000; |
| 4906 | } |
| 4907 | |
| 4908 | static void |
| 4909 | Opcode_wsr_ccompare0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4910 | { |
| 4911 | slotbuf[0] = 0x13f000; |
| 4912 | } |
| 4913 | |
| 4914 | static void |
| 4915 | Opcode_xsr_ccompare0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4916 | { |
| 4917 | slotbuf[0] = 0x61f000; |
| 4918 | } |
| 4919 | |
| 4920 | static void |
| 4921 | Opcode_idtlb_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4922 | { |
| 4923 | slotbuf[0] = 0x50c000; |
| 4924 | } |
| 4925 | |
| 4926 | static void |
| 4927 | Opcode_pdtlb_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4928 | { |
| 4929 | slotbuf[0] = 0x50d000; |
| 4930 | } |
| 4931 | |
| 4932 | static void |
| 4933 | Opcode_rdtlb0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4934 | { |
| 4935 | slotbuf[0] = 0x50b000; |
| 4936 | } |
| 4937 | |
| 4938 | static void |
| 4939 | Opcode_rdtlb1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4940 | { |
| 4941 | slotbuf[0] = 0x50f000; |
| 4942 | } |
| 4943 | |
| 4944 | static void |
| 4945 | Opcode_wdtlb_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4946 | { |
| 4947 | slotbuf[0] = 0x50e000; |
| 4948 | } |
| 4949 | |
| 4950 | static void |
| 4951 | Opcode_iitlb_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4952 | { |
| 4953 | slotbuf[0] = 0x504000; |
| 4954 | } |
| 4955 | |
| 4956 | static void |
| 4957 | Opcode_pitlb_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4958 | { |
| 4959 | slotbuf[0] = 0x505000; |
| 4960 | } |
| 4961 | |
| 4962 | static void |
| 4963 | Opcode_ritlb0_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4964 | { |
| 4965 | slotbuf[0] = 0x503000; |
| 4966 | } |
| 4967 | |
| 4968 | static void |
| 4969 | Opcode_ritlb1_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4970 | { |
| 4971 | slotbuf[0] = 0x507000; |
| 4972 | } |
| 4973 | |
| 4974 | static void |
| 4975 | Opcode_witlb_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4976 | { |
| 4977 | slotbuf[0] = 0x506000; |
| 4978 | } |
| 4979 | |
| 4980 | static void |
| 4981 | Opcode_nsa_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4982 | { |
| 4983 | slotbuf[0] = 0x40e000; |
| 4984 | } |
| 4985 | |
| 4986 | static void |
| 4987 | Opcode_nsau_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4988 | { |
| 4989 | slotbuf[0] = 0x40f000; |
| 4990 | } |
| 4991 | |
| 4992 | static void |
| 4993 | Opcode_rer_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 4994 | { |
| 4995 | slotbuf[0] = 0x406000; |
| 4996 | } |
| 4997 | |
| 4998 | static void |
| 4999 | Opcode_wer_Slot_inst_encode (xtensa_insnbuf slotbuf) |
| 5000 | { |
Showing first 5,000 of 7,668 lines.
View raw