Disable MMX emulation if FPU emulation is disabled, since MMX registers are just aliases of the FPU registers, to avoid compile fail [https://github.com/joncampbell123/dosbox-x/issues/1388]

This commit is contained in:
Jonathan Campbell
2020-02-23 19:28:24 -08:00
parent aa249340f7
commit 1c3e1bf6db
3 changed files with 11 additions and 1 deletions

View File

@@ -19,6 +19,8 @@
#ifndef DOSBOX_MMX_H
#define DOSBOX_MMX_H
#if C_FPU
typedef union {
Bit64u q;
@@ -86,4 +88,6 @@ Bit16u SaturateDwordSToWordU(Bit32s value);
void setFPU(Bit16u tag);
#endif
#endif
#endif

View File

@@ -531,4 +531,6 @@
CASE_0F_D(0xcf) /* BSWAP EDI */
if (CPU_ArchitectureType<CPU_ARCHTYPE_486OLD) goto illegal_opcode;
BSWAPD(reg_edi);break;
#if C_FPU
#include "prefix_0f_mmx.h"
#endif

View File

@@ -24,6 +24,8 @@
#include "cpu.h"
#include "fpu.h"
#if C_FPU
MMX_reg reg_mmx[8];
@@ -100,3 +102,5 @@ void setFPU(Bit16u tag) {
FPU_SetTag(tag);
}
#endif