Re: [RFC PATCH v2 4/4] target/riscv: smstateen check for AIA/IMSIC

2022-03-24 Thread Mayuresh Chitale
On Wed, Mar 23, 2022 at 6:43 PM Weiwei Li wrote: > > > 在 2022/3/23 下午7:13, Mayuresh Chitale 写道: > > If smstateen is implemented then accesses to AIA > > registers CSRS, IMSIC CSRs and other IMSIC registers > > is controlled by setting of corresponding bits in > > mstateen/hstateen registers. Other

Re: [RFC PATCH v2 4/4] target/riscv: smstateen check for AIA/IMSIC

2022-03-23 Thread Weiwei Li
在 2022/3/23 下午7:13, Mayuresh Chitale 写道: If smstateen is implemented then accesses to AIA registers CSRS, IMSIC CSRs and other IMSIC registers is controlled by setting of corresponding bits in mstateen/hstateen registers. Otherwise an illegal instruction trap or virtual instruction trap is gene