Skip to contentSkip to conversation

fulong2e bugfix

GIT PULL Applied Leon Alrae 2 participants 3 messages Apr 17, 2015

lore
Share & tools
lore

Leon Alrae

author
#0 lore raw

Hi,

The machine was broken for a long time (since v1.1), it would be great to have it working again in v2.3.

v2: modified "From:" to indicate the actual author of the change

Thanks,
Leon

Cc Peter Maydell <[email protected]>

The following changes since commit b8df9208f357d2b36e1b19634aea973618dc7ba8:

Update version for v2.3.0-rc3 release (2015-04-13 17:35:44 +0100)

are available in the git repository at:

git://github.com/lalrae/qemu.git tags/mips-20150417-2

for you to fetch changes up to 0ca4f94195cce77b624edc6d9abcf14a3bf01f06:

mips: fix broken fulong2e machine (2015-04-17 12:11:48 +0100)

----------------------------------------------------------------
MIPS patches 2015-04-17

Changes:
* fix broken fulong2e

----------------------------------------------------------------
Paolo Bonzini (1):
mips: fix broken fulong2e machine

 hw/pci-host/bonito.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
author
#1 lore raw

[Qemu-devel] [PULL v2 1/1] mips: fix broken fulong2e machine

From: Paolo Bonzini <[email protected]>

After commit 5312bd8 the bonito_readl() and bonito_writel() have been accessing incorrect addresses. Consequently QEMU is crashing when trying to boot Linux kernel on fulong2e machine.

---
 hw/pci-host/bonito.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/pci-host/bonito.c +2 -2
index 8bdd569..8134d0b 100644
@@ -233,7 +233,7 @@ static void bonito_writel(void *opaque, hwaddr addr,
     uint32_t saddr;
     int reset = 0;
 
-    saddr = (addr - BONITO_REGBASE) >> 2;
+    saddr = addr >> 2;
 
     DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", addr, val, saddr);
     switch (saddr) {
@@ -295,7 +295,7 @@ static uint64_t bonito_readl(void *opaque, hwaddr addr,
     PCIBonitoState *s = opaque;
     uint32_t saddr;
 
-    saddr = (addr - BONITO_REGBASE) >> 2;
+    saddr = addr >> 2;
 
     DPRINTF("bonito_readl "TARGET_FMT_plx"\n", addr);
     switch (saddr) {
#2 lore raw
In reply to Leon Alrae
Quoted 22 lines · Leon Alrae

Hi,

The machine was broken for a long time (since v1.1), it would be great to have it working again in v2.3.

v2: modified "From:" to indicate the actual author of the change

Thanks,
Leon

Cc Peter Maydell <[email protected]>

The following changes since commit b8df9208f357d2b36e1b19634aea973618dc7ba8:

Update version for v2.3.0-rc3 release (2015-04-13 17:35:44 +0100)

are available in the git repository at:

git://github.com/lalrae/qemu.git tags/mips-20150417-2

for you to fetch changes up to 0ca4f94195cce77b624edc6d9abcf14a3bf01f06:

Quoted 7 lines

mips: fix broken fulong2e machine (2015-04-17 12:11:48 +0100)

----------------------------------------------------------------
MIPS patches 2015-04-17

Changes:
* fix broken fulong2e

Applied, thanks.

-- PMM