Changeset 709 for soft/giet_vm/giet_xml/xml_driver.c
- Timestamp:
- Oct 1, 2015, 4:20:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_xml/xml_driver.c
r645 r709 126 126 unsigned int pseg_id; 127 127 unsigned int vseg_id; 128 unsigned int t ask_id;128 unsigned int thread_id; 129 129 unsigned int proc_id; 130 130 unsigned int irq_id; … … 135 135 mapping_vspace_t * vspace; 136 136 mapping_vseg_t * vseg; 137 mapping_t ask_t * task;137 mapping_thread_t * thread; 138 138 mapping_irq_t * irq; 139 139 mapping_periph_t * periph; … … 161 161 MAPPING_VSPACE_SIZE * header->vspaces); 162 162 163 // computes the base address for t asks array164 t ask = (mapping_task_t *) ((char *) header +163 // computes the base address for threads array 164 thread = (mapping_thread_t *) ((char *) header + 165 165 MAPPING_HEADER_SIZE + 166 166 MAPPING_CLUSTER_SIZE * header->x_size * header->y_size + … … 176 176 MAPPING_VSPACE_SIZE * header->vspaces + 177 177 MAPPING_VSEG_SIZE * header->vsegs + 178 MAPPING_T ASK_SIZE * header->tasks +178 MAPPING_THREAD_SIZE * header->threads + 179 179 MAPPING_PROC_SIZE * header->procs); 180 180 … … 186 186 MAPPING_VSPACE_SIZE * header->vspaces + 187 187 MAPPING_VSEG_SIZE * header->vsegs + 188 MAPPING_T ASK_SIZE * header->tasks +188 MAPPING_THREAD_SIZE * header->threads + 189 189 MAPPING_PROC_SIZE * header->procs + 190 190 MAPPING_IRQ_SIZE * header->irqs); … … 342 342 } 343 343 344 //////////////////// t asks //////////////////////////////////////////////345 346 for (t ask_id = vspace[vspace_id].task_offset;347 t ask_id < (vspace[vspace_id].task_offset + vspace[vspace_id].tasks);348 t ask_id++)344 //////////////////// threads ////////////////////////////////////////////// 345 346 for (thread_id = vspace[vspace_id].thread_offset; 347 thread_id < (vspace[vspace_id].thread_offset + vspace[vspace_id].threads); 348 thread_id++) 349 349 { 350 unsigned int stack_vseg_id = t ask[task_id].stack_vseg_id;351 unsigned int heap_vseg_id = t ask[task_id].heap_vseg_id;352 unsigned int cluster_id = t ask[task_id].clusterid;353 354 fprintf(fpout, " <t ask name=\"%s\"", task[task_id].name);355 fprintf(fpout, " trdid=\"%d\"", t ask[task_id].trdid);350 unsigned int stack_vseg_id = thread[thread_id].stack_vseg_id; 351 unsigned int heap_vseg_id = thread[thread_id].heap_vseg_id; 352 unsigned int cluster_id = thread[thread_id].clusterid; 353 354 fprintf(fpout, " <thread name=\"%s\"", thread[thread_id].name); 355 fprintf(fpout, " trdid=\"%d\"", thread[thread_id].trdid); 356 356 fprintf(fpout, " x=\"%d\"", cluster[cluster_id].x); 357 357 fprintf(fpout, " y=\"%d\"", cluster[cluster_id].y); 358 fprintf(fpout, " p=\"%d\"", t ask[task_id].proclocid);358 fprintf(fpout, " p=\"%d\"", thread[thread_id].proclocid); 359 359 fprintf(fpout, "\n "); 360 360 fprintf(fpout, " stackname=\"%s\"", vseg[stack_vseg_id].name); 361 361 if (heap_vseg_id != -1) 362 362 fprintf(fpout, " heapname=\"%s\"", vseg[heap_vseg_id].name); 363 fprintf(fpout, " startid = \"%d\"", t ask[task_id].startid);363 fprintf(fpout, " startid = \"%d\"", thread[thread_id].startid); 364 364 fprintf(fpout, " />\n"); 365 365 }
Note: See TracChangeset
for help on using the changeset viewer.