sim: drop --enable-sim-cflags option
[external/binutils.git] / sim / aarch64 / memory.h
1 /* memory.h -- Prototypes for AArch64 memory accessor functions.
2
3    Copyright (C) 2015-2016 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 "bfd.h"
27 #include "simulator.h"
28
29 extern float        aarch64_get_mem_float (sim_cpu *, uint64_t);
30 extern double       aarch64_get_mem_double (sim_cpu *, uint64_t);
31 extern void         aarch64_get_mem_long_double (sim_cpu *, uint64_t, FRegister *);
32
33 extern uint64_t     aarch64_get_mem_u64 (sim_cpu *, uint64_t);
34 extern int64_t      aarch64_get_mem_s64 (sim_cpu *, uint64_t);
35 extern uint32_t     aarch64_get_mem_u32 (sim_cpu *, uint64_t);
36 extern int32_t      aarch64_get_mem_s32 (sim_cpu *, uint64_t);
37 extern uint32_t     aarch64_get_mem_u16 (sim_cpu *, uint64_t);
38 extern int32_t      aarch64_get_mem_s16 (sim_cpu *, uint64_t);
39 extern uint32_t     aarch64_get_mem_u8  (sim_cpu *, uint64_t);
40 extern int32_t      aarch64_get_mem_s8  (sim_cpu *, uint64_t);
41 extern void         aarch64_get_mem_blk (sim_cpu *, uint64_t, char *, unsigned);
42 extern const char * aarch64_get_mem_ptr (sim_cpu *, uint64_t);
43
44 extern void         aarch64_set_mem_float (sim_cpu *, uint64_t, float);
45 extern void         aarch64_set_mem_double (sim_cpu *, uint64_t, double);
46 extern void         aarch64_set_mem_long_double (sim_cpu *, uint64_t, FRegister);
47
48 extern void         aarch64_set_mem_u64 (sim_cpu *, uint64_t, uint64_t);
49 extern void         aarch64_set_mem_s64 (sim_cpu *, uint64_t, int64_t);
50 extern void         aarch64_set_mem_u32 (sim_cpu *, uint64_t, uint32_t);
51 extern void         aarch64_set_mem_s32 (sim_cpu *, uint64_t, int32_t);
52 extern void         aarch64_set_mem_u16 (sim_cpu *, uint64_t, uint16_t);
53 extern void         aarch64_set_mem_s16 (sim_cpu *, uint64_t, int16_t);
54 extern void         aarch64_set_mem_u8  (sim_cpu *, uint64_t, uint8_t);
55 extern void         aarch64_set_mem_s8  (sim_cpu *, uint64_t, int8_t);
56
57 #define STACK_TOP   0x07FFFF00
58
59 extern uint64_t     aarch64_get_heap_start (sim_cpu *);
60 extern uint64_t     aarch64_get_stack_start (sim_cpu *);
61
62 extern void         mem_add_blk (sim_cpu *, uint64_t, char *, uint64_t, bfd_boolean);
63
64 #endif /* _MEMORY_H */