]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not use direct allocation if uae boot rom is not needed. Direct can conflict with...
authorToni Wilen <twilen@winuae.net>
Sun, 11 Sep 2016 15:37:17 +0000 (18:37 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 11 Sep 2016 15:37:17 +0000 (18:37 +0300)
autoconf.cpp

index 00ba6a8e239579c63eb0b00b5c6bb60dcac8c108..44048f25995806f12e7954097f8dbe5786c52313 100644 (file)
@@ -540,6 +540,12 @@ static uae_u32 REGPARAM2 uae_puts (TrapContext *ctx)
 
 void rtarea_init_mem (void)
 {
+       if (need_uae_boot_rom(&currprefs)) {
+               rtarea_bank.flags &= ~ABFLAG_ALLOCINDIRECT;
+       } else {
+               // not enabled and something else may use same address space
+               rtarea_bank.flags |= ABFLAG_ALLOCINDIRECT;
+       }
        rtarea_bank.reserved_size = RTAREA_SIZE;
        rtarea_bank.start = rtarea_base;
        if (!mapped_malloc (&rtarea_bank)) {