diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-05 18:37:02 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2023-01-27 11:47:02 -0500 |
| commit | 8a8c9c3a747f77e664fa2288735b45a9d750be75 (patch) | |
| tree | 7f63aa836dd42c325aa3acc889c7d6ac959b342d /hw/pci-host/grackle.c | |
| parent | 744734ccc9eff28394a453de462b2a155f364118 (diff) | |
| download | focaccia-qemu-8a8c9c3a747f77e664fa2288735b45a9d750be75.tar.gz focaccia-qemu-8a8c9c3a747f77e664fa2288735b45a9d750be75.zip | |
hw/pci-host: Use register definitions from PCI standard
No need to document magic values when the definition names from "standard-headers/linux/pci_regs.h" are self-explicit. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230105173702.56610-1-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Diffstat (limited to 'hw/pci-host/grackle.c')
| -rw-r--r-- | hw/pci-host/grackle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c index 8cf318cb80..8e589ff2c9 100644 --- a/hw/pci-host/grackle.c +++ b/hw/pci-host/grackle.c @@ -91,7 +91,7 @@ static void grackle_init(Object *obj) static void grackle_pci_realize(PCIDevice *d, Error **errp) { - d->config[0x09] = 0x01; + d->config[PCI_CLASS_PROG] = 0x01; } static void grackle_pci_class_init(ObjectClass *klass, void *data) |