mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
Store highest RAM address
This commit is contained in:
parent
ed50d84563
commit
3d2891e9b6
@ -28,6 +28,7 @@ void free_shm (void);
|
||||
bool preinit_shm (void);
|
||||
extern bool canbang;
|
||||
extern bool jit_direct_compatible_memory;
|
||||
extern uaecptr highest_ram;
|
||||
|
||||
#define Z3BASE_UAE 0x10000000
|
||||
#define Z3BASE_REAL 0x40000000
|
||||
|
||||
@ -44,6 +44,7 @@
|
||||
#include "casablanca.h"
|
||||
|
||||
bool canbang;
|
||||
uaecptr highest_ram;
|
||||
static bool rom_write_enabled;
|
||||
#ifdef JIT
|
||||
/* Set by each memory handler that does not simply access real memory. */
|
||||
@ -2789,6 +2790,7 @@ void memory_reset (void)
|
||||
int bnk, bnk_end;
|
||||
bool gayleorfatgary;
|
||||
|
||||
highest_ram = 0;
|
||||
alg_flag = 0;
|
||||
need_hardreset = false;
|
||||
rom_write_enabled = true;
|
||||
@ -3401,6 +3403,9 @@ void map_banks (addrbank *bank, int start, int size, int realsize)
|
||||
#ifdef WITH_PPC
|
||||
ppc_generate_map_banks(bank, start, size);
|
||||
#endif
|
||||
if ((bank->flags & ABFLAG_RAM) && !(bank->flags & ABFLAG_RTG) && ((start + size) << 16) > highest_ram) {
|
||||
highest_ram = (start + size) << 16;
|
||||
}
|
||||
}
|
||||
|
||||
bool validate_banks_z3(addrbank *bank, int start, int size)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user