儲存庫 vbox 的更動 62408
- 時間撮記:
- 2016-7-21 下午08:23:33 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp
r62404 r62408 1148 1148 IEM_DECL_IMPL_DEF(int, iemAImpl_imul_u64,(uint64_t *pu64RAX, uint64_t *pu64RDX, uint64_t u64Factor, uint32_t *pfEFlags)) 1149 1149 { 1150 /** @todo Testcase: IMUL 1 operand */1151 1150 RTUINT128U Result; 1152 *pfEFlags &= ~(X86_EFL_SF | X86_EFL_CF | X86_EFL_OF); 1151 *pfEFlags &= ~( X86_EFL_SF | X86_EFL_CF | X86_EFL_OF 1152 /* Skylake always clears: */ | X86_EFL_AF | X86_EFL_ZF 1153 /* Skylake may set: */ | X86_EFL_PF); 1154 1153 1155 if ((int64_t)*pu64RAX >= 0) 1154 1156 { … … 1184 1186 } 1185 1187 *pu64RAX = Result.s.Lo; 1188 if (Result.s.Lo & RT_BIT_64(63)) 1189 *pfEFlags |= X86_EFL_SF; 1190 *pfEFlags |= g_afParity[Result.s.Lo & 0xff]; /* (Skylake behaviour) */ 1186 1191 *pu64RDX = Result.s.Hi; 1187 if (*pu64RAX & RT_BIT_64(63)) 1188 *pfEFlags |= X86_EFL_SF; 1189 1190 /** @todo research the undefined IMUL flags. */ 1192 1191 1193 return 0; 1192 1194 } … … 1238 1240 IEM_DECL_IMPL_DEF(int, iemAImpl_idiv_u64,(uint64_t *pu64RAX, uint64_t *pu64RDX, uint64_t u64Divisor, uint32_t *pfEFlags)) 1239 1241 { 1242 /* Note! Skylake leaves all flags alone. */ 1240 1243 if (u64Divisor != 0) 1241 1244 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器