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.
27 #include "sim-basics.h"
28 #include "sim-signal.h"
30 #include <signal.h> /* For kill() in insns:do_trap */
37 /* These are generated files. */
42 typedef instruction_address sim_cia
;
43 static const sim_cia null_cia
= {0}; /* Dummy */
44 #define NULL_CIA null_cia
45 /* FIXME: Perhaps igen should generate access macros for
46 `instruction_address' that we could use. */
47 #define CIA_ADDR(cia) ((cia).ip)
49 #define WITH_WATCHPOINTS 1
59 /* the processors proper */
61 #define STATE_CPU(sd, n) (&(sd)->cpu)
68 /* (re) initialize the simulator */
70 extern void engine_init
79 #define kill(sig, pid) (errno = EINVAL, -1)