+
+ // Set up the min/max ranges for mapped reads/writes
+ for (int i = 0; i < MAX_NUM_MAPPED_ITEMS; i++) {
+ if (cfg->map_type[i] != MAPTYPE_NONE) {
+ if ((cfg->map_offset[i] != 0 && cfg->map_offset[i] < cfg->map_low) || cfg->map_low == 0)
+ cfg->map_low = cfg->map_offset[i];
+ if (cfg->map_offset[i] + cfg->map_size[i] > cfg->map_high)
+ cfg->map_high = cfg->map_offset[i] + cfg->map_size[i];
+ }
+ }
+
+ if (gayle_emulation_enabled) {
+ cfg->custom_low = GAYLEBASE;
+ cfg->custom_high = GAYLEBASE + GAYLESIZE;
+ }
+
+ printf("Platform custom range: %.8X-%.8X\n", cfg->custom_low, cfg->custom_high);
+ printf("Platform mapped range: %.8X-%.8X\n", cfg->map_low, cfg->map_high);