[RFC PATCH 1/3] riscv: Correctly print supported extensions

Andreas Schwab schwab at linux-m68k.org
Mon Nov 22 04:35:00 PST 2021


On Nov 20 2021, Tsukasa OI wrote:

> This commit replaces BITS_PER_LONG with magic number 26.
>
> Current ISA pretty-printing code expects extension 'a' (bit 0) through
> 'z' (bit 25).  Although bit 26 and higher is not currently used (thus never
> cause an issue in practice), it will be an annoying problem if we start to
> use those in the future.

Perhaps replace 26 by 'z' - 'a' + 1?

Andreas.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the linux-riscv mailing list