[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 06/15] hw/i386/pc: remove commented out code from x86_load_lin
From: |
Sergio Lopez |
Subject: |
[PATCH v9 06/15] hw/i386/pc: remove commented out code from x86_load_linux() |
Date: |
Tue, 15 Oct 2019 13:23:37 +0200 |
Follow checkpatch.pl recommendation and remove commented out code from
x86_load_linux().
Signed-off-by: Sergio Lopez <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/i386/pc.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 90c2263a33..612bfe9c95 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1061,9 +1061,6 @@ static void x86_load_linux(PCMachineState *pcms,
}
/* kernel protocol version */
-#if 0
- fprintf(stderr, "header magic: %#x\n", ldl_p(header+0x202));
-#endif
if (ldl_p(header + 0x202) == 0x53726448) {
protocol = lduw_p(header + 0x206);
} else {
@@ -1155,16 +1152,6 @@ static void x86_load_linux(PCMachineState *pcms,
prot_addr = 0x100000;
}
-#if 0
- fprintf(stderr,
- "qemu: real_addr = 0x" TARGET_FMT_plx "\n"
- "qemu: cmdline_addr = 0x" TARGET_FMT_plx "\n"
- "qemu: prot_addr = 0x" TARGET_FMT_plx "\n",
- real_addr,
- cmdline_addr,
- prot_addr);
-#endif
-
/* highest address for loading the initrd */
if (protocol >= 0x20c &&
lduw_p(header + 0x236) & XLF_CAN_BE_LOADED_ABOVE_4G) {
--
2.21.0
- [PATCH v9 00/15] Introduce the microvm machine type, Sergio Lopez, 2019/10/15
- [PATCH v9 01/15] hw/virtio: Factorize virtio-mmio headers, Sergio Lopez, 2019/10/15
- [PATCH v9 02/15] hw/i386/pc: rename functions shared with non-PC machines, Sergio Lopez, 2019/10/15
- [PATCH v9 03/15] hw/i386/pc: fix code style issues on functions that will be moved out, Sergio Lopez, 2019/10/15
- [PATCH v9 04/15] hw/i386/pc: replace use of strtol with qemu_strtol in x86_load_linux(), Sergio Lopez, 2019/10/15
- [PATCH v9 05/15] hw/i386/pc: avoid an assignment in if condition in x86_load_linux(), Sergio Lopez, 2019/10/15
- [PATCH v9 06/15] hw/i386/pc: remove commented out code from x86_load_linux(),
Sergio Lopez <=
- [PATCH v9 07/15] hw/i386/pc: move shared x86 functions to x86.c and export them, Sergio Lopez, 2019/10/15
- [PATCH v9 08/15] hw/i386: split PCMachineState deriving X86MachineState from it, Sergio Lopez, 2019/10/15
- [PATCH v9 09/15] hw/i386: make x86.c independent from PCMachineState, Sergio Lopez, 2019/10/15
- [PATCH v9 10/15] fw_cfg: add "modify" functions for all types, Sergio Lopez, 2019/10/15
- [PATCH v9 11/15] hw/intc/apic: reject pic ints if isa_pic == NULL, Sergio Lopez, 2019/10/15
- [PATCH v9 13/15] docs/microvm.rst: document the new microvm machine type, Sergio Lopez, 2019/10/15
- [PATCH v9 12/15] roms: add microvm-bios (qboot) as binary and git submodule, Sergio Lopez, 2019/10/15
- [PATCH v9 15/15] MAINTAINERS: add microvm related files, Sergio Lopez, 2019/10/15