memory_bus: Turn flashbase into a par_master member `rom_base`
Get rid of the global `flashbase`. Treat overrides for the `rom_base`
similar to `max_rom_decode`: Gather the information in `internal_data`
and then pass it to register_par_master().
Change-Id: Ib9ed7234a849fe3550200fd602226d0036da15f0
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/436
diff --git a/nicintel.c b/nicintel.c
index 573b361..1d9a2a7 100644
--- a/nicintel.c
+++ b/nicintel.c
@@ -93,7 +93,7 @@
*/
pci_rmmio_writew(0x0001, nicintel_control_bar + CSR_FCR);
- return register_par_master(&par_master_nicintel, BUS_PARALLEL, NICINTEL_MEMMAP_SIZE, NULL);
+ return register_par_master(&par_master_nicintel, BUS_PARALLEL, 0, NICINTEL_MEMMAP_SIZE, NULL);
}
static void nicintel_chip_writeb(const struct flashctx *flash, uint8_t val,