Project

General

Profile

Actions

Task #9448

open

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

Added by Alexander Protsenko almost 6 years ago. Updated over 1 year 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;
}

Actions

Also available in: Atom PDF