Changeset 255 for soft/giet_vm/xml/xml_parser.c
- Timestamp:
- Oct 9, 2013, 9:32:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/xml_parser.c
r253 r255 748 748 ////////// set vobj_offset attributes 749 749 vseg[vseg_index]->vobj_offset = vobj_index; 750 // Init pbase_set to false 751 vseg[vseg_index]->pbase_set = 0; 750 752 751 753 #if XML_PARSER_DEBUG … … 1273 1275 } 1274 1276 } 1277 else if (strcmp(str, "SIM") == 0) 1278 { 1279 periph[periph_index]->type = PERIPH_TYPE_SIM; 1280 if (header->sim_cluster == 0xFFFFFFFF) 1281 { 1282 header->sim_cluster = cluster_index; 1283 } 1284 else if (header->sim_cluster_bis == 0xFFFFFFFF) 1285 { 1286 header->sim_cluster_bis = cluster_index; 1287 } 1288 else 1289 { 1290 error = 1; 1291 } 1292 } 1275 1293 // The TIM, ICU, XICU, DMA, MEMC peripherals are replicated in all clusters 1276 1294 // but it must exist only one component of each type per cluster … … 2086 2104 header->cma_cluster = 0xFFFFFFFF; 2087 2105 header->iob_cluster = 0xFFFFFFFF; 2106 header->sim_cluster = 0xFFFFFFFF; 2088 2107 header->tty_cluster_bis = 0xFFFFFFFF; 2089 2108 header->nic_cluster_bis = 0xFFFFFFFF; … … 2092 2111 header->cma_cluster_bis = 0xFFFFFFFF; 2093 2112 header->iob_cluster_bis = 0xFFFFFFFF; 2113 header->sim_cluster_bis = 0xFFFFFFFF; 2094 2114 2095 2115 ///////// set signature … … 2162 2182 } 2163 2183 2164 //#if XML_PARSER_DEBUG2184 #if XML_PARSER_DEBUG 2165 2185 printf("%s\n", file_path); 2166 //#endif2186 #endif 2167 2187 2168 2188 return fdout; … … 2424 2444 ld_write(fdout, "seg_iob_base ", periph_vbase_array[PERIPH_TYPE_IOB]); 2425 2445 ld_write(fdout, "seg_gcd_base ", periph_vbase_array[PERIPH_TYPE_GCD]); 2446 ld_write(fdout, "seg_sim_base ", periph_vbase_array[PERIPH_TYPE_SIM]); 2426 2447 2427 2448 file_write(fdout, "\n");
Note: See TracChangeset
for help on using the changeset viewer.