Project

General

Profile

Bug #9473

riscv.mmu 181:0 ERROR (SEMANTIC): "IF statements are not allowed in operations."

Added by Alexander Protsenko over 1 year ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Category:
MMU Plugin
Target version:
Start date:
02/05/2019
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

extern SATP_MODE = SATP_MODE // 0 - No translation or protection.

op store_global(va: VA)
init = {
  va.type = STORE_OP;
  va.is_pa = 0;
  va.pa = 0;
  va.ppn = 0;
#ifdef MEM_SV32
  va.i = 1; // Sv32
#else // V64
  if SATP_MODE == 8 then
    va.i = 2; // Sv39
  else
    va.i = 3; // Sv48
  endif;
#endif
}

History

#1

Updated by Alexander Kamkin 9 months ago

  • Target version set to 2.5
  • Category changed from MMU Plugin to 47

Also available in: Atom PDF