Update tools/unit-tests/unit-pci.c

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/695/head
Marco Oliverio 2026-02-25 17:23:54 +01:00 committed by GitHub
parent 083d795196
commit 729f6a6e9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ START_TEST(test_program_bar_64bit_upper_reject)
test_pci_init(&t);
dev_node = test_pci_add_dev(&t, 0, 0, 0x1234, 0x5678, TEST_PCI_ROOT_BUS);
/* 64-bit prefetchable MMIO BAR, 1MB, but upper mask = 0 (not 0xFFFFFFFF)
* our imple refuses to map so much address space for now */
* our implementation refuses to map so much address space for now */
test_pci_dev_set_bar(&t, dev_node, 0, 0x100000, TEST_PCI_BAR_64BIT | TEST_PCI_BAR_PF);
/* set it manually as test_pci_dev_set_bar only handle 32-bit size */
t.nodes[dev_node].bars[0].upper_mask = 0x0000000F;