On Thu, Mar 20 2025, Sebastian Ott <seb...@redhat.com> wrote: > On Tue, 11 Mar 2025, Cornelia Huck wrote: >> +++ b/scripts/gen-cpu-sysregs-header.awk > [...] >> +BEGIN { >> + print "" >> +} END { >> + print "" >> +} >> + >> +# skip blank lines and comment lines >> +/^$/ { next } >> +/^[\t ]*#/ { next } >> + >> +/^Sysreg\t/ || /^Sysreg /{ >> + >> + reg = $2 >> + op0 = $3 >> + op1 = $4 >> + crn = $5 >> + crm = $6 >> + op2 = $7 >> + >> + if (op0 == 3 && (op1>=0 && op1<=3) && crn==0 && (crm>=0 && crm<=7) && >> (op2>=0 && op2<=7)) { >> + idreg = 1 >> + } else { >> + idreg = 0 >> + } > > This doesn't seem to be used. I guess this is in preparation for later > usage, when this can do more than just the plain register definition?
In fact, I might have got muddled a bit in my scripts, let me check. (I think we should simply skip out-of-range regs.)