qemu/target-ppc
David Gibson eaabeef268 Correct ppc popcntb logic, implement popcntw and popcntd
qemu already includes support for the popcntb instruction introduced
in POWER5 (although it doesn't actually allow you to choose POWER5).

However, the logic is slightly incorrect: it will generate results
truncated to 32-bits when the CPU is in 32-bit mode.  This is not
normal for powerpc - generally arithmetic instructions on a 64-bit
powerpc cpu will generate full 64 bit results, it's just that only the
low 32 bits will be significant for condition codes.

This patch corrects this nit, which actually simplifies the code slightly.

In addition, this patch implements the popcntw and popcntd
instructions added in POWER7, in preparation for allowing POWER7 as an
emulated CPU.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 18:34:54 +02:00
..
cpu.h Correct ppc popcntb logic, implement popcntw and popcntd 2011-04-01 18:34:54 +02:00
exec.h inline cpu_halted into sole caller 2011-03-13 14:44:21 +00:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
helper.c Implement PowerPC slbmfee and slbmfev instructions 2011-04-01 18:34:54 +02:00
helper.h Correct ppc popcntb logic, implement popcntw and popcntd 2011-04-01 18:34:54 +02:00
kvm_ppc.c change all other clock references to use nanosecond resolution accessors 2011-03-21 09:23:23 +01:00
kvm_ppc.h KVM: PPC: Add level based interrupt logic 2010-09-05 11:50:48 +02:00
kvm.c Merge remote branch 'qemu-kvm/uq/master' into staging 2011-03-21 17:42:20 -05:00
machine.c KVM: Rework VCPU state writeback API 2010-03-04 00:29:28 -03:00
mfrom_table_gen.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
op_helper.c Correct ppc popcntb logic, implement popcntw and popcntd 2011-04-01 18:34:54 +02:00
STATUS Update PowerPC emulation status file. 2007-10-25 21:38:16 +00:00
translate_init.c Implement missing parts of the logic for the POWER PURR 2011-04-01 18:34:54 +02:00
translate.c Correct ppc popcntb logic, implement popcntw and popcntd 2011-04-01 18:34:54 +02:00