mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user