]> git.proxmox.com Git - mirror_qemu.git/commit
ppc/pegasos2: Access MV64361 registers via their memory region
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 14 Oct 2021 19:50:19 +0000 (21:50 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Oct 2021 00:42:47 +0000 (11:42 +1100)
commitbd20cde50bb1a3b47fcba02432edc6141d9fb1d0
tree5a708a3ebfe8d5fdb3bd1cd922dd247c413f7da2
parent94cd1ffbe1a8b7f08df76e14d9226804cc21b56c
ppc/pegasos2: Access MV64361 registers via their memory region

Instead of relying on the mapped address of the MV64361 registers
access them via their memory region. This is not a problem at reset
time when these registers are mapped at the default address but the
guest could change this later and then the RTAS calls accessing PCI
config registers could fail. None of the guests actually do this so
this only avoids a theoretical problem not seen in practice.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <b6f768023603dc2c4d130720bcecdbea459b7668.1634241019.git.balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/pci-host/mv64361.c
hw/ppc/pegasos2.c