OSDN Git Service

[VM] Apply before commit to some VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc100 / pc100.cpp
index bd069d9..7b4ea7d 100644 (file)
@@ -63,6 +63,10 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
        cpu = new I80286(this, emu);
        io = new IO(this, emu);
        memory = new MEMORY(this, emu);
+       // MUST set MEMORY SIZE before use.
+       memory->set_addr_max(MEMORY_ADDR_MAX);
+       memory->set_bank_size(MEMORY_BANK_SIZE);
+       
        rtc = new MSM58321(this, emu);
        pcm = new PCM1BIT(this, emu);
        fdc = new UPD765A(this, emu);