mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
bswap.h: Remove cpu_to_be32wu()
Replace the legacy cpu_to_be32wu() with stl_be_p(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 1383669517-25598-8-git-send-email-peter.maydell@linaro.org Signed-off-by: Anthony Liguori <aliguori@amazon.com>
This commit is contained in:
parent
d8ee2591e4
commit
6bd194ab99
4 changed files with 6 additions and 12 deletions
|
@ -425,7 +425,7 @@ static void pcie_aer_update_log(PCIDevice *dev, const PCIEAERErr *err)
|
|||
/* 7.10.8 Header Log Register */
|
||||
uint8_t *header_log =
|
||||
aer_cap + PCI_ERR_HEADER_LOG + i * sizeof err->header[0];
|
||||
cpu_to_be32wu((uint32_t*)header_log, err->header[i]);
|
||||
stl_be_p(header_log, err->header[i]);
|
||||
}
|
||||
} else {
|
||||
assert(!(err->flags & PCIE_AER_ERR_TLP_PREFIX_PRESENT));
|
||||
|
@ -439,7 +439,7 @@ static void pcie_aer_update_log(PCIDevice *dev, const PCIEAERErr *err)
|
|||
/* 7.10.12 tlp prefix log register */
|
||||
uint8_t *prefix_log =
|
||||
aer_cap + PCI_ERR_TLP_PREFIX_LOG + i * sizeof err->prefix[0];
|
||||
cpu_to_be32wu((uint32_t*)prefix_log, err->prefix[i]);
|
||||
stl_be_p(prefix_log, err->prefix[i]);
|
||||
}
|
||||
errcap |= PCI_ERR_CAP_TLP;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue