From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R12wO-00015W-Pg for qemu-devel@nongnu.org; Tue, 06 Sep 2011 17:12:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R12wN-0005kS-Dd for qemu-devel@nongnu.org; Tue, 06 Sep 2011 17:12:20 -0400 Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186]:30141 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R12wN-0005kM-8g for qemu-devel@nongnu.org; Tue, 06 Sep 2011 17:12:19 -0400 Message-ID: <4E668594.4060207@adrake.org> Date: Tue, 6 Sep 2011 16:41:56 -0400 From: Andrew Drake MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] mips: Fix incorrect jump instruction in YAMON mini-bootloader print function. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno The print function is listed in the vector table as 0xbfc00808. The backedge of the loop is improperly encoded, and so jumps to 0xb0000814 instead of the desired 0xbfc00814. Signed-off-by: Andrew Drake --- hw/mips_malta.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index a0adb56..d4820c3 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -605,7 +605,7 @@ static void write_bootloader (CPUState *env, uint8_t *base, stl_raw(p++, 0x00000000); /* nop */ stl_raw(p++, 0x0ff0021c); /* jal 870 */ stl_raw(p++, 0x00000000); /* nop */ - stl_raw(p++, 0x08000205); /* j 814 */ + stl_raw(p++, 0x0bf00205); /* j 814 */ stl_raw(p++, 0x00000000); /* nop */ stl_raw(p++, 0x01a00008); /* jr t5 */ stl_raw(p++, 0x01602021); /* move a0,t3 */ -- 1.7.1