]> git.sesse.net Git - pistorm/blobdiff - config_file/config_file.c
More tiny optimizations, some Z2/Z3 fixes
[pistorm] / config_file / config_file.c
index 1d41335bf350c6288e93a00c7aa8bc25533b4aa4..76d0bb6011e565a53636d56e5e02ac242964f316 100644 (file)
@@ -185,6 +185,7 @@ void add_mapping(struct emulator_config *cfg, unsigned int type, unsigned int ad
   cfg->map_type[index] = type;
   cfg->map_offset[index] = addr;
   cfg->map_size[index] = size;
+  cfg->map_high[index] = addr + size;
   cfg->map_mirror[index] = mirr_addr;
   if (strlen(map_id)) {
     cfg->map_id[index] = (char *)malloc(strlen(map_id) + 1);