Changeset 204 for soft/giet_vm/xml/xml_parser.c
- Timestamp:
- Aug 14, 2012, 8:14:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/xml_parser.c
r203 r204 1565 1565 else if ( strcmp(tag, "globalset") == 0 ) 1566 1566 { 1567 // checking source file consistency1568 if ( vseg_index != header->globals )1569 {1570 printf("[XML ERROR] Wrong number of global vsegs\n");1571 exit(1);1572 }1573 else1574 {1575 1567 #if XML_PARSER_DEBUG 1576 1568 printf(" end global set\n\n"); 1577 1569 #endif 1578 vseg_loc_index = 0;1579 return;1580 }1570 header->globals = vseg_index; 1571 vseg_loc_index = 0; 1572 return; 1581 1573 } 1582 1574 else … … 1703 1695 } 1704 1696 1705 ////////// get globals attribute1706 value = getIntValue(reader, "globals", &ok);1707 if ( ok )1708 {1709 if ( value >= MAX_VSEGS )1710 {1711 printf("[XML ERROR] The number of globals is larger than %d\n", MAX_VSEGS);1712 exit(1);1713 }1714 #if XML_PARSER_DEBUG1715 printf(" globals = %d\n", value);1716 #endif1717 header->globals = value;1718 }1719 else1720 {1721 printf("[XML ERROR] illegal or missing <globals> attribute in mapping_info_header\n");1722 exit(1);1723 }1724 1725 1697 //////// initialise non replicated peripherals cluster_id 1726 1698 header->tty_clusterid = 0xFFFFFFFF;
Note: See TracChangeset
for help on using the changeset viewer.