Ignore:
Timestamp:
Aug 14, 2012, 8:14:55 PM (12 years ago)
Author:
alain
Message:

mproving support for multi-clusters architectures (CLUSTER_SIZE & CLUSTER_IO_ID parameters)

File:
1 edited

Legend:

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

    r203 r204  
    15651565        else if ( strcmp(tag, "globalset") == 0 )
    15661566        {
    1567             // checking source file consistency
    1568             if ( vseg_index != header->globals )
    1569             {
    1570                 printf("[XML ERROR] Wrong number of global vsegs\n");
    1571                 exit(1);
    1572             }
    1573             else
    1574             {
    15751567#if XML_PARSER_DEBUG
    15761568printf("  end global set\n\n");
    15771569#endif
    1578                 vseg_loc_index = 0;
    1579                 return;
    1580             }
     1570            header->globals = vseg_index;
     1571            vseg_loc_index = 0;
     1572            return;
    15811573        }
    15821574        else
     
    17031695    }
    17041696
    1705     ////////// get globals attribute
    1706     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_DEBUG
    1715 printf("  globals = %d\n", value);
    1716 #endif
    1717         header->globals  = value;
    1718     }
    1719     else
    1720     {
    1721         printf("[XML ERROR] illegal or missing <globals> attribute in mapping_info_header\n");
    1722         exit(1);
    1723     }
    1724 
    17251697    //////// initialise non replicated peripherals cluster_id
    17261698    header->tty_clusterid = 0xFFFFFFFF;
Note: See TracChangeset for help on using the changeset viewer.