Commit 6e6885fe authored by YenHaoChen's avatar YenHaoChen
Browse files

stimecmp: perform menvcfg.STCE permission check when accessing vstimecmp in HS-mode

The spec requires menvcfg.STCE=1 on accessing stimecmp or vstimecmp in a
mode other than M-mode. The previous implementation does not check the
permission on accessing vstimecmp in HS-mode. This commit fixes the
issue by moveing the permission check from virtualized_stimecmp_csr_t to
stimecmp_csr_t, which implements the vstimecmp.
parent 4841ad02
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment