mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
powerpc/xmon: Add AMR, UAMOR, AMOR, IAMR to SPR dump
This patch adds support to xmon for dumping the AMR, UAMOR, AMOR and IAMR SPRs based on their supported ISA revisions. Signed-off-by: Balbir Singh <bsingharora@gmail.com> [mpe: Split out of larger patch] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
cf9159c36c
commit
64d66aa051
1 changed files with 7 additions and 4 deletions
|
@ -1743,6 +1743,8 @@ static void dump_206_sprs(void)
|
||||||
mfspr(SPRN_SRR0), mfspr(SPRN_SRR1), mfspr(SPRN_DSISR));
|
mfspr(SPRN_SRR0), mfspr(SPRN_SRR1), mfspr(SPRN_DSISR));
|
||||||
printf("dscr = %.16lx ppr = %.16lx pir = %.8x\n",
|
printf("dscr = %.16lx ppr = %.16lx pir = %.8x\n",
|
||||||
mfspr(SPRN_DSCR), mfspr(SPRN_PPR), mfspr(SPRN_PIR));
|
mfspr(SPRN_DSCR), mfspr(SPRN_PPR), mfspr(SPRN_PIR));
|
||||||
|
printf("amr = %.16lx uamor = %.16lx\n",
|
||||||
|
mfspr(SPRN_AMR), mfspr(SPRN_UAMOR));
|
||||||
|
|
||||||
if (!(mfmsr() & MSR_HV))
|
if (!(mfmsr() & MSR_HV))
|
||||||
return;
|
return;
|
||||||
|
@ -1753,8 +1755,8 @@ static void dump_206_sprs(void)
|
||||||
mfspr(SPRN_HSRR0), mfspr(SPRN_HSRR1), mfspr(SPRN_HDEC));
|
mfspr(SPRN_HSRR0), mfspr(SPRN_HSRR1), mfspr(SPRN_HDEC));
|
||||||
printf("lpcr = %.16lx pcr = %.16lx lpidr = %.8x\n",
|
printf("lpcr = %.16lx pcr = %.16lx lpidr = %.8x\n",
|
||||||
mfspr(SPRN_LPCR), mfspr(SPRN_PCR), mfspr(SPRN_LPID));
|
mfspr(SPRN_LPCR), mfspr(SPRN_PCR), mfspr(SPRN_LPID));
|
||||||
printf("hsprg0 = %.16lx hsprg1 = %.16lx\n",
|
printf("hsprg0 = %.16lx hsprg1 = %.16lx amor = %.16lx\n",
|
||||||
mfspr(SPRN_HSPRG0), mfspr(SPRN_HSPRG1));
|
mfspr(SPRN_HSPRG0), mfspr(SPRN_HSPRG1), mfspr(SPRN_AMOR));
|
||||||
printf("dabr = %.16lx dabrx = %.16lx\n",
|
printf("dabr = %.16lx dabrx = %.16lx\n",
|
||||||
mfspr(SPRN_DABR), mfspr(SPRN_DABRX));
|
mfspr(SPRN_DABR), mfspr(SPRN_DABRX));
|
||||||
#endif
|
#endif
|
||||||
|
@ -1793,6 +1795,7 @@ static void dump_207_sprs(void)
|
||||||
mfspr(SPRN_SDAR), mfspr(SPRN_SIER), mfspr(SPRN_PMC6));
|
mfspr(SPRN_SDAR), mfspr(SPRN_SIER), mfspr(SPRN_PMC6));
|
||||||
printf("ebbhr = %.16lx ebbrr = %.16lx bescr = %.16lx\n",
|
printf("ebbhr = %.16lx ebbrr = %.16lx bescr = %.16lx\n",
|
||||||
mfspr(SPRN_EBBHR), mfspr(SPRN_EBBRR), mfspr(SPRN_BESCR));
|
mfspr(SPRN_EBBHR), mfspr(SPRN_EBBRR), mfspr(SPRN_BESCR));
|
||||||
|
printf("iamr = %.16lx\n", mfspr(SPRN_IAMR));
|
||||||
|
|
||||||
if (!(msr & MSR_HV))
|
if (!(msr & MSR_HV))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue