| 1 | /* memory.h -- Prototypes for AArch64 memory accessor functions. |
| 2 | |
| 3 | Copyright (C) 2015-2017 Free Software Foundation, Inc. |
| 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 "simulator.h" |
| 27 | |
| 28 | extern void aarch64_get_mem_long_double (sim_cpu *, uint64_t, FRegister *); |
| 29 | extern uint64_t aarch64_get_mem_u64 (sim_cpu *, uint64_t); |
| 30 | extern int64_t aarch64_get_mem_s64 (sim_cpu *, uint64_t); |
| 31 | extern uint32_t aarch64_get_mem_u32 (sim_cpu *, uint64_t); |
| 32 | extern int32_t aarch64_get_mem_s32 (sim_cpu *, uint64_t); |
| 33 | extern uint32_t aarch64_get_mem_u16 (sim_cpu *, uint64_t); |
| 34 | extern int32_t aarch64_get_mem_s16 (sim_cpu *, uint64_t); |
| 35 | extern uint32_t aarch64_get_mem_u8 (sim_cpu *, uint64_t); |
| 36 | extern int32_t aarch64_get_mem_s8 (sim_cpu *, uint64_t); |
| 37 | extern void aarch64_get_mem_blk (sim_cpu *, uint64_t, char *, unsigned); |
| 38 | extern const char * aarch64_get_mem_ptr (sim_cpu *, uint64_t); |
| 39 | |
| 40 | extern void aarch64_set_mem_long_double (sim_cpu *, uint64_t, FRegister); |
| 41 | extern void aarch64_set_mem_u64 (sim_cpu *, uint64_t, uint64_t); |
| 42 | extern void aarch64_set_mem_s64 (sim_cpu *, uint64_t, int64_t); |
| 43 | extern void aarch64_set_mem_u32 (sim_cpu *, uint64_t, uint32_t); |
| 44 | extern void aarch64_set_mem_s32 (sim_cpu *, uint64_t, int32_t); |
| 45 | extern void aarch64_set_mem_u16 (sim_cpu *, uint64_t, uint16_t); |
| 46 | extern void aarch64_set_mem_s16 (sim_cpu *, uint64_t, int16_t); |
| 47 | extern void aarch64_set_mem_u8 (sim_cpu *, uint64_t, uint8_t); |
| 48 | extern void aarch64_set_mem_s8 (sim_cpu *, uint64_t, int8_t); |
| 49 | |
| 50 | #define STACK_TOP 0x07FFFF00 |
| 51 | |
| 52 | extern uint64_t aarch64_get_heap_start (sim_cpu *); |
| 53 | extern uint64_t aarch64_get_stack_start (sim_cpu *); |
| 54 | |
| 55 | #endif /* _MEMORY_H */ |