diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2015-11-16 14:57:50 +0000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2015-11-30 19:39:00 +1100 |
commit | e2a176dfda32f5cf80703c2921a19fe75850c38c (patch) | |
tree | cb5dc1dcbe08b81b9a91e373914ddf17f30f5cc4 /hw/sparc | |
parent | 9b7a70e63e7b59f2444aff9399f9b482f55b8f9e (diff) | |
download | qemu-e2a176dfda32f5cf80703c2921a19fe75850c38c.tar.gz qemu-e2a176dfda32f5cf80703c2921a19fe75850c38c.tar.bz2 qemu-e2a176dfda32f5cf80703c2921a19fe75850c38c.zip |
hw/ppc/ppc405_boards: Fix infinite recursion by converting taihu_cpld from old_mmio
The taihu_cpld_writel() function had an obvious typo that meant that
if it was ever called it would go into an infinite recursion. Newer
versions of clang will detect and warn about this:
hw/ppc/ppc405_boards.c:481:1: warning: all paths through this function will call itself [-Winfinite-recursion]
Fix this by converting taihu_cpld from the legacy old_mmio accessors
to new-style ones, with an impl {} declaration to cause the core
memory code to do the splitting of 16 bit and 32 bit accesses into
multiple 8-bit accesses.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/sparc')
0 files changed, 0 insertions, 0 deletions