[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 06/15] hw/i386/pc: remove commented out code from x86_load_lin
From: |
Sergio Lopez |
Subject: |
[PATCH v8 06/15] hw/i386/pc: remove commented out code from x86_load_linux() |
Date: |
Thu, 10 Oct 2019 16:31:16 +0200 |
Follow checkpatch.pl recommendation and remove commented out code from
x86_load_linux().
Signed-off-by: Sergio Lopez <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 90e2d68096..f19d4ac0bd 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 v8 02/15] hw/i386/pc: rename functions shared with non-PC machines, (continued)
[PATCH v8 05/15] hw/i386/pc: avoid an assignment in if condition in x86_load_linux(), Sergio Lopez, 2019/10/10
[PATCH v8 06/15] hw/i386/pc: remove commented out code from x86_load_linux(),
Sergio Lopez <=
[PATCH v8 06/15] hw/i386/pc: remove commented out code from x86_load_linux(), Sergio Lopez, 2019/10/10
[PATCH v8 07/15] hw/i386/pc: move shared x86 functions to x86.c and export them, Sergio Lopez, 2019/10/10
[PATCH v8 08/15] hw/i386: split PCMachineState deriving X86MachineState from it, Sergio Lopez, 2019/10/10
[PATCH v8 09/15] hw/i386: make x86.c independent from PCMachineState, Sergio Lopez, 2019/10/10
[PATCH v8 10/15] fw_cfg: add "modify" functions for all types, Sergio Lopez, 2019/10/10
[PATCH v8 11/15] hw/intc/apic: reject pic ints if isa_pic == NULL, Sergio Lopez, 2019/10/10
[PATCH v8 12/15] roms: add microvm-bios (qboot) as binary and git submodule, Sergio Lopez, 2019/10/10
[PATCH v8 13/15] docs/microvm.rst: document the new microvm machine type, Sergio Lopez, 2019/10/10
[PATCH v8 14/15] hw/i386: Introduce the microvm machine type, Sergio Lopez, 2019/10/10