Commit a88a9ec
Marc Zyngier
KVM: arm64: Improve out-of-order sysreg table diagnostics
Adding new entries to our system register tables is a painful exercise,
as we require them to be ordered by Op0,Op1,CRn,CRm,Op2.
If an entry is misordered, we output an error that indicates the
pointer to the entry and the number *of the last valid one*.
That's not very helpful, and would be much better if we printed the
number of the *offending* entry as well as its name (which is present
in the vast majority of the cases).
This makes debugging new additions to the tables much easier.
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20240410152503.3593890-1-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>1 parent 4cece76 commit a88a9ec
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3069 | 3069 | | |
3070 | 3070 | | |
3071 | 3071 | | |
3072 | | - | |
| 3072 | + | |
| 3073 | + | |
3073 | 3074 | | |
3074 | 3075 | | |
3075 | 3076 | | |
3076 | 3077 | | |
3077 | | - | |
| 3078 | + | |
| 3079 | + | |
3078 | 3080 | | |
3079 | 3081 | | |
3080 | 3082 | | |
| |||
0 commit comments