Commit | Line | Data |
---|---|---|
2e8cf49e NC |
1 | /* memory.h -- Prototypes for AArch64 memory accessor functions. |
2 | ||
618f726f | 3 | Copyright (C) 2015-2016 Free Software Foundation, Inc. |
2e8cf49e NC |
4 | |
5 | Contributed by Red Hat. | |
6 | ||
7 | This file is part of GDB. | |
8 | ||
9 | This program is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 3 of the License, or | |
12 | (at your option) any later version. | |
13 | ||
14 | This program is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
21 | ||
22 | #ifndef _MEMORY_H | |
23 | #define _MEMORY_H | |
24 | ||
25 | #include <sys/types.h> | |
26 | #include "bfd.h" | |
27 | #include "simulator.h" | |
28 | ||
2e8cf49e | 29 | extern void aarch64_get_mem_long_double (sim_cpu *, uint64_t, FRegister *); |
2e8cf49e NC |
30 | extern uint64_t aarch64_get_mem_u64 (sim_cpu *, uint64_t); |
31 | extern int64_t aarch64_get_mem_s64 (sim_cpu *, uint64_t); | |
32 | extern uint32_t aarch64_get_mem_u32 (sim_cpu *, uint64_t); | |
33 | extern int32_t aarch64_get_mem_s32 (sim_cpu *, uint64_t); | |
34 | extern uint32_t aarch64_get_mem_u16 (sim_cpu *, uint64_t); | |
35 | extern int32_t aarch64_get_mem_s16 (sim_cpu *, uint64_t); | |
36 | extern uint32_t aarch64_get_mem_u8 (sim_cpu *, uint64_t); | |
37 | extern int32_t aarch64_get_mem_s8 (sim_cpu *, uint64_t); | |
38 | extern void aarch64_get_mem_blk (sim_cpu *, uint64_t, char *, unsigned); | |
39 | extern const char * aarch64_get_mem_ptr (sim_cpu *, uint64_t); | |
40 | ||
2e8cf49e | 41 | extern void aarch64_set_mem_long_double (sim_cpu *, uint64_t, FRegister); |
2e8cf49e NC |
42 | extern void aarch64_set_mem_u64 (sim_cpu *, uint64_t, uint64_t); |
43 | extern void aarch64_set_mem_s64 (sim_cpu *, uint64_t, int64_t); | |
44 | extern void aarch64_set_mem_u32 (sim_cpu *, uint64_t, uint32_t); | |
45 | extern void aarch64_set_mem_s32 (sim_cpu *, uint64_t, int32_t); | |
46 | extern void aarch64_set_mem_u16 (sim_cpu *, uint64_t, uint16_t); | |
47 | extern void aarch64_set_mem_s16 (sim_cpu *, uint64_t, int16_t); | |
48 | extern void aarch64_set_mem_u8 (sim_cpu *, uint64_t, uint8_t); | |
49 | extern void aarch64_set_mem_s8 (sim_cpu *, uint64_t, int8_t); | |
50 | ||
51 | #define STACK_TOP 0x07FFFF00 | |
52 | ||
53 | extern uint64_t aarch64_get_heap_start (sim_cpu *); | |
54 | extern uint64_t aarch64_get_stack_start (sim_cpu *); | |
55 | ||
56 | extern void mem_add_blk (sim_cpu *, uint64_t, char *, uint64_t, bfd_boolean); | |
57 | ||
58 | #endif /* _MEMORY_H */ |