Ejemplo n.º 1
0
 def get_info(self):
     """
     Get all items which belong to this class
     :return: None
     """
     self.phys_gsi, self.virt_gsi = common.get_pt_intx_table(
         self.scenario_info)
Ejemplo n.º 2
0
def pt_intx_num_vm0_gen(config):

    phys_gsi, virt_gsi = common.get_pt_intx_table(common.SCENARIO_INFO_FILE)

    if (board_cfg_lib.is_matched_board(("ehl-crb-b"))
            and phys_gsi.get(0) is not None and len(phys_gsi[0]) > 0):
        print("#define VM0_PT_INTX_NUM\t{}U".format(len(phys_gsi[0])),
              file=config)
    else:
        print("#define VM0_PT_INTX_NUM\t0U", file=config)

    print("", file=config)