improve #if's

This commit is contained in:
Romain Dolbeau 2023-10-22 09:10:28 +02:00
parent bd8d1da000
commit 7ae8cfa1df

View File

@ -25,7 +25,9 @@ UInt32 Primary(SEBlock* seblock) {
SwapMMUMode ( &busMode ); // to32 // this likely won't work on older MacII ???
PRIM_WRITEREG(GOBOFB_VBL_MASK, 0);// disable interrupts on FB
#ifdef ENABLE_RAMDSK
PRIM_WRITEREG(DMA_IRQ_CTL, revb(0x2));// disable/clear interrupts on DSK
#endif
/* PRIM_WRITEREG(GOBOFB_DEBUG, 0x87654321);// trace */
/* PRIM_WRITEREG(GOBOFB_DEBUG, busMode);// trace */
@ -34,7 +36,8 @@ UInt32 Primary(SEBlock* seblock) {
vres = __builtin_bswap32((UInt32)PRIM_READREG(GOBOFB_VRES)); // fixme: endianness
/* initialize DRAM controller */
#ifndef QEMU
#if !defined(QEMU) && !defined(IISIFPGA)
// IIisFPGA should have the hardware initializer, as SDRAM needs to work before the Mac ROM probes it for memory expansion
sdram_init(a32);
#endif