mirror of
https://github.com/qemu/qemu.git
synced 2024-12-02 16:23:35 +08:00
target/ppc: Add popcntb instruction to POWER5+ processors
popcntb instruction was added in ISA v2.02. Add support for POWER5+ processors since they implement ISA v2.03. PPC970 CPUs implement v2.01 and do not support popcntb. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Message-Id: <20220105095142.3990430-2-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
4d805d43b2
commit
23ab6d8813
@ -6957,6 +6957,7 @@ POWERPC_FAMILY(POWER5P)(ObjectClass *oc, void *data)
|
|||||||
PPC_MEM_SYNC | PPC_MEM_EIEIO |
|
PPC_MEM_SYNC | PPC_MEM_EIEIO |
|
||||||
PPC_MEM_TLBIE | PPC_MEM_TLBSYNC |
|
PPC_MEM_TLBIE | PPC_MEM_TLBSYNC |
|
||||||
PPC_64B |
|
PPC_64B |
|
||||||
|
PPC_POPCNTB |
|
||||||
PPC_SEGMENT_64B | PPC_SLBI;
|
PPC_SEGMENT_64B | PPC_SLBI;
|
||||||
pcc->insns_flags2 = PPC2_FP_CVT_S64;
|
pcc->insns_flags2 = PPC2_FP_CVT_S64;
|
||||||
pcc->msr_mask = (1ull << MSR_SF) |
|
pcc->msr_mask = (1ull << MSR_SF) |
|
||||||
|
Loading…
Reference in New Issue
Block a user