[PATCH] riscv: Add AIA extension support (Smaia, Ssaia)

Nelson Chu nelson@rivosinc.com
Fri Aug 26 09:53:28 GMT 2022


On Fri, Aug 26, 2022 at 3:11 AM Christoph Müllner
<christoph.muellner@vrull.eu> wrote:
>
> This patch needs a v2 anyway because I missed the Hypervisor and VS CSRs.

Yeah, reviewed in advance, except the missing Hypervisor AIA CSRs and
the spec frozen issue which mentioned by Palmer, otherwise LGTM.  Just
curious that will we add something like "Shaia" or "Zhaia" for the
Hypervisor and VS AIA CSRs?  If no, then seems like they will belong
to the single h extension directly?  Anyway, this patch just support
Ssaia and Smaia extensions, so missing the hypervisor and VS AIA CSRs
seems reasonable...  Anyway, all of us agree to wait for the AIA spec
frozen before merging, so I think you can just merge this after that
time, since the Ssaia and Smaia don't include the Hypervisor AIA in
fact...

> > >> @@ -947,7 +956,12 @@ riscv_csr_address (const char *csr_name,
> > >>                       || csr_class == CSR_CLASS_SMSTATEEN_AND_H_32);
> > >>        extension = "smstateen";
> > >>        break;
> > >> -    case CSR_CLASS_SSCOFPMF_32:
> > >> +    case CSR_CLASS_SSAIA:
> > >> +    case CSR_CLASS_SSAIA_32:
> > >> +      is_rv32_only = (csr_class == CSR_CLASS_SSAIA_32);
> > >> +      extension = "ssaia";
> > >> +      break;
> > >> +     case CSR_CLASS_SSCOFPMF_32:

Here should be a minor indent issue.

Thanks
Nelson


More information about the Binutils mailing list