]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/i960/cpu.c
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / i960 / cpu.c
1 /* Misc. support for CPU family i960base.
2
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5 Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
6
7 This file is part of the GNU Simulators.
8
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.
13
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.
18
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.
22
23 */
24
25 #define WANT_CPU i960base
26 #define WANT_CPU_I960BASE
27
28 #include "sim-main.h"
29
30 /* Get the value of h-pc. */
31
32 USI
33 i960base_h_pc_get (SIM_CPU *current_cpu)
34 {
35 return CPU (h_pc);
36 }
37
38 /* Set a value for h-pc. */
39
40 void
41 i960base_h_pc_set (SIM_CPU *current_cpu, USI newval)
42 {
43 CPU (h_pc) = newval;
44 }
45
46 /* Get the value of h-gr. */
47
48 SI
49 i960base_h_gr_get (SIM_CPU *current_cpu, UINT regno)
50 {
51 return CPU (h_gr[regno]);
52 }
53
54 /* Set a value for h-gr. */
55
56 void
57 i960base_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
58 {
59 CPU (h_gr[regno]) = newval;
60 }
61
62 /* Get the value of h-cc. */
63
64 SI
65 i960base_h_cc_get (SIM_CPU *current_cpu)
66 {
67 return CPU (h_cc);
68 }
69
70 /* Set a value for h-cc. */
71
72 void
73 i960base_h_cc_set (SIM_CPU *current_cpu, SI newval)
74 {
75 CPU (h_cc) = newval;
76 }
77
78 /* Record trace results for INSN. */
79
80 void
81 i960base_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
82 int *indices, TRACE_RECORD *tr)
83 {
84 }