#ifndef _I386_H_
#define _I386_H_
-
+#if defined(USE_SHARED_DLL)
+//#if 0
+#include "libcpu_newdev/i386.h"
+#else
#include "vm.h"
#include "../emu.h"
#include "device.h"
void *opaque;
public:
- I386(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+ I386(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
{
#ifdef I386_PSEUDO_BIOS
d_bios = NULL;
#elif defined(HAS_PENTIUM4)
set_device_name(_T("Pentium4 CPU"));
#endif
+#if defined(HAS_I386)
+ set_device_name(_T("80386 CPU"));
+#elif defined(HAS_I486)
+ set_device_name(_T("80486 CPU"));
+#elif defined(HAS_PENTIUM)
+ set_device_name(_T("Pentium CPU"));
+#elif defined(HAS_MEDIAGX)
+ set_device_name(_T("Media GX CPU"));
+#elif defined(HAS_PENTIUM_PRO)
+ set_device_name(_T("Pentium Pro CPU"));
+#elif defined(HAS_PENTIUM_MMX)
+ set_device_name(_T("Pentium MMX CPU"));
+#elif defined(HAS_PENTIUM2)
+ set_device_name(_T("Pentium2 CPU"));
+#elif defined(HAS_PENTIUM3)
+ set_device_name(_T("Pentium3 CPU"));
+#elif defined(HAS_PENTIUM4)
+ set_device_name(_T("Pentium4 CPU"));
+#endif
}
~I386() {}
void write_debug_io32(uint32_t addr, uint32_t data);
uint32_t read_debug_io16(uint32_t addr);
bool write_debug_reg(const _TCHAR *reg, uint32_t data);
+ uint32_t read_debug_reg(const _TCHAR *reg);
void get_debug_regs_info(_TCHAR *buffer, size_t buffer_len);
int debug_dasm(uint32_t pc, _TCHAR *buffer, size_t buffer_len);
#endif
- void save_state(FILEIO* state_fio);
- bool load_state(FILEIO* state_fio);
+ bool process_state(FILEIO* state_fio, bool loading);
// unique function
void set_context_mem(DEVICE* device)
void set_shutdown_flag(int shutdown);
int get_shutdown_flag();
};
-
+#endif // USE_SHARED_DLL
#endif