aboutsummaryrefslogtreecommitdiff
path: root/arm-semi.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2011-04-05 15:12:11 +1000
committerAlexander Graf <agraf@suse.de>2011-04-08 11:32:21 +0200
commit3601ff11732160e42d3174d2821d873cfcd52a59 (patch)
tree1225a922cec026062a27e2f6350d34e6efa272ca /arm-semi.c
parenta3467baa88c5bbb58834952980d2f2206aab4445 (diff)
downloadqemu-3601ff11732160e42d3174d2821d873cfcd52a59.zip
qemu-3601ff11732160e42d3174d2821d873cfcd52a59.tar.gz
qemu-3601ff11732160e42d3174d2821d873cfcd52a59.tar.bz2
Use existing helper function to implement popcntd instruction
The recent patches adding partial support for POWER7 cpu emulation included implementing the popcntd instruction. The support for this was open coded, but host-utils.h already included a function implementing an equivalent population count function, which uses a gcc builtin (which can use special host instructions) if available. This patch makes the popcntd implementation use the existing, potentially faster, implementation. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arm-semi.c')
0 files changed, 0 insertions, 0 deletions