Revision 09564574
b/hw/usb-ohci.c | ||
---|---|---|
1415 | 1415 |
OHCIState *ohci = ptr; |
1416 | 1416 |
uint32_t retval; |
1417 | 1417 |
|
1418 |
addr &= 0xff; |
|
1419 |
|
|
1418 | 1420 |
/* Only aligned reads are allowed on OHCI */ |
1419 | 1421 |
if (addr & 3) { |
1420 | 1422 |
fprintf(stderr, "usb-ohci: Mis-aligned read\n"); |
... | ... | |
1538 | 1540 |
{ |
1539 | 1541 |
OHCIState *ohci = ptr; |
1540 | 1542 |
|
1543 |
addr &= 0xff; |
|
1544 |
|
|
1541 | 1545 |
#ifdef TARGET_WORDS_BIGENDIAN |
1542 | 1546 |
val = bswap32(val); |
1543 | 1547 |
#endif |
Also available in: Unified diff