diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-23 12:17:59 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-26 06:45:30 -0400 |
commit | 4b7c06837ae0b1ff56473202a42e7e386f53d6db (patch) | |
tree | dee01b661a34b4280c921a800b4c39e9f7d60d7a | |
parent | 89ed83d8b23c11d250c290593cad3ca839d5b053 (diff) | |
download | qemu-4b7c06837ae0b1ff56473202a42e7e386f53d6db.zip qemu-4b7c06837ae0b1ff56473202a42e7e386f53d6db.tar.gz qemu-4b7c06837ae0b1ff56473202a42e7e386f53d6db.tar.bz2 |
libqos: pci-pc: use 32-bit write for EJ register
The memory region ops have min_access_size == 4 so obey it.
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | tests/qtest/libqos/pci-pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/libqos/pci-pc.c b/tests/qtest/libqos/pci-pc.c index 0bc591d..3bb2eb3 100644 --- a/tests/qtest/libqos/pci-pc.c +++ b/tests/qtest/libqos/pci-pc.c @@ -186,7 +186,7 @@ void qpci_unplug_acpi_device_test(QTestState *qts, const char *id, uint8_t slot) g_assert(!qdict_haskey(response, "error")); qobject_unref(response); - qtest_outb(qts, ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot); + qtest_outl(qts, ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot); qtest_qmp_eventwait(qts, "DEVICE_DELETED"); } |