Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31a12cec authored by Mike Wolf's avatar Mike Wolf Committed by Paul Mackerras
Browse files

[POWERPC] Oprofile support for Power 5++



This adds a new oprofile cpu type for Power 5 revision 3 chips.
The new name is ppc64/power5++ and is used so that the performance
counters can be set up correctly.

Signed-off-by: default avatarMike Wolf <mjw@us.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 665f5600
Loading
Loading
Loading
Loading
+15 −0
Original line number Original line Diff line number Diff line
@@ -294,6 +294,21 @@ static struct cpu_spec cpu_specs[] = {
		.oprofile_mmcra_sipr	= MMCRA_SIPR,
		.oprofile_mmcra_sipr	= MMCRA_SIPR,
		.platform		= "power5",
		.platform		= "power5",
	},
	},
	{	/* Power5++ */
		.pvr_mask		= 0xffffff00,
		.pvr_value		= 0x003b0300,
		.cpu_name		= "POWER5+ (gs)",
		.cpu_features		= CPU_FTRS_POWER5,
		.cpu_user_features	= COMMON_USER_POWER5_PLUS,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 6,
		.oprofile_cpu_type	= "ppc64/power5++",
		.oprofile_type		= PPC_OPROFILE_POWER4,
		.oprofile_mmcra_sihv	= MMCRA_SIHV,
		.oprofile_mmcra_sipr	= MMCRA_SIPR,
		.platform		= "power5+",
	},
	{	/* Power5 GS */
	{	/* Power5 GS */
		.pvr_mask		= 0xffff0000,
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x003b0000,
		.pvr_value		= 0x003b0000,