]> Git Repo - qemu.git/commit
hw/mips_malta: Fix YAMON API print routine
authorPaul Burton <[email protected]>
Fri, 22 Jul 2016 09:55:40 +0000 (10:55 +0100)
committerLeon Alrae <[email protected]>
Thu, 28 Jul 2016 10:24:00 +0000 (11:24 +0100)
commit7f81dbb9a0e89b5306c1337e0cd0e1cea8a03f6d
treedec2a2d4cd1a42443ee3f84ce2c213f9102cfe7e
parent21a21b853a1bb606358af61e738abfb9aecbd720
hw/mips_malta: Fix YAMON API print routine

The print routine provided as part of the in-built bootloader had a bug
in that it attempted to use a jump instruction as part of a loop, but
the target has its upper bits zeroed leading to control flow
transferring to 0xb0000814 rather than the intended 0xbfc00814. Fix this
by using a branch instruction instead, which seems more fit for purpose.

A simple way to test this is to build a Linux kernel with EVA enabled &
attempt to boot it in QEMU. It will attempt to print a message
indicating the configuration mismatch but QEMU would previously
incorrectly jump & wind up printing a continuous stream of the letter E.

Signed-off-by: Paul Burton <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Leon Alrae <[email protected]>
Reviewed-by: Aurelien Jarno <[email protected]>
Reviewed-by: Leon Alrae <[email protected]>
Signed-off-by: Leon Alrae <[email protected]>
hw/mips/mips_malta.c
This page took 0.021423 seconds and 4 git commands to generate.