From b30915dd1fd0094356edb273af07f92b111e30c6 Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Mon, 28 Sep 2015 17:46:38 +0200 Subject: [PATCH] Fixed check for Blizzard cpuboard memtype, fixed readonly for rom_f0_ppc --- main.cpp | 2 +- od-win32/mman.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 002077c27..c68e4d3f0 100644 --- a/main.cpp +++ b/main.cpp @@ -310,7 +310,7 @@ void fixup_cpu (struct uae_prefs *p) error_log(_T("Cycle-exact mode requires at least Disabled but emulated sound setting.")); } - if (p->cpuboard_type && cpuboard_jitdirectompatible(p) && !p->comptrustbyte) { + if (p->cachesize && p->cpuboard_type && !cpuboard_jitdirectompatible(p) && !p->comptrustbyte) { error_log(_T("JIT direct is not compatible with emulated Blizzard accelerator boards.")); p->comptrustbyte = 1; p->comptrustlong = 1; diff --git a/od-win32/mman.cpp b/od-win32/mman.cpp index c9113af41..a6c4a30cd 100644 --- a/od-win32/mman.cpp +++ b/od-win32/mman.cpp @@ -638,7 +638,7 @@ void *uae_shmat (addrbank *ab, int shmid, void *shmaddr, int shmflg) // this is flash and also contains IO shmaddr=natmem_offset + 0xf00000; got = true; - readonly = true; + readonly = false; } else if (!_tcscmp(shmids[shmid].name, _T("rtarea"))) { shmaddr = natmem_offset + rtarea_base; got = true;