1 /* Simulator instruction extractor for m32r.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
7 This file is part of the GNU Simulators.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #define WANT_CPU_M32RBF
32 EX_FN_NAME (m32rbf
,fmt_add
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
34 #define FLD(f) abuf->fields.fmt_add.f
35 EXTRACT_FMT_ADD_VARS
/* f-op1 f-r1 f-op2 f-r2 */
39 /* Record the fields for the semantic handler. */
40 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
41 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
42 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_add", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
44 #if WITH_PROFILE_MODEL_P
45 /* Record the fields for profiling. */
46 if (PROFILE_MODEL_P (current_cpu
))
57 EX_FN_NAME (m32rbf
,fmt_add3
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
59 #define FLD(f) abuf->fields.fmt_add3.f
60 EXTRACT_FMT_ADD3_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
64 /* Record the fields for the semantic handler. */
65 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
66 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
67 FLD (f_simm16
) = f_simm16
;
68 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_add3", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
70 #if WITH_PROFILE_MODEL_P
71 /* Record the fields for profiling. */
72 if (PROFILE_MODEL_P (current_cpu
))
82 EX_FN_NAME (m32rbf
,fmt_and3
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
84 #define FLD(f) abuf->fields.fmt_and3.f
85 EXTRACT_FMT_AND3_VARS
/* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
89 /* Record the fields for the semantic handler. */
90 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
91 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
92 FLD (f_uimm16
) = f_uimm16
;
93 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_and3", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "uimm16 0x%x", 'x', f_uimm16
, (char *) 0));
95 #if WITH_PROFILE_MODEL_P
96 /* Record the fields for profiling. */
97 if (PROFILE_MODEL_P (current_cpu
))
107 EX_FN_NAME (m32rbf
,fmt_or3
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
109 #define FLD(f) abuf->fields.fmt_or3.f
110 EXTRACT_FMT_OR3_VARS
/* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
114 /* Record the fields for the semantic handler. */
115 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
116 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
117 FLD (f_uimm16
) = f_uimm16
;
118 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_or3", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "ulo16 0x%x", 'x', f_uimm16
, (char *) 0));
120 #if WITH_PROFILE_MODEL_P
121 /* Record the fields for profiling. */
122 if (PROFILE_MODEL_P (current_cpu
))
132 EX_FN_NAME (m32rbf
,fmt_addi
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
134 #define FLD(f) abuf->fields.fmt_addi.f
135 EXTRACT_FMT_ADDI_VARS
/* f-op1 f-r1 f-simm8 */
137 EXTRACT_FMT_ADDI_CODE
139 /* Record the fields for the semantic handler. */
140 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
141 FLD (f_simm8
) = f_simm8
;
142 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_addi", "dr 0x%x", 'x', f_r1
, "simm8 0x%x", 'x', f_simm8
, (char *) 0));
144 #if WITH_PROFILE_MODEL_P
145 /* Record the fields for profiling. */
146 if (PROFILE_MODEL_P (current_cpu
))
156 EX_FN_NAME (m32rbf
,fmt_addv
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
158 #define FLD(f) abuf->fields.fmt_addv.f
159 EXTRACT_FMT_ADDV_VARS
/* f-op1 f-r1 f-op2 f-r2 */
161 EXTRACT_FMT_ADDV_CODE
163 /* Record the fields for the semantic handler. */
164 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
165 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
166 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_addv", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
168 #if WITH_PROFILE_MODEL_P
169 /* Record the fields for profiling. */
170 if (PROFILE_MODEL_P (current_cpu
))
181 EX_FN_NAME (m32rbf
,fmt_addv3
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
183 #define FLD(f) abuf->fields.fmt_addv3.f
184 EXTRACT_FMT_ADDV3_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
186 EXTRACT_FMT_ADDV3_CODE
188 /* Record the fields for the semantic handler. */
189 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
190 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
191 FLD (f_simm16
) = f_simm16
;
192 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_addv3", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "simm16 0x%x", 'x', f_simm16
, (char *) 0));
194 #if WITH_PROFILE_MODEL_P
195 /* Record the fields for profiling. */
196 if (PROFILE_MODEL_P (current_cpu
))
206 EX_FN_NAME (m32rbf
,fmt_addx
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
208 #define FLD(f) abuf->fields.fmt_addx.f
209 EXTRACT_FMT_ADDX_VARS
/* f-op1 f-r1 f-op2 f-r2 */
211 EXTRACT_FMT_ADDX_CODE
213 /* Record the fields for the semantic handler. */
214 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
215 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
216 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_addx", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
218 #if WITH_PROFILE_MODEL_P
219 /* Record the fields for profiling. */
220 if (PROFILE_MODEL_P (current_cpu
))
231 EX_FN_NAME (m32rbf
,fmt_bc8
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
233 #define FLD(f) abuf->fields.cti.fields.fmt_bc8.f
234 EXTRACT_FMT_BC8_VARS
/* f-op1 f-r1 f-disp8 */
238 /* Record the fields for the semantic handler. */
239 FLD (f_disp8
) = f_disp8
;
240 SEM_BRANCH_INIT_EXTRACT (abuf
);
241 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_bc8", "disp8 0x%x", 'x', f_disp8
, (char *) 0));
243 #if WITH_PROFILE_MODEL_P
244 /* Record the fields for profiling. */
245 if (PROFILE_MODEL_P (current_cpu
))
253 EX_FN_NAME (m32rbf
,fmt_bc24
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
255 #define FLD(f) abuf->fields.cti.fields.fmt_bc24.f
256 EXTRACT_FMT_BC24_VARS
/* f-op1 f-r1 f-disp24 */
258 EXTRACT_FMT_BC24_CODE
260 /* Record the fields for the semantic handler. */
261 FLD (f_disp24
) = f_disp24
;
262 SEM_BRANCH_INIT_EXTRACT (abuf
);
263 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_bc24", "disp24 0x%x", 'x', f_disp24
, (char *) 0));
265 #if WITH_PROFILE_MODEL_P
266 /* Record the fields for profiling. */
267 if (PROFILE_MODEL_P (current_cpu
))
275 EX_FN_NAME (m32rbf
,fmt_beq
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
277 #define FLD(f) abuf->fields.cti.fields.fmt_beq.f
278 EXTRACT_FMT_BEQ_VARS
/* f-op1 f-r1 f-op2 f-r2 f-disp16 */
282 /* Record the fields for the semantic handler. */
283 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
284 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
285 FLD (f_disp16
) = f_disp16
;
286 SEM_BRANCH_INIT_EXTRACT (abuf
);
287 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_beq", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, "disp16 0x%x", 'x', f_disp16
, (char *) 0));
289 #if WITH_PROFILE_MODEL_P
290 /* Record the fields for profiling. */
291 if (PROFILE_MODEL_P (current_cpu
))
293 FLD (in_src1
) = f_r1
;
294 FLD (in_src2
) = f_r2
;
301 EX_FN_NAME (m32rbf
,fmt_beqz
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
303 #define FLD(f) abuf->fields.cti.fields.fmt_beqz.f
304 EXTRACT_FMT_BEQZ_VARS
/* f-op1 f-r1 f-op2 f-r2 f-disp16 */
306 EXTRACT_FMT_BEQZ_CODE
308 /* Record the fields for the semantic handler. */
309 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
310 FLD (f_disp16
) = f_disp16
;
311 SEM_BRANCH_INIT_EXTRACT (abuf
);
312 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_beqz", "src2 0x%x", 'x', f_r2
, "disp16 0x%x", 'x', f_disp16
, (char *) 0));
314 #if WITH_PROFILE_MODEL_P
315 /* Record the fields for profiling. */
316 if (PROFILE_MODEL_P (current_cpu
))
318 FLD (in_src2
) = f_r2
;
325 EX_FN_NAME (m32rbf
,fmt_bl8
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
327 #define FLD(f) abuf->fields.cti.fields.fmt_bl8.f
328 EXTRACT_FMT_BL8_VARS
/* f-op1 f-r1 f-disp8 */
332 /* Record the fields for the semantic handler. */
333 FLD (f_disp8
) = f_disp8
;
334 SEM_BRANCH_INIT_EXTRACT (abuf
);
335 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_bl8", "disp8 0x%x", 'x', f_disp8
, (char *) 0));
337 #if WITH_PROFILE_MODEL_P
338 /* Record the fields for profiling. */
339 if (PROFILE_MODEL_P (current_cpu
))
341 FLD (out_h_gr_14
) = 14;
348 EX_FN_NAME (m32rbf
,fmt_bl24
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
350 #define FLD(f) abuf->fields.cti.fields.fmt_bl24.f
351 EXTRACT_FMT_BL24_VARS
/* f-op1 f-r1 f-disp24 */
353 EXTRACT_FMT_BL24_CODE
355 /* Record the fields for the semantic handler. */
356 FLD (f_disp24
) = f_disp24
;
357 SEM_BRANCH_INIT_EXTRACT (abuf
);
358 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_bl24", "disp24 0x%x", 'x', f_disp24
, (char *) 0));
360 #if WITH_PROFILE_MODEL_P
361 /* Record the fields for profiling. */
362 if (PROFILE_MODEL_P (current_cpu
))
364 FLD (out_h_gr_14
) = 14;
371 EX_FN_NAME (m32rbf
,fmt_bra8
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
373 #define FLD(f) abuf->fields.cti.fields.fmt_bra8.f
374 EXTRACT_FMT_BRA8_VARS
/* f-op1 f-r1 f-disp8 */
376 EXTRACT_FMT_BRA8_CODE
378 /* Record the fields for the semantic handler. */
379 FLD (f_disp8
) = f_disp8
;
380 SEM_BRANCH_INIT_EXTRACT (abuf
);
381 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_bra8", "disp8 0x%x", 'x', f_disp8
, (char *) 0));
383 #if WITH_PROFILE_MODEL_P
384 /* Record the fields for profiling. */
385 if (PROFILE_MODEL_P (current_cpu
))
393 EX_FN_NAME (m32rbf
,fmt_bra24
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
395 #define FLD(f) abuf->fields.cti.fields.fmt_bra24.f
396 EXTRACT_FMT_BRA24_VARS
/* f-op1 f-r1 f-disp24 */
398 EXTRACT_FMT_BRA24_CODE
400 /* Record the fields for the semantic handler. */
401 FLD (f_disp24
) = f_disp24
;
402 SEM_BRANCH_INIT_EXTRACT (abuf
);
403 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_bra24", "disp24 0x%x", 'x', f_disp24
, (char *) 0));
405 #if WITH_PROFILE_MODEL_P
406 /* Record the fields for profiling. */
407 if (PROFILE_MODEL_P (current_cpu
))
415 EX_FN_NAME (m32rbf
,fmt_cmp
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
417 #define FLD(f) abuf->fields.fmt_cmp.f
418 EXTRACT_FMT_CMP_VARS
/* f-op1 f-r1 f-op2 f-r2 */
422 /* Record the fields for the semantic handler. */
423 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
424 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
425 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_cmp", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
427 #if WITH_PROFILE_MODEL_P
428 /* Record the fields for profiling. */
429 if (PROFILE_MODEL_P (current_cpu
))
431 FLD (in_src1
) = f_r1
;
432 FLD (in_src2
) = f_r2
;
439 EX_FN_NAME (m32rbf
,fmt_cmpi
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
441 #define FLD(f) abuf->fields.fmt_cmpi.f
442 EXTRACT_FMT_CMPI_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
444 EXTRACT_FMT_CMPI_CODE
446 /* Record the fields for the semantic handler. */
447 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
448 FLD (f_simm16
) = f_simm16
;
449 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_cmpi", "src2 0x%x", 'x', f_r2
, "simm16 0x%x", 'x', f_simm16
, (char *) 0));
451 #if WITH_PROFILE_MODEL_P
452 /* Record the fields for profiling. */
453 if (PROFILE_MODEL_P (current_cpu
))
455 FLD (in_src2
) = f_r2
;
462 EX_FN_NAME (m32rbf
,fmt_div
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
464 #define FLD(f) abuf->fields.fmt_div.f
465 EXTRACT_FMT_DIV_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
469 /* Record the fields for the semantic handler. */
470 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
471 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
472 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_div", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
474 #if WITH_PROFILE_MODEL_P
475 /* Record the fields for profiling. */
476 if (PROFILE_MODEL_P (current_cpu
))
487 EX_FN_NAME (m32rbf
,fmt_jl
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
489 #define FLD(f) abuf->fields.cti.fields.fmt_jl.f
490 EXTRACT_FMT_JL_VARS
/* f-op1 f-r1 f-op2 f-r2 */
494 /* Record the fields for the semantic handler. */
495 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
496 SEM_BRANCH_INIT_EXTRACT (abuf
);
497 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_jl", "sr 0x%x", 'x', f_r2
, (char *) 0));
499 #if WITH_PROFILE_MODEL_P
500 /* Record the fields for profiling. */
501 if (PROFILE_MODEL_P (current_cpu
))
504 FLD (out_h_gr_14
) = 14;
511 EX_FN_NAME (m32rbf
,fmt_jmp
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
513 #define FLD(f) abuf->fields.cti.fields.fmt_jmp.f
514 EXTRACT_FMT_JMP_VARS
/* f-op1 f-r1 f-op2 f-r2 */
518 /* Record the fields for the semantic handler. */
519 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
520 SEM_BRANCH_INIT_EXTRACT (abuf
);
521 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_jmp", "sr 0x%x", 'x', f_r2
, (char *) 0));
523 #if WITH_PROFILE_MODEL_P
524 /* Record the fields for profiling. */
525 if (PROFILE_MODEL_P (current_cpu
))
534 EX_FN_NAME (m32rbf
,fmt_ld
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
536 #define FLD(f) abuf->fields.fmt_ld.f
537 EXTRACT_FMT_LD_VARS
/* f-op1 f-r1 f-op2 f-r2 */
541 /* Record the fields for the semantic handler. */
542 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
543 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
544 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ld", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
546 #if WITH_PROFILE_MODEL_P
547 /* Record the fields for profiling. */
548 if (PROFILE_MODEL_P (current_cpu
))
558 EX_FN_NAME (m32rbf
,fmt_ld_d
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
560 #define FLD(f) abuf->fields.fmt_ld_d.f
561 EXTRACT_FMT_LD_D_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
563 EXTRACT_FMT_LD_D_CODE
565 /* Record the fields for the semantic handler. */
566 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
567 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
568 FLD (f_simm16
) = f_simm16
;
569 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ld_d", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
571 #if WITH_PROFILE_MODEL_P
572 /* Record the fields for profiling. */
573 if (PROFILE_MODEL_P (current_cpu
))
583 EX_FN_NAME (m32rbf
,fmt_ldb
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
585 #define FLD(f) abuf->fields.fmt_ldb.f
586 EXTRACT_FMT_LDB_VARS
/* f-op1 f-r1 f-op2 f-r2 */
590 /* Record the fields for the semantic handler. */
591 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
592 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
593 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ldb", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
595 #if WITH_PROFILE_MODEL_P
596 /* Record the fields for profiling. */
597 if (PROFILE_MODEL_P (current_cpu
))
607 EX_FN_NAME (m32rbf
,fmt_ldb_d
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
609 #define FLD(f) abuf->fields.fmt_ldb_d.f
610 EXTRACT_FMT_LDB_D_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
612 EXTRACT_FMT_LDB_D_CODE
614 /* Record the fields for the semantic handler. */
615 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
616 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
617 FLD (f_simm16
) = f_simm16
;
618 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ldb_d", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
620 #if WITH_PROFILE_MODEL_P
621 /* Record the fields for profiling. */
622 if (PROFILE_MODEL_P (current_cpu
))
632 EX_FN_NAME (m32rbf
,fmt_ldh
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
634 #define FLD(f) abuf->fields.fmt_ldh.f
635 EXTRACT_FMT_LDH_VARS
/* f-op1 f-r1 f-op2 f-r2 */
639 /* Record the fields for the semantic handler. */
640 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
641 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
642 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ldh", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
644 #if WITH_PROFILE_MODEL_P
645 /* Record the fields for profiling. */
646 if (PROFILE_MODEL_P (current_cpu
))
656 EX_FN_NAME (m32rbf
,fmt_ldh_d
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
658 #define FLD(f) abuf->fields.fmt_ldh_d.f
659 EXTRACT_FMT_LDH_D_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
661 EXTRACT_FMT_LDH_D_CODE
663 /* Record the fields for the semantic handler. */
664 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
665 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
666 FLD (f_simm16
) = f_simm16
;
667 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ldh_d", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
669 #if WITH_PROFILE_MODEL_P
670 /* Record the fields for profiling. */
671 if (PROFILE_MODEL_P (current_cpu
))
681 EX_FN_NAME (m32rbf
,fmt_ld_plus
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
683 #define FLD(f) abuf->fields.fmt_ld_plus.f
684 EXTRACT_FMT_LD_PLUS_VARS
/* f-op1 f-r1 f-op2 f-r2 */
686 EXTRACT_FMT_LD_PLUS_CODE
688 /* Record the fields for the semantic handler. */
689 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
690 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
691 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ld_plus", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
693 #if WITH_PROFILE_MODEL_P
694 /* Record the fields for profiling. */
695 if (PROFILE_MODEL_P (current_cpu
))
706 EX_FN_NAME (m32rbf
,fmt_ld24
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
708 #define FLD(f) abuf->fields.fmt_ld24.f
709 EXTRACT_FMT_LD24_VARS
/* f-op1 f-r1 f-uimm24 */
711 EXTRACT_FMT_LD24_CODE
713 /* Record the fields for the semantic handler. */
714 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
715 FLD (f_uimm24
) = f_uimm24
;
716 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ld24", "dr 0x%x", 'x', f_r1
, "uimm24 0x%x", 'x', f_uimm24
, (char *) 0));
718 #if WITH_PROFILE_MODEL_P
719 /* Record the fields for profiling. */
720 if (PROFILE_MODEL_P (current_cpu
))
729 EX_FN_NAME (m32rbf
,fmt_ldi8
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
731 #define FLD(f) abuf->fields.fmt_ldi8.f
732 EXTRACT_FMT_LDI8_VARS
/* f-op1 f-r1 f-simm8 */
734 EXTRACT_FMT_LDI8_CODE
736 /* Record the fields for the semantic handler. */
737 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
738 FLD (f_simm8
) = f_simm8
;
739 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ldi8", "dr 0x%x", 'x', f_r1
, "simm8 0x%x", 'x', f_simm8
, (char *) 0));
741 #if WITH_PROFILE_MODEL_P
742 /* Record the fields for profiling. */
743 if (PROFILE_MODEL_P (current_cpu
))
752 EX_FN_NAME (m32rbf
,fmt_ldi16
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
754 #define FLD(f) abuf->fields.fmt_ldi16.f
755 EXTRACT_FMT_LDI16_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
757 EXTRACT_FMT_LDI16_CODE
759 /* Record the fields for the semantic handler. */
760 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
761 FLD (f_simm16
) = f_simm16
;
762 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_ldi16", "dr 0x%x", 'x', f_r1
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
764 #if WITH_PROFILE_MODEL_P
765 /* Record the fields for profiling. */
766 if (PROFILE_MODEL_P (current_cpu
))
775 EX_FN_NAME (m32rbf
,fmt_lock
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
777 #define FLD(f) abuf->fields.fmt_lock.f
778 EXTRACT_FMT_LOCK_VARS
/* f-op1 f-r1 f-op2 f-r2 */
780 EXTRACT_FMT_LOCK_CODE
782 /* Record the fields for the semantic handler. */
783 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
784 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
785 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_lock", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
787 #if WITH_PROFILE_MODEL_P
788 /* Record the fields for profiling. */
789 if (PROFILE_MODEL_P (current_cpu
))
799 EX_FN_NAME (m32rbf
,fmt_machi
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
801 #define FLD(f) abuf->fields.fmt_machi.f
802 EXTRACT_FMT_MACHI_VARS
/* f-op1 f-r1 f-op2 f-r2 */
804 EXTRACT_FMT_MACHI_CODE
806 /* Record the fields for the semantic handler. */
807 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
808 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
809 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_machi", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
811 #if WITH_PROFILE_MODEL_P
812 /* Record the fields for profiling. */
813 if (PROFILE_MODEL_P (current_cpu
))
815 FLD (in_src1
) = f_r1
;
816 FLD (in_src2
) = f_r2
;
823 EX_FN_NAME (m32rbf
,fmt_mulhi
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
825 #define FLD(f) abuf->fields.fmt_mulhi.f
826 EXTRACT_FMT_MULHI_VARS
/* f-op1 f-r1 f-op2 f-r2 */
828 EXTRACT_FMT_MULHI_CODE
830 /* Record the fields for the semantic handler. */
831 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
832 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
833 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_mulhi", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
835 #if WITH_PROFILE_MODEL_P
836 /* Record the fields for profiling. */
837 if (PROFILE_MODEL_P (current_cpu
))
839 FLD (in_src1
) = f_r1
;
840 FLD (in_src2
) = f_r2
;
847 EX_FN_NAME (m32rbf
,fmt_mv
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
849 #define FLD(f) abuf->fields.fmt_mv.f
850 EXTRACT_FMT_MV_VARS
/* f-op1 f-r1 f-op2 f-r2 */
854 /* Record the fields for the semantic handler. */
855 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
856 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
857 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_mv", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
859 #if WITH_PROFILE_MODEL_P
860 /* Record the fields for profiling. */
861 if (PROFILE_MODEL_P (current_cpu
))
871 EX_FN_NAME (m32rbf
,fmt_mvfachi
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
873 #define FLD(f) abuf->fields.fmt_mvfachi.f
874 EXTRACT_FMT_MVFACHI_VARS
/* f-op1 f-r1 f-op2 f-r2 */
876 EXTRACT_FMT_MVFACHI_CODE
878 /* Record the fields for the semantic handler. */
879 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
880 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_mvfachi", "dr 0x%x", 'x', f_r1
, (char *) 0));
882 #if WITH_PROFILE_MODEL_P
883 /* Record the fields for profiling. */
884 if (PROFILE_MODEL_P (current_cpu
))
893 EX_FN_NAME (m32rbf
,fmt_mvfc
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
895 #define FLD(f) abuf->fields.fmt_mvfc.f
896 EXTRACT_FMT_MVFC_VARS
/* f-op1 f-r1 f-op2 f-r2 */
898 EXTRACT_FMT_MVFC_CODE
900 /* Record the fields for the semantic handler. */
901 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
903 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_mvfc", "dr 0x%x", 'x', f_r1
, "scr 0x%x", 'x', f_r2
, (char *) 0));
905 #if WITH_PROFILE_MODEL_P
906 /* Record the fields for profiling. */
907 if (PROFILE_MODEL_P (current_cpu
))
916 EX_FN_NAME (m32rbf
,fmt_mvtachi
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
918 #define FLD(f) abuf->fields.fmt_mvtachi.f
919 EXTRACT_FMT_MVTACHI_VARS
/* f-op1 f-r1 f-op2 f-r2 */
921 EXTRACT_FMT_MVTACHI_CODE
923 /* Record the fields for the semantic handler. */
924 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
925 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_mvtachi", "src1 0x%x", 'x', f_r1
, (char *) 0));
927 #if WITH_PROFILE_MODEL_P
928 /* Record the fields for profiling. */
929 if (PROFILE_MODEL_P (current_cpu
))
931 FLD (in_src1
) = f_r1
;
938 EX_FN_NAME (m32rbf
,fmt_mvtc
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
940 #define FLD(f) abuf->fields.fmt_mvtc.f
941 EXTRACT_FMT_MVTC_VARS
/* f-op1 f-r1 f-op2 f-r2 */
943 EXTRACT_FMT_MVTC_CODE
945 /* Record the fields for the semantic handler. */
947 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
948 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_mvtc", "dcr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, (char *) 0));
950 #if WITH_PROFILE_MODEL_P
951 /* Record the fields for profiling. */
952 if (PROFILE_MODEL_P (current_cpu
))
961 EX_FN_NAME (m32rbf
,fmt_nop
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
963 #define FLD(f) abuf->fields.fmt_nop.f
964 EXTRACT_FMT_NOP_VARS
/* f-op1 f-r1 f-op2 f-r2 */
968 /* Record the fields for the semantic handler. */
969 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_nop", (char *) 0));
975 EX_FN_NAME (m32rbf
,fmt_rac
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
977 #define FLD(f) abuf->fields.fmt_rac.f
978 EXTRACT_FMT_RAC_VARS
/* f-op1 f-r1 f-op2 f-r2 */
982 /* Record the fields for the semantic handler. */
983 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_rac", (char *) 0));
989 EX_FN_NAME (m32rbf
,fmt_rte
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
991 #define FLD(f) abuf->fields.cti.fields.fmt_rte.f
992 EXTRACT_FMT_RTE_VARS
/* f-op1 f-r1 f-op2 f-r2 */
996 /* Record the fields for the semantic handler. */
997 SEM_BRANCH_INIT_EXTRACT (abuf
);
998 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_rte", (char *) 0));
1000 #if WITH_PROFILE_MODEL_P
1001 /* Record the fields for profiling. */
1002 if (PROFILE_MODEL_P (current_cpu
))
1010 EX_FN_NAME (m32rbf
,fmt_seth
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1012 #define FLD(f) abuf->fields.fmt_seth.f
1013 EXTRACT_FMT_SETH_VARS
/* f-op1 f-r1 f-op2 f-r2 f-hi16 */
1015 EXTRACT_FMT_SETH_CODE
1017 /* Record the fields for the semantic handler. */
1018 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1019 FLD (f_hi16
) = f_hi16
;
1020 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_seth", "dr 0x%x", 'x', f_r1
, "hi16 0x%x", 'x', f_hi16
, (char *) 0));
1022 #if WITH_PROFILE_MODEL_P
1023 /* Record the fields for profiling. */
1024 if (PROFILE_MODEL_P (current_cpu
))
1026 FLD (out_dr
) = f_r1
;
1033 EX_FN_NAME (m32rbf
,fmt_sll3
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1035 #define FLD(f) abuf->fields.fmt_sll3.f
1036 EXTRACT_FMT_SLL3_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
1038 EXTRACT_FMT_SLL3_CODE
1040 /* Record the fields for the semantic handler. */
1041 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1042 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1043 FLD (f_simm16
) = f_simm16
;
1044 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_sll3", "dr 0x%x", 'x', f_r1
, "sr 0x%x", 'x', f_r2
, "simm16 0x%x", 'x', f_simm16
, (char *) 0));
1046 #if WITH_PROFILE_MODEL_P
1047 /* Record the fields for profiling. */
1048 if (PROFILE_MODEL_P (current_cpu
))
1051 FLD (out_dr
) = f_r1
;
1058 EX_FN_NAME (m32rbf
,fmt_slli
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1060 #define FLD(f) abuf->fields.fmt_slli.f
1061 EXTRACT_FMT_SLLI_VARS
/* f-op1 f-r1 f-shift-op2 f-uimm5 */
1063 EXTRACT_FMT_SLLI_CODE
1065 /* Record the fields for the semantic handler. */
1066 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1067 FLD (f_uimm5
) = f_uimm5
;
1068 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_slli", "dr 0x%x", 'x', f_r1
, "uimm5 0x%x", 'x', f_uimm5
, (char *) 0));
1070 #if WITH_PROFILE_MODEL_P
1071 /* Record the fields for profiling. */
1072 if (PROFILE_MODEL_P (current_cpu
))
1075 FLD (out_dr
) = f_r1
;
1082 EX_FN_NAME (m32rbf
,fmt_st
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1084 #define FLD(f) abuf->fields.fmt_st.f
1085 EXTRACT_FMT_ST_VARS
/* f-op1 f-r1 f-op2 f-r2 */
1089 /* Record the fields for the semantic handler. */
1090 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1091 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1092 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_st", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
1094 #if WITH_PROFILE_MODEL_P
1095 /* Record the fields for profiling. */
1096 if (PROFILE_MODEL_P (current_cpu
))
1098 FLD (in_src2
) = f_r2
;
1099 FLD (in_src1
) = f_r1
;
1106 EX_FN_NAME (m32rbf
,fmt_st_d
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1108 #define FLD(f) abuf->fields.fmt_st_d.f
1109 EXTRACT_FMT_ST_D_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
1111 EXTRACT_FMT_ST_D_CODE
1113 /* Record the fields for the semantic handler. */
1114 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1115 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1116 FLD (f_simm16
) = f_simm16
;
1117 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_st_d", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
1119 #if WITH_PROFILE_MODEL_P
1120 /* Record the fields for profiling. */
1121 if (PROFILE_MODEL_P (current_cpu
))
1123 FLD (in_src2
) = f_r2
;
1124 FLD (in_src1
) = f_r1
;
1131 EX_FN_NAME (m32rbf
,fmt_stb
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1133 #define FLD(f) abuf->fields.fmt_stb.f
1134 EXTRACT_FMT_STB_VARS
/* f-op1 f-r1 f-op2 f-r2 */
1136 EXTRACT_FMT_STB_CODE
1138 /* Record the fields for the semantic handler. */
1139 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1140 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1141 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_stb", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
1143 #if WITH_PROFILE_MODEL_P
1144 /* Record the fields for profiling. */
1145 if (PROFILE_MODEL_P (current_cpu
))
1147 FLD (in_src2
) = f_r2
;
1148 FLD (in_src1
) = f_r1
;
1155 EX_FN_NAME (m32rbf
,fmt_stb_d
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1157 #define FLD(f) abuf->fields.fmt_stb_d.f
1158 EXTRACT_FMT_STB_D_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
1160 EXTRACT_FMT_STB_D_CODE
1162 /* Record the fields for the semantic handler. */
1163 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1164 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1165 FLD (f_simm16
) = f_simm16
;
1166 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_stb_d", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
1168 #if WITH_PROFILE_MODEL_P
1169 /* Record the fields for profiling. */
1170 if (PROFILE_MODEL_P (current_cpu
))
1172 FLD (in_src2
) = f_r2
;
1173 FLD (in_src1
) = f_r1
;
1180 EX_FN_NAME (m32rbf
,fmt_sth
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1182 #define FLD(f) abuf->fields.fmt_sth.f
1183 EXTRACT_FMT_STH_VARS
/* f-op1 f-r1 f-op2 f-r2 */
1185 EXTRACT_FMT_STH_CODE
1187 /* Record the fields for the semantic handler. */
1188 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1189 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1190 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_sth", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
1192 #if WITH_PROFILE_MODEL_P
1193 /* Record the fields for profiling. */
1194 if (PROFILE_MODEL_P (current_cpu
))
1196 FLD (in_src2
) = f_r2
;
1197 FLD (in_src1
) = f_r1
;
1204 EX_FN_NAME (m32rbf
,fmt_sth_d
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1206 #define FLD(f) abuf->fields.fmt_sth_d.f
1207 EXTRACT_FMT_STH_D_VARS
/* f-op1 f-r1 f-op2 f-r2 f-simm16 */
1209 EXTRACT_FMT_STH_D_CODE
1211 /* Record the fields for the semantic handler. */
1212 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1213 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1214 FLD (f_simm16
) = f_simm16
;
1215 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_sth_d", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, "slo16 0x%x", 'x', f_simm16
, (char *) 0));
1217 #if WITH_PROFILE_MODEL_P
1218 /* Record the fields for profiling. */
1219 if (PROFILE_MODEL_P (current_cpu
))
1221 FLD (in_src2
) = f_r2
;
1222 FLD (in_src1
) = f_r1
;
1229 EX_FN_NAME (m32rbf
,fmt_st_plus
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1231 #define FLD(f) abuf->fields.fmt_st_plus.f
1232 EXTRACT_FMT_ST_PLUS_VARS
/* f-op1 f-r1 f-op2 f-r2 */
1234 EXTRACT_FMT_ST_PLUS_CODE
1236 /* Record the fields for the semantic handler. */
1237 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1238 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1239 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_st_plus", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
1241 #if WITH_PROFILE_MODEL_P
1242 /* Record the fields for profiling. */
1243 if (PROFILE_MODEL_P (current_cpu
))
1245 FLD (in_src2
) = f_r2
;
1246 FLD (in_src1
) = f_r1
;
1247 FLD (out_src2
) = f_r2
;
1254 EX_FN_NAME (m32rbf
,fmt_trap
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1256 #define FLD(f) abuf->fields.cti.fields.fmt_trap.f
1257 EXTRACT_FMT_TRAP_VARS
/* f-op1 f-r1 f-op2 f-uimm4 */
1259 EXTRACT_FMT_TRAP_CODE
1261 /* Record the fields for the semantic handler. */
1262 FLD (f_uimm4
) = f_uimm4
;
1263 SEM_BRANCH_INIT_EXTRACT (abuf
);
1264 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_trap", "uimm4 0x%x", 'x', f_uimm4
, (char *) 0));
1266 #if WITH_PROFILE_MODEL_P
1267 /* Record the fields for profiling. */
1268 if (PROFILE_MODEL_P (current_cpu
))
1276 EX_FN_NAME (m32rbf
,fmt_unlock
) (SIM_CPU
*current_cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1278 #define FLD(f) abuf->fields.fmt_unlock.f
1279 EXTRACT_FMT_UNLOCK_VARS
/* f-op1 f-r1 f-op2 f-r2 */
1281 EXTRACT_FMT_UNLOCK_CODE
1283 /* Record the fields for the semantic handler. */
1284 FLD (f_r1
) = & CPU (h_gr
)[f_r1
];
1285 FLD (f_r2
) = & CPU (h_gr
)[f_r2
];
1286 TRACE_EXTRACT (current_cpu
, (current_cpu
, pc
, "fmt_unlock", "src1 0x%x", 'x', f_r1
, "src2 0x%x", 'x', f_r2
, (char *) 0));
1288 #if WITH_PROFILE_MODEL_P
1289 /* Record the fields for profiling. */
1290 if (PROFILE_MODEL_P (current_cpu
))
1292 FLD (in_src2
) = f_r2
;
1293 FLD (in_src1
) = f_r1
;
1300 EX_FN_NAME (m32rbf
,fmt_empty
) (SIM_CPU
*cpu
, PCADDR pc
, insn_t insn
, ARGBUF
*abuf
)
1302 /* Empty format handler for virtual insns. */