No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / sim / iq2000 / cpu.c
blob7b1aa852dd99f8281936fb4a9baec6b7b2fc215d
1 /* Misc. support for CPU family iq2000bf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 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)
12 any later version.
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.
25 #define WANT_CPU iq2000bf
26 #define WANT_CPU_IQ2000BF
28 #include "sim-main.h"
29 #include "cgen-ops.h"
31 /* Get the value of h-pc. */
33 USI
34 iq2000bf_h_pc_get (SIM_CPU *current_cpu)
36 return GET_H_PC ();
39 /* Set a value for h-pc. */
41 void
42 iq2000bf_h_pc_set (SIM_CPU *current_cpu, USI newval)
44 SET_H_PC (newval);
47 /* Get the value of h-gr. */
50 iq2000bf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
52 return GET_H_GR (regno);
55 /* Set a value for h-gr. */
57 void
58 iq2000bf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
60 SET_H_GR (regno, newval);
63 /* Record trace results for INSN. */
65 void
66 iq2000bf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
67 int *indices, TRACE_RECORD *tr)