qemu/hw/ppc
Laurent Vivier a2c5eaf7a9 ppc: Remove a potential overflow in muldiv64()
The coccinelle script:
scripts/coccinelle/overflow_muldiv64.cocci
gives us a list of potential overflows in muldiv64()
(the two first parameters are 64bit values).

This patch fixes one, as the fix seems obvious:

replace muldiv64(a, b, c) by muldiv64(b, a, c)
as "a" and "b" are 64bit values but a <= NANOSECONDS_PER_SECOND.
(10^9 -> 30bit value).

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2016-06-07 18:02:49 +03:00
..
e500-ccsr.h
e500.c
e500.h
e500plat.c
mac_newworld.c
mac_oldworld.c
mac.h
Makefile.objs
mpc8544_guts.c
mpc8544ds.c
ppc4xx_devs.c qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
ppc4xx_pci.c
ppc405_boards.c
ppc405_uc.c
ppc405.h
ppc440_bamboo.c
ppc_booke.c
ppc.c ppc: Remove a potential overflow in muldiv64() 2016-06-07 18:02:49 +03:00
ppce500_spin.c
prep.c qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
spapr_drc.c
spapr_events.c
spapr_hcall.c ppc: Do some batching of TCG tlb flushes 2016-05-30 13:20:04 +10:00
spapr_iommu.c spapr_iommu: Add root memory region 2016-06-07 10:17:45 +10:00
spapr_pci_vfio.c
spapr_pci.c spapr_pci: Drop cannot_instantiate_with_device_add_yet=false 2016-06-07 10:17:45 +10:00
spapr_rng.c
spapr_rtas.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
spapr_rtc.c
spapr_vio.c spapr_iommu: Introduce "enabled" state for TCE table 2016-06-07 10:17:45 +10:00
spapr.c spapr: Introduce pseries-2.7 machine type 2016-06-07 10:17:45 +10:00
virtex_ml507.c qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00