[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 25/66] hw/pci-host/i440fx: Replace magic values by existing consta
From: |
Michael S. Tsirkin |
Subject: |
[PULL 25/66] hw/pci-host/i440fx: Replace magic values by existing constants |
Date: |
Mon, 10 Jul 2023 19:03:36 -0400 |
From: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230630073720.21297-10-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/pci-host/i440fx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c
index d95d9229d3..b7c24a4e1d 100644
--- a/hw/pci-host/i440fx.c
+++ b/hw/pci-host/i440fx.c
@@ -276,8 +276,8 @@ PCIBus *i440fx_init(const char *pci_type,
/* if *disabled* show SMRAM to all CPUs */
memory_region_init_alias(&f->smram_region, OBJECT(d), "smram-region",
- f->pci_address_space, 0xa0000, 0x20000);
- memory_region_add_subregion_overlap(f->system_memory, 0xa0000,
+ f->pci_address_space, SMRAM_C_BASE, SMRAM_C_SIZE);
+ memory_region_add_subregion_overlap(f->system_memory, SMRAM_C_BASE,
&f->smram_region, 1);
memory_region_set_enabled(&f->smram_region, true);
@@ -285,9 +285,9 @@ PCIBus *i440fx_init(const char *pci_type,
memory_region_init(&f->smram, OBJECT(d), "smram", 4 * GiB);
memory_region_set_enabled(&f->smram, true);
memory_region_init_alias(&f->low_smram, OBJECT(d), "smram-low",
- f->ram_memory, 0xa0000, 0x20000);
+ f->ram_memory, SMRAM_C_BASE, SMRAM_C_SIZE);
memory_region_set_enabled(&f->low_smram, true);
- memory_region_add_subregion(&f->smram, 0xa0000, &f->low_smram);
+ memory_region_add_subregion(&f->smram, SMRAM_C_BASE, &f->low_smram);
object_property_add_const_link(qdev_get_machine(), "smram",
OBJECT(&f->smram));
--
MST
- [PULL 15/66] vhost-user: Change one_time to per_device request, (continued)
- [PULL 15/66] vhost-user: Change one_time to per_device request, Michael S. Tsirkin, 2023/07/10
- [PULL 16/66] vhost-user: Make RESET_DEVICE a per device message, Michael S. Tsirkin, 2023/07/10
- [PULL 17/66] hw/i386/pc_q35: Resolve redundant q35_host variable, Michael S. Tsirkin, 2023/07/10
- [PULL 18/66] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Michael S. Tsirkin, 2023/07/10
- [PULL 19/66] hw/pci-host/q35: Initialize PCMachineState::bus in board code, Michael S. Tsirkin, 2023/07/10
- [PULL 21/66] hw/pci-host/q35: Initialize PCI_HOST_BYPASS_IOMMU property from board code, Michael S. Tsirkin, 2023/07/10
- [PULL 22/66] hw/pci-host/q35: Make some property name macros reusable by i440fx, Michael S. Tsirkin, 2023/07/10
- [PULL 23/66] hw/i386/pc_piix: Turn some local variables into initializers, Michael S. Tsirkin, 2023/07/10
- [PULL 20/66] hw/pci/pci_host: Introduce PCI_HOST_BYPASS_IOMMU macro, Michael S. Tsirkin, 2023/07/10
- [PULL 24/66] hw/pci-host/i440fx: Add "i440fx" child property in board code, Michael S. Tsirkin, 2023/07/10
- [PULL 25/66] hw/pci-host/i440fx: Replace magic values by existing constants,
Michael S. Tsirkin <=
- [PULL 26/66] hw/pci-host/i440fx: Have common names for some local variables, Michael S. Tsirkin, 2023/07/10
- [PULL 27/66] hw/pci-host/i440fx: Move i440fx_realize() into PCII440FXState section, Michael S. Tsirkin, 2023/07/10
- [PULL 28/66] hw/pci-host/i440fx: Make MemoryRegion pointers accessible as properties, Michael S. Tsirkin, 2023/07/10
- [PULL 29/66] hw/pci-host/i440fx: Add PCI_HOST_PROP_IO_MEM property, Michael S. Tsirkin, 2023/07/10
- [PULL 30/66] hw/pci-host/i440fx: Add PCI_HOST_{ABOVE, BELOW}_4G_MEM_SIZE properties, Michael S. Tsirkin, 2023/07/10
- [PULL 31/66] hw/pci-host/i440fx: Add I440FX_HOST_PROP_PCI_TYPE property, Michael S. Tsirkin, 2023/07/10
- [PULL 32/66] hw/pci-host/i440fx: Resolve i440fx_init(), Michael S. Tsirkin, 2023/07/10
- [PULL 33/66] hw/i386/pc_piix: Move i440fx' realize near its qdev_new(), Michael S. Tsirkin, 2023/07/10
- [PULL 34/66] hw/pci/pci: Remove multifunction parameter from pci_create_simple_multifunction(), Michael S. Tsirkin, 2023/07/10
- [PULL 35/66] hw/pci/pci: Remove multifunction parameter from pci_new_multifunction(), Michael S. Tsirkin, 2023/07/10