Obey --silent
[deliverable/binutils-gdb.git] / sim / ppc / mon.h
1 /* This file is part of the program psim.
2
3 Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
4
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.
9
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.
14
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.
18
19 */
20
21
22 #ifndef _MON_H_
23 #define _MON_H_
24
25 #ifndef INLINE_MON
26 #define INLINE_MON
27 #endif
28
29 #include "basics.h"
30 #include "itable.h"
31
32 /* monitor/logger: counts what the simulation is up to */
33
34 typedef struct _mon mon;
35 typedef struct _cpu_mon cpu_mon;
36
37 INLINE_MON mon *mon_create
38 (void);
39
40 INLINE_MON cpu_mon *mon_cpu
41 (mon *monitor,
42 int cpu_nr);
43
44 INLINE_MON void mon_init
45 (mon *monitor,
46 int nr_cpus);
47
48 INLINE_MON void mon_issue
49 (itable_index index,
50 cpu *processor,
51 unsigned_word cia);
52
53 /* NOTE - there is no mon_iload - it is made reduntant by mon_issue()
54 and besides when the cpu's have their own cache, the information is
55 wrong */
56
57 INLINE_MON void mon_read
58 (unsigned_word ea,
59 unsigned_word ra,
60 unsigned nr_bytes,
61 cpu *processor,
62 unsigned_word cia);
63
64 INLINE_MON void mon_write
65 (unsigned_word ea,
66 unsigned_word ra,
67 unsigned nr_bytes,
68 cpu *processor,
69 unsigned_word cia);
70
71 INLINE_MON void mon_print_info
72 (psim *system,
73 mon *monitor,
74 int verbose);
75
76 #endif
This page took 0.030642 seconds and 4 git commands to generate.