[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/55] hw: Remove unused MAX_IDE_BUS define
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 14/55] hw: Remove unused MAX_IDE_BUS define |
Date: |
Sun, 30 Oct 2022 23:28:00 +0100 |
From: BALATON Zoltan <balaton@eik.bme.hu>
Several machines have an unused MAX_IDE_BUS define. Remove it from
these machines that don't need it.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220917115136.A32EF746E06@zero.eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/alpha/dp264.c | 2 --
hw/hppa/machine.c | 2 --
hw/mips/fuloong2e.c | 1 -
hw/mips/malta.c | 2 --
hw/ppc/prep.c | 2 --
hw/sparc64/sun4u.c | 1 -
6 files changed, 10 deletions(-)
diff --git a/hw/alpha/dp264.c b/hw/alpha/dp264.c
index f4349eba83..c502c8c62a 100644
--- a/hw/alpha/dp264.c
+++ b/hw/alpha/dp264.c
@@ -20,8 +20,6 @@
#include "qemu/datadir.h"
#include "net/net.h"
-#define MAX_IDE_BUS 2
-
static uint64_t cpu_alpha_superpage_to_phys(void *opaque, uint64_t addr)
{
if (((addr >> 41) & 3) == 2) {
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index e53d5f0fa7..355b3aac2e 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -30,8 +30,6 @@
#include "qemu/log.h"
#include "net/net.h"
-#define MAX_IDE_BUS 2
-
#define MIN_SEABIOS_HPPA_VERSION 6 /* require at least this fw version */
#define HPA_POWER_BUTTON (FIRMWARE_END - 0x10)
diff --git a/hw/mips/fuloong2e.c b/hw/mips/fuloong2e.c
index b478483706..50c61f0e4a 100644
--- a/hw/mips/fuloong2e.c
+++ b/hw/mips/fuloong2e.c
@@ -49,7 +49,6 @@
/* Fuloong 2e has a 512k flash: Winbond W39L040AP70Z */
#define BIOS_SIZE (512 * KiB)
-#define MAX_IDE_BUS 2
/*
* PMON is not part of qemu and released with BSD license, anyone
diff --git a/hw/mips/malta.c b/hw/mips/malta.c
index 0e932988e0..5099ed9592 100644
--- a/hw/mips/malta.c
+++ b/hw/mips/malta.c
@@ -69,8 +69,6 @@
#define FLASH_SIZE 0x400000
-#define MAX_IDE_BUS 2
-
typedef struct {
MemoryRegion iomem;
MemoryRegion iomem_lo; /* 0 - 0x900 */
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index f08714f2ec..fcbe4c5837 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -50,8 +50,6 @@
/* SMP is not enabled, for now */
#define MAX_CPUS 1
-#define MAX_IDE_BUS 2
-
#define CFG_ADDR 0xf0000510
#define KERNEL_LOAD_ADDR 0x01000000
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index 0e27715ac4..387181ff77 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -66,7 +66,6 @@
#define PBM_PCI_IO_BASE (PBM_SPECIAL_BASE + 0x02000000ULL)
#define PROM_FILENAME "openbios-sparc64"
#define NVRAM_SIZE 0x2000
-#define MAX_IDE_BUS 2
#define BIOS_CFG_IOPORT 0x510
#define FW_CFG_SPARC64_WIDTH (FW_CFG_ARCH_LOCAL + 0x00)
#define FW_CFG_SPARC64_HEIGHT (FW_CFG_ARCH_LOCAL + 0x01)
--
2.37.3
- [PULL 04/55] hw/isa/vt82c686: Reuse errp, (continued)
- [PULL 04/55] hw/isa/vt82c686: Reuse errp, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 05/55] hw/isa/vt82c686: Introduce TYPE_VIA_IDE define, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 06/55] hw/isa/vt82c686: Instantiate IDE function in host device, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 07/55] hw/isa/vt82c686: Introduce TYPE_VT82C686B_USB_UHCI define, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 08/55] hw/isa/vt82c686: Instantiate USB functions in host device, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 09/55] hw/isa/vt82c686: Instantiate PM function in host device, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 10/55] hw/isa/vt82c686: Instantiate AC97 and MC97 functions in host device, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 11/55] hw/mips/fuloong2e: Inline vt82c686b_southbridge_init() and remove it, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 12/55] hw/isa/vt82c686: Embed RTCState in host device, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 13/55] hw/isa/vt82c686: Create rtc-time alias in boards instead, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 14/55] hw: Remove unused MAX_IDE_BUS define,
Philippe Mathieu-Daudé <=
- [PULL 15/55] disas/nanomips: Remove namespace img, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 16/55] disas/nanomips: Extract enums out of the NMD class, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 17/55] disas/nanomips: Delete NMD class field, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 18/55] disas/nanomips: Delete NMD class second field, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 19/55] disas/nanomips: Remove helper methods from class, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 20/55] disas/nanomips: Remove __cond methods from class, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 21/55] disas/nanomips: Remove disasm methods from class, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 22/55] disas/nanomips: Remove Pool tables from the class, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 23/55] disas/nanomips: Remove NMD class, Philippe Mathieu-Daudé, 2022/10/30
- [PULL 24/55] disas/nanomips: Move typedefs etc to nanomips.cpp, Philippe Mathieu-Daudé, 2022/10/30