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