Blame SOURCES/kvm-ppc405_boards-Delete-stale-disabled-DEBUG_BOARD_INIT.patch

7711c0
From 9844bbde0f1586645b1d8b148452270984ae85e5 Mon Sep 17 00:00:00 2001
7711c0
From: Markus Armbruster <armbru@redhat.com>
7711c0
Date: Fri, 17 May 2019 06:50:58 +0200
7711c0
Subject: [PATCH 31/53] ppc405_boards: Delete stale, disabled DEBUG_BOARD_INIT
7711c0
 code
7711c0
MIME-Version: 1.0
7711c0
Content-Type: text/plain; charset=UTF-8
7711c0
Content-Transfer-Encoding: 8bit
7711c0
7711c0
RH-Author: Markus Armbruster <armbru@redhat.com>
7711c0
Message-id: <20190517065120.12028-10-armbru@redhat.com>
7711c0
Patchwork-id: 88005
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH v3 09/31] ppc405_boards: Delete stale, disabled DEBUG_BOARD_INIT code
7711c0
Bugzilla: 1624009
7711c0
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
7711c0
RH-Acked-by: Thomas Huth <thuth@redhat.com>
7711c0
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
7711c0
The disabled DEBUG_BOARD_INIT code goes back to the initial commit
7711c0
1a6c0886203, and has since seen only mechanical updates.  It sure
7711c0
feels like useless clutter now.  Delete it.
7711c0
7711c0
Suggested-by: Alex Bennée <alex.bennee@linaro.org>
7711c0
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7711c0
Message-Id: <20190308094610.21210-8-armbru@redhat.com>
7711c0
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
7711c0
(cherry picked from commit 886db7c55c72246e3810628d735f5e25eceb8c45)
7711c0
[Trivial conflict in hw/ppc/ppc405_boards.c due to lack of
7711c0
commit ab3dd749241]
7711c0
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 hw/ppc/ppc405_boards.c | 62 +-------------------------------------------------
7711c0
 1 file changed, 1 insertion(+), 61 deletions(-)
7711c0
7711c0
diff --git a/hw/ppc/ppc405_boards.c b/hw/ppc/ppc405_boards.c
7711c0
index 0b65893..2c23e8b 100644
7711c0
--- a/hw/ppc/ppc405_boards.c
7711c0
+++ b/hw/ppc/ppc405_boards.c
7711c0
@@ -48,8 +48,6 @@
7711c0
 
7711c0
 #define USE_FLASH_BIOS
7711c0
 
7711c0
-//#define DEBUG_BOARD_INIT
7711c0
-
7711c0
 /*****************************************************************************/
7711c0
 /* PPC405EP reference board (IBM) */
7711c0
 /* Standalone board with:
7711c0
@@ -217,10 +215,7 @@ static void ref405ep_init(MachineState *machine)
7711c0
     memory_region_init(&ram_memories[1], NULL, "ef405ep.ram1", 0);
7711c0
     ram_bases[1] = 0x00000000;
7711c0
     ram_sizes[1] = 0x00000000;
7711c0
-    ram_size = 128 * 1024 * 1024;
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register cpu\n", __func__);
7711c0
-#endif
7711c0
+    ram_size = 128 * MiB;
7711c0
     env = ppc405ep_init(sysmem, ram_memories, ram_bases, ram_sizes,
7711c0
                         33333333, &pic, kernel_filename == NULL ? 0 : 1);
7711c0
     /* allocate SRAM */
7711c0
@@ -229,9 +224,6 @@ static void ref405ep_init(MachineState *machine)
7711c0
                            &error_fatal);
7711c0
     memory_region_add_subregion(sysmem, 0xFFF00000, sram);
7711c0
     /* allocate and load BIOS */
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register BIOS\n", __func__);
7711c0
-#endif
7711c0
     fl_idx = 0;
7711c0
 #ifdef USE_FLASH_BIOS
7711c0
     dinfo = drive_get(IF_PFLASH, 0, fl_idx);
7711c0
@@ -240,12 +232,6 @@ static void ref405ep_init(MachineState *machine)
7711c0
 
7711c0
         bios_size = blk_getlength(blk);
7711c0
         fl_sectors = (bios_size + 65535) >> 16;
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("Register parallel flash %d size %lx"
7711c0
-               " at addr %lx '%s' %d\n",
7711c0
-               fl_idx, bios_size, -bios_size,
7711c0
-               blk_name(blk), fl_sectors);
7711c0
-#endif
7711c0
         pflash_cfi02_register((uint32_t)(-bios_size),
7711c0
                               NULL, "ef405ep.bios", bios_size,
7711c0
                               blk, 65536, fl_sectors, 1,
7711c0
@@ -255,9 +241,6 @@ static void ref405ep_init(MachineState *machine)
7711c0
     } else
7711c0
 #endif
7711c0
     {
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("Load BIOS from file\n");
7711c0
-#endif
7711c0
         bios = g_new(MemoryRegion, 1);
7711c0
         memory_region_init_ram(bios, NULL, "ef405ep.bios", BIOS_SIZE,
7711c0
                                &error_fatal);
7711c0
@@ -284,21 +267,12 @@ static void ref405ep_init(MachineState *machine)
7711c0
         memory_region_set_readonly(bios, true);
7711c0
     }
