Re: [PATCH v6 0/3] Allow accessing CSR using CSR number

2019-04-30 Thread Palmer Dabbelt
On Thu, 25 Apr 2019 01:38:24 PDT (-0700), Anup Patel wrote: This patch series adds support to access CSR using both CSR name and CSR numbers. Also, we should prefer accessing CSRs using their CSR numbers because: 1. It compiles fine with older toolchains. 2. We can use latest CSR names in #defin

[PATCH v6 0/3] Allow accessing CSR using CSR number

2019-04-25 Thread Anup Patel
This patch series adds support to access CSR using both CSR name and CSR numbers. Also, we should prefer accessing CSRs using their CSR numbers because: 1. It compiles fine with older toolchains. 2. We can use latest CSR names in #define macro names of CSR numbers as-per RISC-V spec. (e.g. sptb