Revision 8827b0fb
b/hw/sd/pl181.c | ||
---|---|---|
175 | 175 |
if (rlen < 0) |
176 | 176 |
goto error; |
177 | 177 |
if (s->cmd & PL181_CMD_RESPONSE) { |
178 |
#define RWORD(n) ((response[n] << 24) | (response[n + 1] << 16) \ |
|
178 |
#define RWORD(n) (((uint32_t)response[n] << 24) | (response[n + 1] << 16) \
|
|
179 | 179 |
| (response[n + 2] << 8) | response[n + 3]) |
180 | 180 |
if (rlen == 0 || (rlen == 4 && (s->cmd & PL181_CMD_LONGRESP))) |
181 | 181 |
goto error; |
Also available in: Unified diff