OSDN Git Service

[VM] Apply VM_TEMPLATE to all VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc100 / pc100.cpp
index 681bfb7..ed4352f 100644 (file)
@@ -38,7 +38,7 @@
 // initialize
 // ----------------------------------------------------------------------------
 
-VM::VM(EMU* parent_emu) : emu(parent_emu)
+VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
 {
        // create devices
        first_device = last_device = NULL;
@@ -343,7 +343,7 @@ extern CSP_Logger DLL_PREFIX_I *csp_logger;
 void VM::decl_state(void)
 {
        state_entry = new csp_state_utils(STATE_VERSION, 0, (_TCHAR *)(_T("CSP::PC_100_HEAD")), csp_logger);
-       DECL_STATE_ENTRY_MULTI(void, ram, sizeof(ram));
+       DECL_STATE_ENTRY_1D_ARRAY(ram, sizeof(ram));
        for(DEVICE* device = first_device; device; device = device->next_device) {
                device->decl_state();
        }