qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/4] multiboot: Change multiboot_info from array


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 1/4] multiboot: Change multiboot_info from array of bytes to a C struct
Date: Mon, 15 Jan 2018 15:49:44 +0100
User-agent: Mutt/1.9.1 (2017-09-22)

Am 13.10.2017 um 01:54 hat Anatol Pomozov geschrieben:
> Using C structs makes the code more readable and prevents type conversion
> errors.
> 
> Borrow multiboot1 header from GRUB project.
> 
> Signed-off-by: Anatol Pomozov <address@hidden>
> ---
>  hw/i386/multiboot.c         | 124 +++++++++------------
>  hw/i386/multiboot_header.h  | 254 
> ++++++++++++++++++++++++++++++++++++++++++++
>  tests/multiboot/mmap.c      |  14 +--
>  tests/multiboot/mmap.out    |  10 ++
>  tests/multiboot/modules.c   |  12 ++-
>  tests/multiboot/modules.out |  10 ++
>  tests/multiboot/multiboot.h |  66 ------------
>  7 files changed, 339 insertions(+), 151 deletions(-)
>  create mode 100644 hw/i386/multiboot_header.h
>  delete mode 100644 tests/multiboot/multiboot.h

This is a good change in general. However, I'm not sure if we should
really replace the header used in the tests. After all, the tests also
test whether things are at the right place, and if there is an error in
the header file, we can only catch it if the tests keep using their own
definitions.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]