On 26/02/2024 11.11, Nicholas Piggin wrote:
Move SPR and MSR defines out of ppc_asm.h and processor.h and into a
new include, asm/reg.h.
Add a define for the PVR SPR and various processor versions, and replace
the open coded numbers in the sprs.c test case.
Signed-off-by: Nicholas Piggin <npig...@gmail.com>
---
lib/powerpc/asm/ppc_asm.h | 8 +-------
lib/powerpc/asm/processor.h | 7 +------
lib/powerpc/asm/reg.h | 30 ++++++++++++++++++++++++++++++
lib/powerpc/asm/time.h | 1 +
lib/ppc64/asm/reg.h | 1 +
powerpc/sprs.c | 21 ++++++++++-----------
6 files changed, 44 insertions(+), 24 deletions(-)
create mode 100644 lib/powerpc/asm/reg.h
create mode 100644 lib/ppc64/asm/reg.h
Reviewed-by: Thomas Huth <th...@redhat.com>