Merge branch 'master' of https://github.com/86Box/86Box
# Conflicts: # src/cpu/cpu.c
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "x87_timings.h"
|
#include "x87_timings.h"
|
||||||
|
|
||||||
#define ENABLE_CPU_LOG 1
|
/*#define ENABLE_CPU_LOG 1*/
|
||||||
|
|
||||||
static void cpu_write(uint16_t addr, uint8_t val, void *priv);
|
static void cpu_write(uint16_t addr, uint8_t val, void *priv);
|
||||||
static uint8_t cpu_read(uint16_t addr, void *priv);
|
static uint8_t cpu_read(uint16_t addr, void *priv);
|
||||||
@@ -399,9 +399,9 @@ cpu_set(void)
|
|||||||
hasfpu = (fpu_type != FPU_NONE);
|
hasfpu = (fpu_type != FPU_NONE);
|
||||||
hascache = (cpu_s->cpu_type >= CPU_486SLC) || (cpu_s->cpu_type == CPU_IBM386SLC || cpu_s->cpu_type == CPU_IBM486SLC || cpu_s->cpu_type == CPU_IBM486BL);
|
hascache = (cpu_s->cpu_type >= CPU_486SLC) || (cpu_s->cpu_type == CPU_IBM386SLC || cpu_s->cpu_type == CPU_IBM486SLC || cpu_s->cpu_type == CPU_IBM486BL);
|
||||||
#if defined(DEV_BRANCH) && defined(USE_CYRIX_6X86)
|
#if defined(DEV_BRANCH) && defined(USE_CYRIX_6X86)
|
||||||
cpu_iscyrix = (cpu_s->cpu_type == CPU_486SLC || cpu_s->cpu_type == CPU_486DLC || cpu_s->cpu_type == CPU_Cx486S || cpu_s->cpu_type == CPU_Cx486DX || cpu_s->cpu_type == CPU_Cx486DX2 || cpu_s->cpu_type == CPU_Cx5x86 || cpu_s->cpu_type == CPU_Cx6x86 || cpu_s->cpu_type == CPU_Cx6x86MX || cpu_s->cpu_type == CPU_Cx6x86L || cpu_s->cpu_type == CPU_CxGX1);
|
cpu_iscyrix = (cpu_s->cpu_type == CPU_486SLC || cpu_s->cpu_type == CPU_486DLC || cpu_s->cpu_type == CPU_Cx486S || cpu_s->cpu_type == CPU_Cx486DX || cpu_s->cpu_type == CPU_Cx486DX2 || cpu_s->cpu_type == CPU_Cx486DX4 || cpu_s->cpu_type == CPU_Cx5x86 || cpu_s->cpu_type == CPU_Cx6x86 || cpu_s->cpu_type == CPU_Cx6x86MX || cpu_s->cpu_type == CPU_Cx6x86L || cpu_s->cpu_type == CPU_CxGX1);
|
||||||
#else
|
#else
|
||||||
cpu_iscyrix = (cpu_s->cpu_type == CPU_486SLC || cpu_s->cpu_type == CPU_486DLC || cpu_s->cpu_type == CPU_Cx486S || cpu_s->cpu_type == CPU_Cx486DX || cpu_s->cpu_type == CPU_Cx486DX2 || cpu_s->cpu_type == CPU_Cx5x86);
|
cpu_iscyrix = (cpu_s->cpu_type == CPU_486SLC || cpu_s->cpu_type == CPU_486DLC || cpu_s->cpu_type == CPU_Cx486S || cpu_s->cpu_type == CPU_Cx486DX || cpu_s->cpu_type == CPU_Cx486DX2 || cpu_s->cpu_type == CPU_Cx486DX4 || cpu_s->cpu_type == CPU_Cx5x86);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cpu_16bitbus = (cpu_s->cpu_type == CPU_286 || cpu_s->cpu_type == CPU_386SX || cpu_s->cpu_type == CPU_486SLC || cpu_s->cpu_type == CPU_IBM386SLC || cpu_s->cpu_type == CPU_IBM486SLC );
|
cpu_16bitbus = (cpu_s->cpu_type == CPU_286 || cpu_s->cpu_type == CPU_386SX || cpu_s->cpu_type == CPU_486SLC || cpu_s->cpu_type == CPU_IBM386SLC || cpu_s->cpu_type == CPU_IBM486SLC );
|
||||||
@@ -935,6 +935,7 @@ cpu_set(void)
|
|||||||
case CPU_Cx486S:
|
case CPU_Cx486S:
|
||||||
case CPU_Cx486DX:
|
case CPU_Cx486DX:
|
||||||
case CPU_Cx486DX2:
|
case CPU_Cx486DX2:
|
||||||
|
case CPU_Cx486DX4:
|
||||||
#ifdef USE_DYNAREC
|
#ifdef USE_DYNAREC
|
||||||
x86_setopcodes(ops_386, ops_486_0f, dynarec_ops_386, dynarec_ops_486_0f);
|
x86_setopcodes(ops_386, ops_486_0f, dynarec_ops_386, dynarec_ops_486_0f);
|
||||||
#else
|
#else
|
||||||
|
@@ -159,10 +159,8 @@ extern CPU cpus_K56_SS7[];
|
|||||||
#if defined(DEV_BRANCH) && defined(USE_CYRIX_6X86)
|
#if defined(DEV_BRANCH) && defined(USE_CYRIX_6X86)
|
||||||
extern CPU cpus_6x863V[];
|
extern CPU cpus_6x863V[];
|
||||||
extern CPU cpus_6x86[];
|
extern CPU cpus_6x86[];
|
||||||
#ifdef USE_NEW_DYNAREC
|
|
||||||
extern CPU cpus_6x86SS7[];
|
extern CPU cpus_6x86SS7[];
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
extern CPU cpus_Cyrix3[];
|
extern CPU cpus_Cyrix3[];
|
||||||
extern CPU cpus_PentiumPro[];
|
extern CPU cpus_PentiumPro[];
|
||||||
extern CPU cpus_PentiumII66[];
|
extern CPU cpus_PentiumII66[];
|
||||||
|
@@ -42,6 +42,9 @@ ifeq ($(DEV_BUILD), y)
|
|||||||
ifndef CL5422
|
ifndef CL5422
|
||||||
CL5422 := y
|
CL5422 := y
|
||||||
endif
|
endif
|
||||||
|
ifndef CYRIX_6X86
|
||||||
|
CYRIX_6X86 := y
|
||||||
|
endif
|
||||||
ifndef LASERXT
|
ifndef LASERXT
|
||||||
LASERXT := y
|
LASERXT := y
|
||||||
endif
|
endif
|
||||||
@@ -109,6 +112,9 @@ else
|
|||||||
ifndef CL5422
|
ifndef CL5422
|
||||||
CL5422 := n
|
CL5422 := n
|
||||||
endif
|
endif
|
||||||
|
ifndef CYRIX_6X86
|
||||||
|
CYRIX_6X86 := n
|
||||||
|
endif
|
||||||
ifndef LASERXT
|
ifndef LASERXT
|
||||||
LASERXT := n
|
LASERXT := n
|
||||||
endif
|
endif
|
||||||
@@ -479,6 +485,10 @@ ifeq ($(CL5422), y)
|
|||||||
OPTS += -DUSE_CL5422
|
OPTS += -DUSE_CL5422
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CYRIX_6X86), y)
|
||||||
|
OPTS += -DUSE_CYRIX_6X86
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(LASERXT), y)
|
ifeq ($(LASERXT), y)
|
||||||
OPTS += -DUSE_LASERXT
|
OPTS += -DUSE_LASERXT
|
||||||
DEVBROBJ += m_xt_laserxt.o
|
DEVBROBJ += m_xt_laserxt.o
|
||||||
|
Reference in New Issue
Block a user