mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 07:02:03 -06:00
exec/memory_ldst: extract memory_ldst declarations from cpu-all.h
They are now accessible through exec/memory.h instead, and we make sure all variants are available for common or target dependent code. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250317183417.285700-4-pierrick.bouvier@linaro.org>
This commit is contained in:
parent
663310b05c
commit
3dd08a6920
2 changed files with 0 additions and 16 deletions
|
@ -32,18 +32,6 @@
|
||||||
|
|
||||||
#include "exec/hwaddr.h"
|
#include "exec/hwaddr.h"
|
||||||
|
|
||||||
#define SUFFIX
|
|
||||||
#define ARG1 as
|
|
||||||
#define ARG1_DECL AddressSpace *as
|
|
||||||
#define TARGET_ENDIANNESS
|
|
||||||
#include "exec/memory_ldst.h.inc"
|
|
||||||
|
|
||||||
#define SUFFIX _cached_slow
|
|
||||||
#define ARG1 cache
|
|
||||||
#define ARG1_DECL MemoryRegionCache *cache
|
|
||||||
#define TARGET_ENDIANNESS
|
|
||||||
#include "exec/memory_ldst.h.inc"
|
|
||||||
|
|
||||||
static inline void stl_phys_notdirty(AddressSpace *as, hwaddr addr, uint32_t val)
|
static inline void stl_phys_notdirty(AddressSpace *as, hwaddr addr, uint32_t val)
|
||||||
{
|
{
|
||||||
address_space_stl_notdirty(as, addr, val,
|
address_space_stl_notdirty(as, addr, val,
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef TARGET_ENDIANNESS
|
|
||||||
uint16_t glue(address_space_lduw, SUFFIX)(ARG1_DECL,
|
uint16_t glue(address_space_lduw, SUFFIX)(ARG1_DECL,
|
||||||
hwaddr addr, MemTxAttrs attrs, MemTxResult *result);
|
hwaddr addr, MemTxAttrs attrs, MemTxResult *result);
|
||||||
uint32_t glue(address_space_ldl, SUFFIX)(ARG1_DECL,
|
uint32_t glue(address_space_ldl, SUFFIX)(ARG1_DECL,
|
||||||
|
@ -34,7 +33,6 @@ void glue(address_space_stl, SUFFIX)(ARG1_DECL,
|
||||||
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result);
|
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result);
|
||||||
void glue(address_space_stq, SUFFIX)(ARG1_DECL,
|
void glue(address_space_stq, SUFFIX)(ARG1_DECL,
|
||||||
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result);
|
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result);
|
||||||
#else
|
|
||||||
uint8_t glue(address_space_ldub, SUFFIX)(ARG1_DECL,
|
uint8_t glue(address_space_ldub, SUFFIX)(ARG1_DECL,
|
||||||
hwaddr addr, MemTxAttrs attrs, MemTxResult *result);
|
hwaddr addr, MemTxAttrs attrs, MemTxResult *result);
|
||||||
uint16_t glue(address_space_lduw_le, SUFFIX)(ARG1_DECL,
|
uint16_t glue(address_space_lduw_le, SUFFIX)(ARG1_DECL,
|
||||||
|
@ -63,9 +61,7 @@ void glue(address_space_stq_le, SUFFIX)(ARG1_DECL,
|
||||||
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result);
|
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result);
|
||||||
void glue(address_space_stq_be, SUFFIX)(ARG1_DECL,
|
void glue(address_space_stq_be, SUFFIX)(ARG1_DECL,
|
||||||
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result);
|
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result);
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef ARG1_DECL
|
#undef ARG1_DECL
|
||||||
#undef ARG1
|
#undef ARG1
|
||||||
#undef SUFFIX
|
#undef SUFFIX
|
||||||
#undef TARGET_ENDIANNESS
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue