gdb/copyright.py: Convert to Python 3
[deliverable/binutils-gdb.git] / sim / m32c / mem.h
... / ...
CommitLineData
1/* mem.h --- interface to memory for M32C simulator.
2
3Copyright (C) 2005-2019 Free Software Foundation, Inc.
4Contributed by Red Hat, Inc.
5
6This file is part of the GNU simulators.
7
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.
12
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.
17
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>. */
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
30void mem_put_blk (int address, const void *bufptr, int nbytes);
31
32unsigned char mem_get_pc (void);
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);
42
43void m32c_sim_restore_console (void);
44
45extern int m32c_use_raw_console;
This page took 0.022275 seconds and 4 git commands to generate.