dtrace/powerpc: Correct register indices for non-indexed registers in the trapframe

Fix an off-by-one error, LR starts at index 32, not index 33, and the others
follow suit.
This commit is contained in:
Justin Hibbits 2018-07-16 19:47:29 +00:00
parent ceab45b744
commit 7f0df9ac2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336355

View File

@ -561,19 +561,19 @@ dtrace_getreg(struct trapframe *rp, uint_t reg)
return (rp->fixreg[reg]);
switch (reg) {
case 33:
case 32:
return (rp->lr);
case 34:
case 33:
return (rp->cr);
case 35:
case 34:
return (rp->xer);
case 36:
case 35:
return (rp->ctr);
case 37:
case 36:
return (rp->srr0);
case 38:
case 37:
return (rp->srr1);
case 39:
case 38:
return (rp->exc);
default:
DTRACE_CPUFLAG_SET(CPU_DTRACE_ILLOP);