missing padding in cpu features

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@547 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
IoIxD 2025-11-01 05:18:53 +00:00
commit 9746c20441

View file

@ -10,16 +10,17 @@
#if defined(__WATCOMC__) || defined(__i386__) || defined(__amd64__) #if defined(__WATCOMC__) || defined(__i386__) || defined(__amd64__)
typedef struct _cpuFeatures cpuFeatures; typedef struct _cpuFeatures cpuFeatures;
struct _cpuFeatures { struct _cpuFeatures {
MwBool fpu : 1; /* x87 FPU on chip */ MwBool fpu : 1; /* x87 FPU on chip */
MwBool vme : 1; /* Virtual-8086 Mode Enhancement */ MwBool vme : 1; /* Virtual-8086 Mode Enhancement */
MwBool de : 1; /* Debugging Extensions */ MwBool de : 1; /* Debugging Extensions */
MwBool pse : 1; /* Page Size Extensions */ MwBool pse : 1; /* Page Size Extensions */
MwBool tsc : 1; /* Time Stamp Counter */ MwBool tsc : 1; /* Time Stamp Counter */
MwBool msr : 1; /* RDMSR and WRMSR Support */ MwBool msr : 1; /* RDMSR and WRMSR Support */
MwBool pae : 1; /* Physical Address Extensions */ MwBool pae : 1; /* Physical Address Extensions */
MwBool mce : 1; /* Machine Check Exception */ MwBool mce : 1; /* Machine Check Exception */
MwBool cx8 : 1; /* CMPXCHG8B instr */ MwBool cx8 : 1; /* CMPXCHG8B instr */
MwBool apic : 1; /* APIC on Chip */ MwBool apic : 1; /* APIC on Chip */
MwBool pad1 : 1;
MwBool sep : 1; /* SYSENTER and SYSEXIT instrs */ MwBool sep : 1; /* SYSENTER and SYSEXIT instrs */
MwBool mtrr : 1; /* Memory Type Range Registers */ MwBool mtrr : 1; /* Memory Type Range Registers */
MwBool pge : 1; /* Page Global Bit */ MwBool pge : 1; /* Page Global Bit */
@ -29,18 +30,18 @@ struct _cpuFeatures {
MwBool pse36 : 1; /* 36-Bit Page Size Extension */ MwBool pse36 : 1; /* 36-Bit Page Size Extension */
MwBool psn : 1; /* Processor Serial Number */ MwBool psn : 1; /* Processor Serial Number */
MwBool clflush : 1; /* CLFLUSH instr */ MwBool clflush : 1; /* CLFLUSH instr */
MwBool pad1 : 1;
MwBool ds : 1; /* Debug Store */
MwBool acpi : 1; /* Thermal Monitor and Software Controlled Clock Facilities */
MwBool mmx : 1; /* Intel MMX Technology */
MwBool fxsr : 1; /* XSAVE and FXRSTOR Instrs */
MwBool sse : 1; /* SSE */
MwBool sse2 : 1; /* SSE2 */
MwBool ss : 1; /* Self Snoop */
MwBool hit : 1; /* Max APIC IDs */
MwBool tm : 1; /* Thermal Monitor */
MwBool pad2 : 1; MwBool pad2 : 1;
MwBool pbe : 1; /* Pending Break Enable */ MwBool ds : 1; /* Debug Store */
MwBool acpi : 1; /* Thermal Monitor and Software Controlled Clock Facilities */
MwBool mmx : 1; /* Intel MMX Technology */
MwBool fxsr : 1; /* XSAVE and FXRSTOR Instrs */
MwBool sse : 1; /* SSE */
MwBool sse2 : 1; /* SSE2 */
MwBool ss : 1; /* Self Snoop */
MwBool hit : 1; /* Max APIC IDs */
MwBool tm : 1; /* Thermal Monitor */
MwBool pad3 : 1;
MwBool pbe : 1; /* Pending Break Enable */
}; };
#endif #endif
#include "nbsd_math.h" #include "nbsd_math.h"
@ -64,6 +65,6 @@ typedef struct _MwLLMathVTable MwLLMathVTable;
MwLLMathVTable** default_multi_table(void); MwLLMathVTable** default_multi_table(void);
void mmx_apply(MwLLMathVTable**); void mmx_apply(MwLLMathVTable**);
double nbsd_pow(double a, double b); double nbsd_pow(double a, double b);
#endif #endif