riscv / riscv-aia

https://jira.riscv.org/browse/RVG-59
Creative Commons Attribution 4.0 International
80 stars 19 forks source link

Clarify "Access control by the state-enable CSRs" #84

Closed wissygh closed 4 months ago

wissygh commented 4 months ago

Hi~, when reading about the feature in the spec, I am kind of confused. Could you please clarify the specification for the following feature(in chapter 2.5):

Can bit 59 in stateen for riscv64 control access to states of mip/mie?

thanks. image

jhauser-us commented 4 months ago

@wissygh: No bits in mstateen0 are supposed to affect accesses to M-level CSRs such as mip and mie. Hence, I don't understand the question:

Can bit 59 in stateen for riscv64 control access to states of mip/mie?

The answer would seem to obviously be "No".

wissygh commented 4 months ago

@wissygh: No bits in mstateen0 are supposed to affect accesses to M-level CSRs such as mip and mie. Hence, I don't understand the question:

Can bit 59 in stateen for riscv64 control access to states of mip/mie?

The answer would seem to obviously be "No".

Sorry, I made a typo. It should be "sip/sie". It only mentions "sieh/siph" in spec.