]> git.proxmox.com Git - qemu.git/commit
Use existing helper function to implement popcntd instruction
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 5 Apr 2011 05:12:11 +0000 (15:12 +1000)
committerAlexander Graf <agraf@suse.de>
Fri, 8 Apr 2011 09:32:21 +0000 (11:32 +0200)
commit3601ff11732160e42d3174d2821d873cfcd52a59
tree1225a922cec026062a27e2f6350d34e6efa272ca
parenta3467baa88c5bbb58834952980d2f2206aab4445
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>
target-ppc/op_helper.c