-
Notifications
You must be signed in to change notification settings - Fork 35
Zcmt
→ Zicsr
dependency?
#179
Comments
It's implicit. Every CSR in the priv spec doesn't say "needs Zicsr" - there's just one statement saying Zicsr is needed for all of them.
In the JVT spec, which implicitly requires Zicsr. is that ok? |
For privileged specifications, it's okay. For unprivileged specifications, the position is not that clear. To be clear, recent draft of the RISC-V ISA Manual, Part I (unprivileged part) is doing the opposite. For instance, quoting the latest manual (draft):
I'm happy if |
@aswaterman I'm sure this came up before and I didn't list Zicsr in the Zcmt spec for the reason listed above. Can you comment on @a4lg 's concerns? |
@tariqkurd-repo Interesting. Yes, I need some proper clarification but implicit Further ContextSimilar discussion came up when I tried to implement implicit implication rule
At the time of PATCH v1 submission, I expected implicit So, for me, both options are okay as long as clarified somewhere:
|
Please just include the following sentence in the Zcmt spec: "The Zcmt extension depends on the Zicsr extension." This is what we do for e.g. the F extension. It means that listing only Zcmt in the ISA string is sufficient; Zicsr is implicitly present if Zcmt is present. |
so elsewhere we're using the phrase (e.g.)
do you take requires and depends on to have the same meaning here? thisi is what I've put in v1.0.0-RC5.3 - but if the relationship between Zcmt and Zicsr and Zcmt and Zca are different then I'd like to be clear about exactly what that means Tariq |
I'm not trying to suggest the relationship between Zcmt and Zca differs from the relationship between Zcmt and Zicsr. I'm just quoting the ratified spec. We should use the same language for all of the above, IMO. |
As the
Zcmt
extension addsjvt
CSR (URW,0x17
), I think it's required to note that theZcmt
extension depends onZicsr
as well asZca
.This is important also because the
jvt
CSR is an unprivileged CSR (so we cannot assume the existence of the privileged architecture, which requiresZicsr
).The text was updated successfully, but these errors were encountered: