aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-q35/romstage.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-28 11:09:56 +0100
committerAngel Pons <th3fanbus@gmail.com>2021-01-29 18:36:22 +0000
commit816a41c904d1ba60ead3227bac83d5470f01c1ec (patch)
tree9bca5dda59c0ab3ed81dc5912e52b078e48eb6a5 /src/mainboard/emulation/qemu-q35/romstage.c
parent899525d92c945f458e888955c6196ce1235dc8c6 (diff)
mb/emulation/qemu-q35: Consolidate host bridge definitions
Move all Q35 register definitions into the q35.h header. Note that real hardware does not have EXT_TSEG_MBYTES, because it is QEMU-specific. Change-Id: I4c86ac0bb05563dee111b9b4a4a71c1c31198acd Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50024 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-q35/romstage.c')
-rw-r--r--src/mainboard/emulation/qemu-q35/romstage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/emulation/qemu-q35/romstage.c b/src/mainboard/emulation/qemu-q35/romstage.c
index 465edc84c4..e9637e858e 100644
--- a/src/mainboard/emulation/qemu-q35/romstage.c
+++ b/src/mainboard/emulation/qemu-q35/romstage.c
@@ -12,7 +12,7 @@ static void mainboard_machine_check(void)
{
/* Check that MCFG is active. If it's not qemu was started for machine PC */
if (!CONFIG(BOOTBLOCK_CONSOLE) &&
- (pci_read_config32(PCI_DEV(0, 0, 0), D0F0_PCIEXBAR_LO) !=
+ (pci_read_config32(HOST_BRIDGE, D0F0_PCIEXBAR_LO) !=
(CONFIG_MMCONF_BASE_ADDRESS | 1)))
die("You must run qemu for machine Q35 (-M q35)");
}