diff options
| author | Christopher Pulte | 2018-10-13 17:44:08 +0100 |
|---|---|---|
| committer | Christopher Pulte | 2018-10-13 17:44:08 +0100 |
| commit | fb9a2e2367c912a04ae8cd1a8d2aa9c2f2220c14 (patch) | |
| tree | 6086e8419865e936fde07c5d6c41af303dd617a4 /riscv/riscv_step.sail | |
| parent | a9b18e2be154c6e2429b156ae9390ffad89a7c2a (diff) | |
Adapt checked_mem_read to have acquire/release/reserve arguments so
that this information propagates from the instruction definition to
the memory accesses. Necessary for Promising RISC-V concurrency model.
Diffstat (limited to 'riscv/riscv_step.sail')
| -rw-r--r-- | riscv/riscv_step.sail | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/riscv_step.sail b/riscv/riscv_step.sail index 8e5a0090..f9675115 100644 --- a/riscv/riscv_step.sail +++ b/riscv/riscv_step.sail @@ -21,7 +21,7 @@ function fetch() -> FetchResult = * well as to generate precise fault addresses in any fetch * exceptions. */ - match checked_mem_read(Instruction, ppclo, 2) { + match checked_mem_read(Instruction, ppclo, 2, false, false, false) { MemException(e) => F_Error(E_Fetch_Access_Fault, PC), MemValue(ilo) => { if isRVC(ilo) then F_RVC(ilo) @@ -30,7 +30,7 @@ function fetch() -> FetchResult = match translateAddr(PChi, Execute, Instruction) { TR_Failure(e) => F_Error(e, PChi), TR_Address(ppchi) => { - match checked_mem_read(Instruction, ppchi, 2) { + match checked_mem_read(Instruction, ppchi, 2, false, false, false) { MemException(e) => F_Error(E_Fetch_Access_Fault, PChi), MemValue(ihi) => F_Base(append(ihi, ilo)) } |
