[U-Boot] [PATCH 10/19] riscv: Add CSR numbers

Bin Meng bmeng.cn at gmail.com
Fri Nov 30 09:48:12 UTC 2018


Hi Lukas,

On Thu, Nov 15, 2018 at 6:26 AM Auer, Lukas
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> Hi Bin,
>
> On Tue, 2018-11-13 at 00:21 -0800, Bin Meng wrote:
> > The standard RISC-V ISA sets aside a 12-bit encoding space for up
> > to 4096 CSRs. This adds all known CSR numbers as defined in the
> > RISC-V Privileged Architecture Version 1.10.
> >
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > ---
> >
> >  arch/riscv/include/asm/encoding.h | 219
> > ++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 219 insertions(+)
> >
>
> What is the reason for adding these and also the exception code
> definitions in the next patch?

These are needed for the SBI and CSR instruction emulation.

Regards,
Bin


More information about the U-Boot mailing list