diff options
| author | Prashanth Mundkur | 2018-04-18 14:56:42 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-04-18 14:56:42 -0700 |
| commit | e5da122d95fe77fcc44bc832f90c79435b947a8a (patch) | |
| tree | ee511fb35b995fa1997d089fec3cf2914a15df6f /riscv/riscv_sys.sail | |
| parent | 3194f0f124b4f1e83d1248a4c52ed05eb3de2837 (diff) | |
Use the generated num_of_E function for enum E instead of defining one by hand.
Diffstat (limited to 'riscv/riscv_sys.sail')
| -rw-r--r-- | riscv/riscv_sys.sail | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/riscv_sys.sail b/riscv/riscv_sys.sail index cee3ede4..dfed02c4 100644 --- a/riscv/riscv_sys.sail +++ b/riscv/riscv_sys.sail @@ -459,7 +459,7 @@ function check_CSR(csr : csreg, p : Privilege, isWrite : bool) -> bool = * it occured, returns the privilege at which it should be handled. */ function exception_delegatee(e : ExceptionType, p : Privilege) -> Privilege = { - let idx = exceptionType_to_nat(e); + let idx = num_of_ExceptionType(e); let super = medeleg.bits()[idx]; let user = sedeleg.bits()[idx]; let deleg = /* if misa.N() == true & user then User |
