Skip to contentSkip to conversation

MIPS Malta mini-bootloader print function has bad jump instruction

Qemu-devel Andrew Drake 1 participant 3 messages Sep 6, 2011 – Sep 9, 2016

lore
Share & tools
lore
#0 lore raw

Public bug reported:

One of the hardcoded bootloader library instructions in the MIPS Malta mini-bootloader's print function is:

stl_raw(p++, 0x08000205); /* j 814
*/

Since this function is loaded at 0xbfc00808, this jump jumps to the middle of nowhere. The properly-encoded instruction is:

stl_raw(p++, 0x0bf00205); /* j 814
*/

With this patch, the print function behaves as expected.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/842290

Title:
  MIPS Malta mini-bootloader print function has bad jump instruction

Status in QEMU:
  New

Bug description:
  One of the hardcoded bootloader library instructions in the MIPS Malta
  mini-bootloader's print function is:

  stl_raw(p++, 0x08000205);                                     /* j 814
  */

  Since this function is loaded at 0xbfc00808, this jump jumps to the
  middle of nowhere. The properly-encoded instruction is:

  stl_raw(p++, 0x0bf00205);                                     /* j 814
  */

  With this patch, the print function behaves as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/842290/+subscriptions
#1 lore raw

** Patch added: "Patch to mips_malta.c"
https://bugs.launchpad.net/bugs/842290/+attachment/2359348/+files/malta.patch

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/842290

Title:
  MIPS Malta mini-bootloader print function has bad jump instruction

Status in QEMU:
  New

Bug description:
  One of the hardcoded bootloader library instructions in the MIPS Malta
  mini-bootloader's print function is:

  stl_raw(p++, 0x08000205);                                     /* j 814
  */

  Since this function is loaded at 0xbfc00808, this jump jumps to the
  middle of nowhere. The properly-encoded instruction is:

  stl_raw(p++, 0x0bf00205);                                     /* j 814
  */

  With this patch, the print function behaves as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/842290/+subscriptions
author
#2 lore raw
In reply to Andrew Drake

Looks like this has been finally fixed by this commit here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=7f81dbb9a0e89b53

** Changed in: qemu
Status: New => Fix Released

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/842290

Title:
  MIPS Malta mini-bootloader print function has bad jump instruction

Status in QEMU:
  Fix Released

Bug description:
  One of the hardcoded bootloader library instructions in the MIPS Malta
  mini-bootloader's print function is:

  stl_raw(p++, 0x08000205);                                     /* j 814
  */

  Since this function is loaded at 0xbfc00808, this jump jumps to the
  middle of nowhere. The properly-encoded instruction is:

  stl_raw(p++, 0x0bf00205);                                     /* j 814
  */

  With this patch, the print function behaves as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/842290/+subscriptions