correctly handle SSE presence in GUI debugger
This commit is contained in:
parent
d0344a1b84
commit
9d2e601173
@ -1127,9 +1127,6 @@ void LoadRegList()
|
||||
if (SeeReg[6] != FALSE)
|
||||
itemnum = FillDebugRegs(itemnum);
|
||||
|
||||
// if (SeeReg[7] != FALSE) // Test registers are not supported yet in bochs
|
||||
// FillTRXRegs(itemnum);
|
||||
|
||||
RedrawColumns(REG_WND); // resize Hex Value column sometimes
|
||||
EndListUpdate(REG_WND);
|
||||
}
|
||||
@ -1261,7 +1258,7 @@ void InitRegObjects()
|
||||
#if BX_CPU_LEVEL >= 4
|
||||
RegObject[cpu][CR4_Rnum] = SIM->get_param_num("CR4", cpu_list);
|
||||
#endif
|
||||
#if BX_SUPPORT_X86_64
|
||||
#if BX_CPU_LEVEL >= 6
|
||||
RegObject[cpu][EFER_Rnum] = SIM->get_param_num("MSR.EFER", cpu_list);
|
||||
#endif
|
||||
#if BX_SUPPORT_FPU
|
||||
@ -1284,7 +1281,9 @@ void InitRegObjects()
|
||||
#endif
|
||||
|
||||
#if BX_CPU_LEVEL >= 6
|
||||
if (! CpuSupportSSE) {
|
||||
CpuSupportSSE = SIM->get_param("SSE", cpu_list) != NULL;
|
||||
|
||||
if (CpuSupportSSE) {
|
||||
RegObject[cpu][XMM0_Rnum] = SIM->get_param_num("SSE.xmm00_0", cpu_list);
|
||||
RegObject[cpu][XMM1_Rnum] = SIM->get_param_num("SSE.xmm01_0", cpu_list);
|
||||
RegObject[cpu][XMM2_Rnum] = SIM->get_param_num("SSE.xmm02_0", cpu_list);
|
||||
@ -2096,11 +2095,6 @@ void DoAllInit()
|
||||
else
|
||||
TotCPUs = 1;
|
||||
|
||||
// for GUI debugger
|
||||
#if BX_CPU_LEVEL >= 6
|
||||
CpuSupportSSE = SIM->get_param_enum(BXPN_CPUID_SSE)->get();
|
||||
#endif
|
||||
|
||||
// divide up the pre-allocated char buffer into smaller pieces
|
||||
p = bigbuf + outbufSIZE; // point at the end of preallocated mem
|
||||
p -= 200; // 200 bytes is enough for all the register names
|
||||
@ -2129,7 +2123,6 @@ void DoAllInit()
|
||||
while (i > 0)
|
||||
{
|
||||
// change color when the loop goes below the base register number
|
||||
// if (i == TRXR) --j; // 5 TRX registers -- currently don't exist
|
||||
if (i == DR0_Rnum) --j; // 6 Debug
|
||||
else if (i == XMM0_Rnum) --j; // 8 or 16 XMM
|
||||
else if (i == ST0_Rnum) --j; // 8 MMX/FPU
|
||||
|
Loading…
Reference in New Issue
Block a user