]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m32c/mem.h
Update years in copyright notice for the GDB files.
[thirdparty/binutils-gdb.git] / sim / m32c / mem.h
CommitLineData
d45a4bef
JB
1/* mem.h --- interface to memory for M32C simulator.
2
8acc9f48 3Copyright (C) 2005-2013 Free Software Foundation, Inc.
d45a4bef
JB
4Contributed by Red Hat, Inc.
5
6This file is part of the GNU simulators.
7
4744ac1b
JB
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3 of the License, or
11(at your option) any later version.
d45a4bef 12
4744ac1b
JB
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
d45a4bef
JB
17
18You should have received a copy of the GNU General Public License
4744ac1b 19along with this program. If not, see <http://www.gnu.org/licenses/>. */
d45a4bef
JB
20
21
22void init_mem (void);
23void mem_usage_stats (void);
24
25void mem_put_qi (int address, unsigned char value);
26void mem_put_hi (int address, unsigned short value);
27void mem_put_psi (int address, unsigned long value);
28void mem_put_si (int address, unsigned long value);
29
5558e7e6 30void mem_put_blk (int address, const void *bufptr, int nbytes);
d45a4bef
JB
31
32unsigned char mem_get_pc ();
33
34unsigned char mem_get_qi (int address);
35unsigned short mem_get_hi (int address);
36unsigned long mem_get_psi (int address);
37unsigned long mem_get_si (int address);
38
39void mem_get_blk (int address, void *bufptr, int nbytes);
40
41int sign_ext (int v, int bits);
7cc70e53
DD
42
43void m32c_sim_restore_console ();
e7ddc197
DD
44
45extern int m32c_use_raw_console;