Changeset 255 for soft/giet_vm/xml
- Timestamp:
- Oct 9, 2013, 9:32:41 AM (11 years ago)
- Location:
- soft/giet_vm/xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/mapping_info.h
r253 r255 106 106 PERIPH_TYPE_GCD = 10, 107 107 PERIPH_TYPE_XCU = 11, 108 109 PERIPH_TYPE_MAX_VALUE = 12, 108 PERIPH_TYPE_SIM = 12, 109 110 PERIPH_TYPE_MAX_VALUE = 13, 110 111 }; 111 112 … … 142 143 unsigned int iob_cluster; // index of cluster containing IOB controler 143 144 unsigned int iob_cluster_bis; // index of cluster containing second IOB controler 145 unsigned int sim_cluster; // index of cluster containing the Simulation Helper 146 unsigned int sim_cluster_bis; // index of cluster containing the Simulation Helper 144 147 145 148 unsigned int psegs; // total number of physical segments (for all clusters) … … 182 185 unsigned int type; // RAM / ROM / PERI 183 186 unsigned int cluster; // index of cluster containing pseg 184 paddr_t next_base; // first free page base address185 187 } mapping_pseg_t; 186 188 … … 206 208 unsigned int vbase; // base address in virtual space 207 209 paddr_t pbase; // base address in physical space 210 unsigned int pbase_set; 208 211 unsigned int length; // size (bytes) 209 212 unsigned int psegid; // physical segment global index … … 234 237 235 238 ///////////////////////////// 236 typedef struct __attribute__((packed)) mapping_vobj_s 239 typedef struct __attribute__((packed)) mapping_vobj_s 237 240 { 238 241 char name[32]; // vobj name (unique in a vspace) -
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.