From 3d3fb21df7c41cb0d68954775a29893655f09fa2 Mon Sep 17 00:00:00 2001 From: Prashanth Mundkur Date: Fri, 8 Jun 2018 15:16:30 -0700 Subject: Update initialization of misa. --- riscv/riscv_sys.sail | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'riscv') diff --git a/riscv/riscv_sys.sail b/riscv/riscv_sys.sail index 01e45363..0d1b69d9 100644 --- a/riscv/riscv_sys.sail +++ b/riscv/riscv_sys.sail @@ -727,9 +727,12 @@ function init_sys() -> unit = { cur_privilege = Machine; misa->MXL() = arch_to_bits(RV64); - misa->C() = true; - misa->U() = true; - misa->S() = true; + misa->A() = true; /* atomics */ + misa->C() = true; /* RVC */ + misa->I() = true; /* base integer ISA */ + misa->M() = true; /* integer multiply/divide */ + misa->U() = true; /* user-mode */ + misa->S() = true; /* supervisor-mode */ mstatus->SXL() = misa.MXL(); mstatus->UXL() = misa.MXL(); -- cgit v1.2.3