1 /* This file is part of the program psim.
3 Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
4 Copyright (C) 1997, Free Software Foundation
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #include "sim-basics.h"
30 /* These are generated files. */
35 typedef instruction_address sim_cia
;
36 static const sim_cia null_cia
= {0}; /* Dummy */
37 #define NULL_CIA null_cia
47 /* escape route for inner functions */
51 jmp_buf path_to_restart
;
53 /* status from last halt */
57 /* the processors proper */
59 #define STATE_CPU(sd, n) (&(sd)->cpu)
66 /* (re) initialize the simulator */
68 extern void engine_init