summaryrefslogtreecommitdiffstats
path: root/hw/ppc/pnv.c
diff options
context:
space:
mode:
authorDaniel Henrique Barboza2022-01-12 11:28:27 +0100
committerCédric Le Goater2022-01-12 11:28:27 +0100
commite022e5a73a13bf1a67bb044ebbe7376c11ff4d55 (patch)
treea1915a7046b8063d767a3eef8b48645a1bfe9297 /hw/ppc/pnv.c
parentpnv_phb4.c: make pnv-phb4-root-port user creatable (diff)
downloadqemu-e022e5a73a13bf1a67bb044ebbe7376c11ff4d55.tar.gz
qemu-e022e5a73a13bf1a67bb044ebbe7376c11ff4d55.tar.xz
qemu-e022e5a73a13bf1a67bb044ebbe7376c11ff4d55.zip
pnv_phb4.c: check if root port exists in rc_config functions
pnv_phb4_rc_config_read() and pnv_phb4_rc_config_write() are asserting the existence of the root port. The root port is now optional, and there will be cases where a pnv-phb4 device won't have a root port attached. Instead of asserting, check if the root port exists before read/writing into it. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20220105212338.49899-6-danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/ppc/pnv.c')
0 files changed, 0 insertions, 0 deletions