Hi, This second version implemented Matheus' suggestion of using a do-while() loop instead of initializing variables.
v1 link: https://lists.gnu.org/archive/html/qemu-devel/2022-01/msg05475.html Daniel Henrique Barboza (2): ppc/pnv: use a do-while() loop in pnv_phb3_translate_tve() ppc/pnv: use a do-while() loop in pnv_phb4_translate_tve() hw/pci-host/pnv_phb3.c | 4 ++-- hw/pci-host/pnv_phb4.c | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) -- 2.34.1