ppc440: Avoid reporting error when reading non-existent RAM slot
commit4f10ed277da91b2cb1b6e8a2de18792ce7881832
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 9 Jan 2019 22:37:33 +0000 (9 23:37 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 4 Feb 2019 07:44:17 +0000 (4 18:44 +1100)
treedc0aea6c35f19c8039b171951d0e480c56c2c716
parent52b73c09bfee1b7feae6f6c281bab5bf0f94964e
ppc440: Avoid reporting error when reading non-existent RAM slot

When reading base register of RAM slot with no RAM we should not try
to calculate register value because that will result printing an error
due to invalid RAM size. Just return 0 without the error in this case.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/ppc440_uc.c