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"
27 #include "sim-inline.h"
28 #include "sim-types.h"
30 #include "sim-endian.h"
32 /* These are generated files. */
41 #include "sim-events.h"
53 /* escape route for inner functions */
57 jmp_buf path_to_restart
;
59 /* status from last halt */
63 /* the processors proper */
65 #define STATE_CPU(sd, n) (&(sd)->cpu)
72 /* (re) initialize the simulator */
74 extern void engine_init
78 /* Mechanisms for stopping/restarting the simulation */
80 extern void engine_error
82 instruction_address cia
,
86 extern void engine_halt
88 instruction_address cia
,
92 extern void engine_restart
94 instruction_address cia
);
99 /* SIMULATE INSTRUCTIONS, various different ways of achieving the same
100 thing (others later) */
102 extern void engine_run_until_stop
104 volatile int *keep_running
);
This page took 0.049732 seconds and 5 git commands to generate.