20
20
*/
21
21
22
22
#ifdef TARGET_ENDIANNESS
23
+ static inline uint32_t glue (lduw_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
24
+ {
25
+ return glue (address_space_lduw, SUFFIX)(ARG1, addr,
26
+ MEMTXATTRS_UNSPECIFIED, NULL );
27
+ }
28
+
23
29
static inline uint32_t glue (ldl_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
24
30
{
25
31
return glue (address_space_ldl, SUFFIX)(ARG1, addr,
@@ -32,10 +38,10 @@ static inline uint64_t glue(ldq_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
32
38
MEMTXATTRS_UNSPECIFIED, NULL );
33
39
}
34
40
35
- static inline uint32_t glue (lduw_phys , SUFFIX)(ARG1_DECL, hwaddr addr)
41
+ static inline void glue (stw_phys , SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val )
36
42
{
37
- return glue (address_space_lduw , SUFFIX)(ARG1, addr,
38
- MEMTXATTRS_UNSPECIFIED, NULL );
43
+ glue (address_space_stw , SUFFIX)(ARG1, addr, val ,
44
+ MEMTXATTRS_UNSPECIFIED, NULL );
39
45
}
40
46
41
47
static inline void glue (stl_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
@@ -44,18 +50,30 @@ static inline void glue(stl_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
44
50
MEMTXATTRS_UNSPECIFIED, NULL );
45
51
}
46
52
47
- static inline void glue (stw_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
48
- {
49
- glue (address_space_stw, SUFFIX)(ARG1, addr, val,
50
- MEMTXATTRS_UNSPECIFIED, NULL );
51
- }
52
-
53
53
static inline void glue (stq_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint64_t val)
54
54
{
55
55
glue (address_space_stq, SUFFIX)(ARG1, addr, val,
56
56
MEMTXATTRS_UNSPECIFIED, NULL );
57
57
}
58
58
#else
59
+ static inline uint32_t glue (ldub_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
60
+ {
61
+ return glue (address_space_ldub, SUFFIX)(ARG1, addr,
62
+ MEMTXATTRS_UNSPECIFIED, NULL );
63
+ }
64
+
65
+ static inline uint32_t glue (lduw_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
66
+ {
67
+ return glue (address_space_lduw_le, SUFFIX)(ARG1, addr,
68
+ MEMTXATTRS_UNSPECIFIED, NULL );
69
+ }
70
+
71
+ static inline uint32_t glue (lduw_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
72
+ {
73
+ return glue (address_space_lduw_be, SUFFIX)(ARG1, addr,
74
+ MEMTXATTRS_UNSPECIFIED, NULL );
75
+ }
76
+
59
77
static inline uint32_t glue (ldl_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
60
78
{
61
79
return glue (address_space_ldl_le, SUFFIX)(ARG1, addr,
@@ -80,22 +98,22 @@ static inline uint64_t glue(ldq_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr)
80
98
MEMTXATTRS_UNSPECIFIED, NULL );
81
99
}
82
100
83
- static inline uint32_t glue (ldub_phys , SUFFIX)(ARG1_DECL, hwaddr addr)
101
+ static inline void glue (stb_phys , SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val )
84
102
{
85
- return glue (address_space_ldub , SUFFIX)(ARG1, addr,
86
- MEMTXATTRS_UNSPECIFIED, NULL );
103
+ glue (address_space_stb , SUFFIX)(ARG1, addr, val ,
104
+ MEMTXATTRS_UNSPECIFIED, NULL );
87
105
}
88
106
89
- static inline uint32_t glue (lduw_le_phys , SUFFIX)(ARG1_DECL, hwaddr addr)
107
+ static inline void glue (stw_le_phys , SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val )
90
108
{
91
- return glue (address_space_lduw_le , SUFFIX)(ARG1, addr,
92
- MEMTXATTRS_UNSPECIFIED, NULL );
109
+ glue (address_space_stw_le , SUFFIX)(ARG1, addr, val ,
110
+ MEMTXATTRS_UNSPECIFIED, NULL );
93
111
}
94
112
95
- static inline uint32_t glue (lduw_be_phys , SUFFIX)(ARG1_DECL, hwaddr addr)
113
+ static inline void glue (stw_be_phys , SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val )
96
114
{
97
- return glue (address_space_lduw_be , SUFFIX)(ARG1, addr,
98
- MEMTXATTRS_UNSPECIFIED, NULL );
115
+ glue (address_space_stw_be , SUFFIX)(ARG1, addr, val ,
116
+ MEMTXATTRS_UNSPECIFIED, NULL );
99
117
}
100
118
101
119
static inline void glue (stl_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
@@ -110,24 +128,6 @@ static inline void glue(stl_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t va
110
128
MEMTXATTRS_UNSPECIFIED, NULL );
111
129
}
112
130
113
- static inline void glue (stb_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
114
- {
115
- glue (address_space_stb, SUFFIX)(ARG1, addr, val,
116
- MEMTXATTRS_UNSPECIFIED, NULL );
117
- }
118
-
119
- static inline void glue (stw_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
120
- {
121
- glue (address_space_stw_le, SUFFIX)(ARG1, addr, val,
122
- MEMTXATTRS_UNSPECIFIED, NULL );
123
- }
124
-
125
- static inline void glue (stw_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val)
126
- {
127
- glue (address_space_stw_be, SUFFIX)(ARG1, addr, val,
128
- MEMTXATTRS_UNSPECIFIED, NULL );
129
- }
130
-
131
131
static inline void glue (stq_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint64_t val)
132
132
{
133
133
glue (address_space_stq_le, SUFFIX)(ARG1, addr, val,
0 commit comments