Project

General

Profile

Task #9448

Вызов метода init() в методе init() другого объекта op в *.mmu

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

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

0%

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

Description

Есть op'ы (riscv.mmu):

op sw(va: VA)
init = {
  va.type = STORE_OP;
  va.is_pa = 0;
  va.pa = 0;
#ifdef RV32FULL
  va.i = 1; // Sv32
#else
#endif
}

op lw(va: VA)
init = {
  va.type = LOAD_OP;
  va.is_pa = 0;
  va.pa = 0;
#ifdef RV32FULL
  va.i = 1; // Sv32
#else
#endif
}

Хотелось бы иметь возможность делать так:

op va_initializing(va: VA)
init = {
  va.is_pa = 0;
  va.pa = 0;
#ifdef RV32FULL
  va.i = 1; // Sv32
#else
#endif
}

op lw(va: VA)
init = {
  va.type = LOAD_OP;
  va_initializing(va).init;
}

History

#1

Updated by Alexander Kamkin 9 months ago

  • Target version set to 2.5

Also available in: Atom PDF