7711c0
     /* Register FPGA */
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register FPGA\n", __func__);
7711c0
-#endif
7711c0
     ref405ep_fpga_init(sysmem, 0xF0300000);
7711c0
     /* Register NVRAM */
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register NVRAM\n", __func__);
7711c0
-#endif
7711c0
     m48t59_init(NULL, 0xF0000000, 0, 8192, 1968, 8);
7711c0
     /* Load kernel */
7711c0
     linux_boot = (kernel_filename != NULL);
7711c0
     if (linux_boot) {
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("%s: load kernel\n", __func__);
7711c0
-#endif
7711c0
         memset(&bd, 0, sizeof(bd));
7711c0
         bd.bi_memstart = 0x00000000;
7711c0
         bd.bi_memsize = ram_size;
7711c0
@@ -370,10 +344,6 @@ static void ref405ep_init(MachineState *machine)
7711c0
         initrd_size = 0;
7711c0
         bdloc = 0;
7711c0
     }
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("bdloc " RAM_ADDR_FMT "\n", bdloc);
7711c0
-    printf("%s: Done\n", __func__);
7711c0
-#endif
7711c0
 }
7711c0
 
7711c0
 static void ref405ep_class_init(ObjectClass *oc, void *data)
7711c0
@@ -525,15 +495,9 @@ static void taihu_405ep_init(MachineState *machine)
7711c0
     memory_region_init_alias(&ram_memories[1], NULL,
7711c0
                              "taihu_405ep.ram-1", ram, ram_bases[1],
7711c0
                              ram_sizes[1]);
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register cpu\n", __func__);
7711c0
-#endif
7711c0
     ppc405ep_init(sysmem, ram_memories, ram_bases, ram_sizes,
7711c0
                   33333333, &pic, kernel_filename == NULL ? 0 : 1);
7711c0
     /* allocate and load BIOS */
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register BIOS\n", __func__);
7711c0
-#endif
7711c0
     fl_idx = 0;
7711c0
 #if defined(USE_FLASH_BIOS)
7711c0
     dinfo = drive_get(IF_PFLASH, 0, fl_idx);
7711c0
@@ -544,12 +508,6 @@ static void taihu_405ep_init(MachineState *machine)
7711c0
         /* XXX: should check that size is 2MB */
7711c0
         //        bios_size = 2 * 1024 * 1024;
7711c0
         fl_sectors = (bios_size + 65535) >> 16;
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("Register parallel flash %d size %lx"
7711c0
-               " at addr %lx '%s' %d\n",
7711c0
-               fl_idx, bios_size, -bios_size,
7711c0
-               blk_name(blk), fl_sectors);
7711c0
-#endif
7711c0
         pflash_cfi02_register((uint32_t)(-bios_size),
7711c0
                               NULL, "taihu_405ep.bios", bios_size,
7711c0
                               blk, 65536, fl_sectors, 1,
7711c0
@@ -559,9 +517,6 @@ static void taihu_405ep_init(MachineState *machine)
7711c0
     } else
7711c0
 #endif
7711c0
     {
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("Load BIOS from file\n");
7711c0
-#endif
7711c0
         if (bios_name == NULL)
7711c0
             bios_name = BIOS_FILENAME;
7711c0
         bios = g_new(MemoryRegion, 1);
7711c0
@@ -592,12 +547,6 @@ static void taihu_405ep_init(MachineState *machine)
7711c0
         /* XXX: should check that size is 32MB */
7711c0
         bios_size = 32 * 1024 * 1024;
7711c0
         fl_sectors = (bios_size + 65535) >> 16;
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("Register parallel flash %d size %lx"
7711c0
-               " at addr " TARGET_FMT_lx " '%s'\n",
7711c0
-               fl_idx, bios_size, (target_ulong)0xfc000000,
7711c0
-               blk_name(blk));
7711c0
-#endif
7711c0
         pflash_cfi02_register(0xfc000000, NULL, "taihu_405ep.flash", bios_size,
7711c0
                               blk, 65536, fl_sectors, 1,
7711c0
                               4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA,
7711c0
@@ -605,16 +554,10 @@ static void taihu_405ep_init(MachineState *machine)
7711c0
         fl_idx++;
7711c0
     }
7711c0
     /* Register CLPD & LCD display */
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: register CPLD\n", __func__);
7711c0
-#endif
7711c0
     taihu_cpld_init(sysmem, 0x50100000);
7711c0
     /* Load kernel */
7711c0
     linux_boot = (kernel_filename != NULL);
7711c0
     if (linux_boot) {
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-        printf("%s: load kernel\n", __func__);
7711c0
-#endif
7711c0
         kernel_base = KERNEL_LOAD_ADDR;
7711c0
         /* now we can load the kernel */
7711c0
         kernel_size = load_image_targphys(kernel_filename, kernel_base,
7711c0
@@ -643,9 +586,6 @@ static void taihu_405ep_init(MachineState *machine)
7711c0
         initrd_base = 0;
7711c0
         initrd_size = 0;
7711c0
     }
7711c0
-#ifdef DEBUG_BOARD_INIT
7711c0
-    printf("%s: Done\n", __func__);
7711c0
-#endif
7711c0
 }
7711c0
 
7711c0
 static void taihu_class_init(ObjectClass *oc, void *data)
7711c0
-- 
7711c0
1.8.3.1
7711c0