summaryrefslogtreecommitdiffstats
path: root/hw/timer/i8254_common.c
diff options
context:
space:
mode:
authorDaniele Buono2020-05-05 20:38:17 +0200
committerDavid Gibson2020-05-07 03:10:50 +0200
commitc4f6a4a3dd5f2aa15329b8158de25f50b5ba3252 (patch)
tree404bbd60970918c004450c28f259c540178c9095 /hw/timer/i8254_common.c
parentspapr_nvdimm: Tweak error messages (diff)
downloadqemu-c4f6a4a3dd5f2aa15329b8158de25f50b5ba3252.tar.gz
qemu-c4f6a4a3dd5f2aa15329b8158de25f50b5ba3252.tar.xz
qemu-c4f6a4a3dd5f2aa15329b8158de25f50b5ba3252.zip
target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9
Starting with Clang v9, -Wtype-limits is implemented and triggers a few "result of comparison is always true" errors when compiling PPC32 targets. The comparisons seem to be necessary only on PPC64, since the else branch in PPC32 only has a "g_assert_not_reached();" in all cases. This patch restructures the code so that the actual if/else is done on a local flag variable, that is set accordingly for PPC64, and always true for PPC32. Signed-off-by: Daniele Buono <dbuono@linux.vnet.ibm.com> Message-Id: <20200505183818.32688-2-dbuono@linux.vnet.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/timer/i8254_common.c')
0 files changed, 0 insertions, 0 deletions