Changeset 296 for soft/giet_vm/giet_xml
- Timestamp:
- Mar 27, 2014, 6:39:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_xml/xml_parser.c
r295 r296 321 321 322 322 #if XML_PARSER_DEBUG 323 printf(" - found vseg %s with psegid =%d", vseg[vseg_id]->name, pseg_id );323 printf(" - found vseg %s associated to pseg %d", vseg[vseg_id]->name, pseg_id ); 324 324 #endif 325 325 … … 1285 1285 else if (strcmp(str, "ISR_NIC_RX" ) == 0) irq[irq_index]->isr = ISR_NIC_RX; 1286 1286 else if (strcmp(str, "ISR_NIC_TX" ) == 0) irq[irq_index]->isr = ISR_NIC_TX; 1287 else if (strcmp(str, "ISR_MMC" ) == 0) irq[irq_index]->isr = ISR_MMC; 1287 1288 else if (strcmp(str, "ISR_DEFAULT") == 0) irq[irq_index]->isr = ISR_DEFAULT; 1288 1289 else 1289 1290 { 1290 1291 printf("[XML ERROR] illegal IRQ <isr> for periph %d in cluster %d\n", 1291 cluster_index, periph_loc_index);1292 periph_loc_index, cluster_index ); 1292 1293 exit(1); 1293 1294 } … … 1749 1750 periph[periph_index]->irq_offset = irq_index; 1750 1751 1751 #if XML_PARSER_DEBUG1752 printf(" irq_offset = %d\n", irq_index );1753 #endif1754 1755 1752 ///////////// get IRQs 1756 1753 int status = xmlTextReaderRead(reader); … … 2322 2319 } 2323 2320 2321 /////////// get signature attribute 2322 value = getIntValue(reader, "signature", &ok); 2323 if ( ok && (value == IN_MAPPING_SIGNATURE) ) 2324 { 2325 #if XML_PARSER_DEBUG 2326 printf(" signature = %x\n", value); 2327 #endif 2328 header->signature = IN_MAPPING_SIGNATURE; 2329 } 2330 else 2331 { 2332 printf("[XML ERROR] illegal or missing <signature> for mapping %s\n", 2333 header->name ); 2334 exit(1); 2335 } 2336 2324 2337 /////////// get x_width attribute 2325 2338 value = getIntValue(reader, "x_width", &ok); … … 2390 2403 unsigned int y_io = getIntValue(reader, "y_io", &ok); 2391 2404 #if XML_PARSER_DEBUG 2392 printf(" y_io = %d\n", y_ size);2405 printf(" y_io = %d\n", y_io); 2393 2406 #endif 2394 2407 if ( ok &&(y_io < y_size) ) … … 2440 2453 ///////// set other header fields 2441 2454 header->increment = 0x10000; 2442 header->signature = IN_MAPPING_SIGNATURE;2443 2455 header->globals = 0; 2444 2456 header->vspaces = 0;
Note: See TracChangeset
for help on using the changeset viewer.