target/ppc: cpu_init: Deduplicate 745/755 SPR registration
authorFabiano Rosas <farosas@linux.ibm.com>
Fri, 18 Feb 2022 07:34:15 +0000 (08:34 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 18 Feb 2022 07:34:15 +0000 (08:34 +0100)
commita5d1120b1ddbce120dc6d963364d778b6550ce66
tree6dd0d3b8958e437cf14c8d0c3569129f93fa7592
parent20f6fb99b2a820f4c0e067c46efc63ea00f90180
target/ppc: cpu_init: Deduplicate 745/755 SPR registration

The 745 and 755 can share the HID registration, so move it all into
register_755_sprs, which applies for both CPUs.

Also rename that function to register_745_sprs, since the 745 is the
earliest of the two. This will help with separating 755-specific
registers in a subsequent patch.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20220216162426.1885923-14-farosas@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/cpu_init.c