Revision 4dcf7d87
b/hw/pci_host.c | ||
---|---|---|
151 | 151 |
static void pci_host_data_write_noswap(ReadWriteHandler *handler, |
152 | 152 |
pcibus_t addr, uint32_t val, int len) |
153 | 153 |
{ |
154 |
PCIHostState *s = container_of(handler, PCIHostState, data_handler); |
|
154 |
PCIHostState *s = container_of(handler, PCIHostState, data_noswap_handler);
|
|
155 | 155 |
PCI_DPRINTF("write addr %" FMT_PCIBUS " len %d val %x\n", |
156 | 156 |
addr, len, val); |
157 | 157 |
if (s->config_reg & (1u << 31)) |
... | ... | |
161 | 161 |
static uint32_t pci_host_data_read_noswap(ReadWriteHandler *handler, |
162 | 162 |
pcibus_t addr, int len) |
163 | 163 |
{ |
164 |
PCIHostState *s = container_of(handler, PCIHostState, data_handler); |
|
164 |
PCIHostState *s = container_of(handler, PCIHostState, data_noswap_handler);
|
|
165 | 165 |
uint32_t val; |
166 | 166 |
if (!(s->config_reg & (1 << 31))) |
167 | 167 |
return 0xffffffff; |
... | ... | |
212 | 212 |
void pci_host_data_register_ioport(pio_addr_t ioport, PCIHostState *s) |
213 | 213 |
{ |
214 | 214 |
pci_host_init(s); |
215 |
register_ioport_simple(&s->data_handler, ioport, 4, 1); |
|
216 |
register_ioport_simple(&s->data_handler, ioport, 4, 2); |
|
217 |
register_ioport_simple(&s->data_handler, ioport, 4, 4); |
|
215 |
register_ioport_simple(&s->data_noswap_handler, ioport, 4, 1);
|
|
216 |
register_ioport_simple(&s->data_noswap_handler, ioport, 4, 2);
|
|
217 |
register_ioport_simple(&s->data_noswap_handler, ioport, 4, 4);
|
|
218 | 218 |
} |
Also available in: Unified diff