Ignore:
Timestamp:
Mar 5, 2013, 4:00:09 PM (12 years ago)
Author:
meunier
Message:

Ajout du malloc dans le Giet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/xml/xml_driver.c

    r228 r232  
    271271                    port_id < coproc[coproc_id].port_offset + coproc[coproc_id].ports;
    272272                    port_id++) {
    273                 unsigned int vobj_id = cp_port[port_id].vobjlocid + vspace[cp_port[port_id].vspaceid].vobj_offset;
     273                unsigned int vobj_id = cp_port[port_id].mwmr_vobjid + vspace[cp_port[port_id].vspaceid].vobj_offset;
    274274                fprintf(fpout, "             <port direction = \"%s\" ",  port_direction[cp_port[port_id].direction]);
    275275                fprintf(fpout, " vspacename = \"%s\" ", vspace[cp_port[port_id].vspaceid].name);
     
    353353                task_id < (vspace[vspace_id].task_offset + vspace[vspace_id].tasks);
    354354                task_id++) {
    355             unsigned int vobj_id = task[task_id].vobjlocid + vspace[vspace_id].vobj_offset;
     355            unsigned int stack_vobj_id = task[task_id].stack_vobjid + vspace[vspace_id].vobj_offset;
     356            unsigned int heap_vobj_id = task[task_id].heap_vobjid + vspace[vspace_id].vobj_offset;
    356357
    357358            fprintf(fpout, "            <task name = \"%s\" ", task[task_id].name);
    358359            fprintf(fpout, "clusterid = \"%d\" ", task[task_id].clusterid);
    359360            fprintf(fpout, "proclocid = \"%d\" ", task[task_id].proclocid);
    360             fprintf(fpout, "stackname = \"%s\" ", vobj[vobj_id].name);
     361            fprintf(fpout, "stackname = \"%s\" ", vobj[stack_vobj_id].name);
     362            if (heap_vobj_id != -1) {
     363                fprintf(fpout, "heapname = \"%s\" ", vobj[heap_vobj_id].name);
     364            }
    361365            fprintf(fpout, "startid = \"%d\" ", task[task_id].startid);
    362366            fprintf(fpout, "usetty = \"%d\" ", task[task_id].use_tty);
Note: See TracChangeset for help on using the changeset viewer.