From: Frode Solheim Date: Fri, 12 Sep 2014 18:01:12 +0000 (+0200) Subject: Fixed bug when adding 2nd fast memory bank in non-autoconfig mode X-Git-Tag: 3000~40^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7ab6829b6c454a3bdc81774e2aeeea11fbfe689d;p=francis%2Fwinuae.git Fixed bug when adding 2nd fast memory bank in non-autoconfig mode --- diff --git a/expansion.cpp b/expansion.cpp index 4bdf50d1..88e7cc7d 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -1672,7 +1672,7 @@ void expamem_reset (void) } if (fastmem2_bank.baseaddr != NULL) { fastmem2_bank.name = _T("Fast memory 2 (non-autoconfig)"); - map_banks(&fastmem2_bank, (0x00200000 + fastmem2_bank.allocated) >> 16, fastmem2_bank.allocated >> 16, 0); + map_banks(&fastmem2_bank, (0x00200000 + fastmem_bank.allocated) >> 16, fastmem2_bank.allocated >> 16, 0); } } // immediately after Z2Fast so that they can be emulated as A590/A2091 with fast ram. @@ -1773,7 +1773,6 @@ void expamem_reset (void) card_init[cardno] = expamem_init_warpengine; card_map[cardno++] = NULL; } - if (z3fastmem_bank.baseaddr != NULL) { z3num = 0; card_flags[cardno] = 2 | 1; @@ -1987,7 +1986,7 @@ void restore_fram (int len, size_t filepos, int num) } } -void restore_fram2 (int len, size_t filepos) +static void restore_fram2 (int len, size_t filepos) { fast2_filepos = filepos; changed_prefs.fastmem2_size = len;