| /* | |
| * Physical memory access templates | |
| * | |
| * Copyright (c) 2003 Fabrice Bellard | |
| * Copyright (c) 2015 Linaro, Inc. | |
| * Copyright (c) 2016 Red Hat, Inc. | |
| * | |
| * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | |
| * version 2.1 of the License, or (at your option) any later version. | |
| * | |
| * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU Lesser General Public | |
| * License along with this library; if not, see <http://www.gnu.org/licenses/>. | |
| */ | |
| uint8_t glue(address_space_ldub, SUFFIX)(ARG1_DECL, | |
| hwaddr addr, MemTxAttrs attrs, MemTxResult *result); | |
| void glue(address_space_stb, SUFFIX)(ARG1_DECL, | |
| hwaddr addr, uint8_t val, MemTxAttrs attrs, MemTxResult *result); | |
| #ifndef TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API | |
| #define ENDIANNESS | |
| #include "system/memory_ldst_endian.h.inc" | |
| #endif /* TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API */ | |
| #define ENDIANNESS _le | |
| #include "system/memory_ldst_endian.h.inc" | |
| #define ENDIANNESS _be | |
| #include "system/memory_ldst_endian.h.inc" | |
| #undef ARG1_DECL | |
| #undef ARG1 | |
| #undef SUFFIX |