master
inc 41 lines 1.41 KB
Raw
1 /*
2 * Physical memory access templates
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2015 Linaro, Inc.
6 * Copyright (c) 2016 Red Hat, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 */
21
22 uint8_t glue(address_space_ldub, SUFFIX)(ARG1_DECL,
23 hwaddr addr, MemTxAttrs attrs, MemTxResult *result);
24
25 void glue(address_space_stb, SUFFIX)(ARG1_DECL,
26 hwaddr addr, uint8_t val, MemTxAttrs attrs, MemTxResult *result);
27
28 #ifndef TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API
29 #define ENDIANNESS
30 #include "system/memory_ldst_endian.h.inc"
31 #endif /* TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API */
32
33 #define ENDIANNESS _le
34 #include "system/memory_ldst_endian.h.inc"
35
36 #define ENDIANNESS _be
37 #include "system/memory_ldst_endian.h.inc"
38
39 #undef ARG1_DECL
40 #undef ARG1
41 #undef SUFFIX