]> git.ipfire.org Git - thirdparty/qemu.git/commit - target/ppc/translate.c
target-ppc: Fix popcntb Opcode Bug
authorTom Musta <tommusta@gmail.com>
Wed, 14 May 2014 17:14:42 +0000 (12:14 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:38 +0000 (13:24 +0200)
commit6ab39b1bd3474aab57e10cc90377b9a3b94a72d4
treeed6a6026cc4777d48d1f646178508496868c827c
parent00d4f525ec8d9394c4e86e36f01ac68d30128dd6
target-ppc: Fix popcntb Opcode Bug

The popcntb instruction is erroneously encoded with opcode extension (opc1,opc2) = (0x03,0x03).
Bits 21-30 of popcntb are 122 = 0b00011-0b11010 and therefore this should be encoded
as (opc1,opc2) = (0x1A, 0x03).

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c