]> Git Repo - qemu.git/commitdiff
spapr: Eliminate SPAPR_PCI_2_7_MMIO_WIN_SIZE macro
authorEduardo Habkost <[email protected]>
Mon, 7 Jan 2019 19:30:18 +0000 (17:30 -0200)
committerEduardo Habkost <[email protected]>
Thu, 10 Jan 2019 00:10:00 +0000 (22:10 -0200)
The macro is only used in one place, where the purpose of the
value is obvious.  Eliminate the macro so we don't need to rely
on stringify().

Signed-off-by: Eduardo Habkost <[email protected]>
Message-Id: <20190107193020[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Acked-by: David Gibson <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
hw/ppc/spapr.c
include/hw/pci-host/spapr.h

index 83081defde4e21f43848c0ccd49cb3cf092f925a..54a19d2db89953f982f3878292a81e8a1e4ad18f 100644 (file)
@@ -4285,7 +4285,7 @@ static void spapr_machine_2_7_class_options(MachineClass *mc)
         {
             .driver   = TYPE_SPAPR_PCI_HOST_BRIDGE,
             .property = "mem_win_size",
-            .value    = stringify(SPAPR_PCI_2_7_MMIO_WIN_SIZE),
+            .value    = "0xf80000000",
         },
         {
             .driver   = TYPE_SPAPR_PCI_HOST_BRIDGE,
index 4eb3a2ce3eb880f562569ae2453450b0ef45aa29..a5a7bf4837d0b376bbec285086489f33bd5f4929 100644 (file)
@@ -101,7 +101,6 @@ struct sPAPRPHBState {
 #define SPAPR_MAX_PHBS ((SPAPR_PCI_LIMIT - SPAPR_PCI_BASE) / \
                         SPAPR_PCI_MEM64_WIN_SIZE - 1)
 
-#define SPAPR_PCI_2_7_MMIO_WIN_SIZE  0xf80000000
 #define SPAPR_PCI_IO_WIN_SIZE        0x10000
 
 #define SPAPR_PCI_MSI_WINDOW         0x40000000000ULL
This page took 0.03246 seconds and 4 git commands to generate.