[U-Boot] [PATCH 16/19] bios_emulator: Add an option to enable debugging

Simon Glass sjg at chromium.org
Tue Nov 25 22:50:17 CET 2014


On 14 November 2014 at 20:56, Simon Glass <sjg at chromium.org> wrote:
> At present there are DEBUG options spread around the place. If you enable
> one and not another you can end up with an emulator that does not work,
> since each file can have a different view of what the registers look like.
> To fix this, create a global CONFIG_X86EMU_DEBUG option that keeps
> everything consistent.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/bios_emulator/besys.c                | 64 ++++++++++++++++++++++------
>  drivers/bios_emulator/bios.c                 |  4 +-
>  drivers/bios_emulator/biosemui.h             |  2 +-
>  drivers/bios_emulator/include/x86emu.h       |  2 +-
>  drivers/bios_emulator/include/x86emu/debug.h | 16 +++----
>  drivers/bios_emulator/include/x86emu/regs.h  |  2 +-
>  drivers/bios_emulator/x86emu/debug.c         |  2 +-
>  drivers/bios_emulator/x86emu/decode.c        | 24 +++++------
>  drivers/bios_emulator/x86emu/ops.c           | 28 ++++++------
>  9 files changed, 90 insertions(+), 54 deletions(-)

Applied to u-boot-x86.


More information about the U-Boot mailing list