Project

General

Profile

Actions

Bug #9473

open

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

Added by Alexander Protsenko about 5 years ago. Updated about 1 year 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
}
Actions #1

Updated by Alexander Kamkin about 4 years ago

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

Updated by Alexander Protsenko about 1 year ago

  • Target version changed from 2.5 to 2.6
Actions

Also available in: Atom PDF