1 /* This file is part of the program psim.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 /* the system object */
34 typedef struct _psim psim;
37 /* when the `system' stops, find out why. FIXME - at this point this
38 is really a bit puzzling. After all, how can there be a status
39 when there several processors involved */
41 typedef struct _psim_status {
45 unsigned_word program_counter;
49 /* create a new simulator */
51 extern psim *psim_create
52 (const char *file_name,
56 /* Given the created simulator load either its low or high memory */
61 extern void psim_stack
67 /* Run/stop the system */
75 extern void psim_run_until_stop
79 extern void psim_restart
90 extern psim_status psim_get_status
94 /* reveal the internals of the simulation, giving access to the cpu's */
101 /* manipulate the state (registers or memory) of a processor within
102 the system. In the case of memory, the read/write is performed
103 using the specified processors address translation tables */
105 extern void psim_read_register
108 void *host_ordered_buf,
112 extern void psim_write_register
115 const void *host_ordered_buf,
119 extern unsigned psim_read_memory
127 extern unsigned psim_write_memory
134 int violate_read_only_section);
136 extern void psim_print_info
140 #endif /* _PSIM_H_ */