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 #1

Updated by Alexander Kamkin almost 5 years ago

  • Target version set to 2.5
Actions #2

Updated by Alexander Protsenko over 1 year ago

  • Target version changed from 2.5 to 2.6
Actions

Also available in: Atom PDF