qemu-e2k/include
Daniel Henrique Barboza 792e8bb629 ppc/pnv: assign pnv-phb-root-port chassis/slot earlier
It is not advisable to execute an object_dynamic_cast() to poke into
bus->qbus.parent and follow it up with a C cast into the PnvPHB type we
think we got.

In fact this is not needed. There is nothing sophisticated being done
with the PHB object retrieved during root_port_realize() for both PHB3
and PHB4. We're retrieving a PHB reference just to access phb->chip_id
and phb->phb_id and use them to define the chassis/slot of the root
port.

phb->phb_id is already being passed to pnv_phb_attach_root_port() via
the 'index' parameter. Let's also add a 'chip_id' parameter to this
function and assign chassis and slot right there. This will spare us
from the hassle of accessing the PHB object inside realize().

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Message-Id: <20220621173436.165912-4-danielhb413@gmail.com>
2022-07-06 10:22:37 -03:00
..
authz
block block/block-copy: block_copy(): add timeout_ns parameter 2022-06-29 10:56:12 +03:00
chardev
crypto crypto: Introduce akcipher crypto class 2022-05-26 11:41:47 +01:00
disas target/loongarch: Add disassembler 2022-06-06 18:09:03 +00:00
exec disas: Remove libvixl disassembler 2022-07-05 10:15:49 +02:00
fpu
hw ppc/pnv: assign pnv-phb-root-port chassis/slot earlier 2022-07-06 10:22:37 -03:00
io io: add a QIOChannelNull equivalent to /dev/null 2022-06-22 18:11:21 +01:00
libdecnumber
migration
monitor qmp: add filtering of statistics by name 2022-06-14 16:50:30 +02:00
net
qapi
qemu include/qemu/host-utils: Remove unused code in the *_overflow wrappers 2022-07-05 10:15:49 +02:00
qom qom/object: Remove circular include dependency 2022-06-28 10:53:32 +02:00
scsi
semihosting semihosting: Create semihost_sys_poll_one 2022-06-28 04:41:37 +05:30
standard-headers linux-headers: Update to v5.18-rc6 2022-05-13 08:20:11 -06:00
sysemu block: get rid of blk->guest_block_size 2022-06-24 17:07:06 +02:00
tcg tcg: Add tcg_gen_mov_ptr 2022-06-02 08:09:46 -07:00
ui ui/console: allow display device to be labeled with given id 2022-07-01 12:33:51 +02:00
user
elf.h
glib-compat.h
qemu-io.h
qemu-main.h