Re: [kvm-unit-tests PATCH 05/32] powerpc: Cleanup SPR and MSR definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <npiggin@xxxxxxxxx>
---
  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 <thuth@xxxxxxxxxx>





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux