2 Copyright (C) 1998, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
4 Contributed by Cygnus Support.
6 This file is part of GDB, the GNU debugger.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 /* Establish this object */
28 (struct sim_state *sd);
31 /* Parse a hardware definition */
33 struct hw *sim_hw_parse
34 (struct sim_state *sd,
36 ...) __attribute__ ((format (printf, 2, 3)));
39 /* Print the hardware tree */
42 (struct sim_state *sd,
43 void (*print) (struct sim_state *, const char *, va_list ap));
46 /* Abort the simulation specifying HW as the reason */
52 ...) __attribute__ ((format (printf, 3, 4), noreturn));
56 /* CPU: The simulation is running and the current CPU/CIA
57 initiates a data transfer. */
59 void sim_cpu_hw_io_read_buffer
68 void sim_cpu_hw_io_write_buffer
79 /* SYSTEM: A data transfer is being initiated by the system. */
81 unsigned sim_hw_io_read_buffer
82 (struct sim_state *sd,
89 unsigned sim_hw_io_write_buffer
90 (struct sim_state *sd,