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?

Sebastian


Reply via email to