# HG changeset patch # User Michael Pavone # Date 1487076277 28800 # Node ID 53fc7efdfdabf27f54dc087f4fee12614387112c # Parent 1e7977460d187d96417e4bf8edc5836af296d1c7 Fix handling of SRAM overlapping with ROM diff -r 1e7977460d18 -r 53fc7efdfdab romdb.c --- a/romdb.c Tue Feb 14 04:15:49 2017 -0800 +++ b/romdb.c Tue Feb 14 04:44:37 2017 -0800 @@ -561,7 +561,7 @@ info->map[1].read_8 = (read_8_fun)read_sram_b; info->map[1].write_16 = (write_16_fun)write_sram_area_w;//these will be called all writes to the area info->map[1].write_8 = (write_8_fun)write_sram_area_b; - info->map[1].buffer = rom + 0x200000 / sizeof(uint16_t); + info->map[1].buffer = rom + 0x200000; memmap_chunk *last = info->map + info->map_chunks - 1; memset(last, 0, sizeof(memmap_chunk));