diff options
| author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2019-02-01 11:56:22 +1100 |
|---|---|---|
| committer | David Gibson <david@gibson.dropbear.id.au> | 2019-02-04 18:44:20 +1100 |
| commit | 382b6f22258f3e68c6a4226790eae96e5527e791 (patch) | |
| tree | 1439f080df27601ff2fb84b20d51fc176257e9db /util/oslib-posix.c | |
| parent | 60594fea298d1e014700cc63a92ee43258c8c504 (diff) | |
| download | focaccia-qemu-382b6f22258f3e68c6a4226790eae96e5527e791.tar.gz focaccia-qemu-382b6f22258f3e68c6a4226790eae96e5527e791.zip | |
spapr_pci: Fix endianness in assigned-addresses property
reg->phys_hi and assigned->phys_hi are big endian but we do an extra byteswap anyway when copying reg->phys_hi to assigned->phys_hi. To make things slightly more messy, we also add a relocatable bit (b_n()) although in the right endianness. This fixes endianness of assigned->phys_hi. This is unlikely to produce any visible difference though as we should end up there only in the case of PCI hotplug and even then I am not sure if (d->io_regions[i].addr == PCI_BAR_UNMAPPED) == true. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions