Skip to content

Commit ef16559

Browse files
blackjackal010Michael Tokarev
authored andcommitted
hw/pci-host: Remove unused pci_host_data_be_ops
pci_host_data_be_ops became unused after endianness fixes Suggested-by: Paolo Bonzini <[email protected]> Signed-off-by: Rakesh Jeyasingh <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Thomas Huth <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Bonzini <[email protected]> (cherry picked from commit 560375c) Signed-off-by: Michael Tokarev <[email protected]>
1 parent cdf3fb0 commit ef16559

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

hw/pci/pci_host.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,6 @@ const MemoryRegionOps pci_host_data_le_ops = {
217217
.endianness = DEVICE_LITTLE_ENDIAN,
218218
};
219219

220-
const MemoryRegionOps pci_host_data_be_ops = {
221-
.read = pci_host_data_read,
222-
.write = pci_host_data_write,
223-
.endianness = DEVICE_BIG_ENDIAN,
224-
};
225-
226220
static bool pci_host_needed(void *opaque)
227221
{
228222
PCIHostState *s = opaque;

include/hw/pci-host/dino.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ static const uint32_t reg800_keep_bits[DINO800_REGS] = {
109109
struct DinoState {
110110
PCIHostState parent_obj;
111111

112-
/*
113-
* PCI_CONFIG_ADDR is parent_obj.config_reg, via pci_host_conf_be_ops,
114-
* so that we can map PCI_CONFIG_DATA to pci_host_data_be_ops.
115-
*/
116112
uint32_t config_reg_dino; /* keep original copy, including 2 lowest bits */
117113

118114
uint32_t iar0;

include/hw/pci/pci_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,5 @@ uint32_t pci_data_read(PCIBus *s, uint32_t addr, unsigned len);
6868
extern const MemoryRegionOps pci_host_conf_le_ops;
6969
extern const MemoryRegionOps pci_host_conf_be_ops;
7070
extern const MemoryRegionOps pci_host_data_le_ops;
71-
extern const MemoryRegionOps pci_host_data_be_ops;
7271

7372
#endif /* PCI_HOST_H */

0 commit comments

Comments
 (0)