vbox的更動 10277 路徑 trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
- 時間撮記:
- 2008-7-5 下午02:02:00 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r9837 r10277 179 179 */ 180 180 unsigned cb = DISGetParamSize(pCpu, &pCpu->param2); 181 AssertMsg(cb > 0 && cb <= sizeof(uint 32_t), ("cb=%d\n", cb));182 183 uint 32_t u32Data = 0;184 int rc = iomMMIODoRead(pVM, pRange, GCPhysFault, &u 32Data, cb);181 AssertMsg(cb > 0 && cb <= sizeof(uint64_t), ("cb=%d\n", cb)); 182 183 uint64_t u64Data = 0; 184 int rc = iomMMIODoRead(pVM, pRange, GCPhysFault, &u64Data, cb); 185 185 if (rc == VINF_SUCCESS) 186 186 { … … 194 194 { 195 195 /* DWORD <- BYTE */ 196 int 32_t iData = (int8_t)u32Data;197 u 32Data = (uint32_t)iData;196 int64_t iData = (int8_t)u64Data; 197 u64Data = (uint64_t)iData; 198 198 } 199 199 else 200 200 { 201 201 /* DWORD <- WORD */ 202 int 32_t iData = (int16_t)u32Data;203 u 32Data = (uint32_t)iData;202 int64_t iData = (int16_t)u64Data; 203 u64Data = (uint64_t)iData; 204 204 } 205 205 } … … 208 208 * Store the result to register (parameter 1). 209 209 */ 210 bool fRc = iomSaveDataToReg(pCpu, &pCpu->param1, pRegFrame, u 32Data);210 bool fRc = iomSaveDataToReg(pCpu, &pCpu->param1, pRegFrame, u64Data); 211 211 AssertMsg(fRc, ("Failed to store register value!\n")); NOREF(fRc); 212 212 } … … 319 319 */ 320 320 unsigned cb = DISGetParamSize(pCpu, &pCpu->param1); 321 Assert (cb);321 AssertMsg(cb > 0 && cb <= sizeof(uint32_t), ("cb=%d\n", cb)); 322 322 int offIncrement = pRegFrame->eflags.Bits.u1DF ? -(signed)cb : (signed)cb; 323 323 … … 557 557 */ 558 558 unsigned cb = DISGetParamSize(pCpu, &pCpu->param1); 559 Assert (cb);559 AssertMsg(cb > 0 && cb <= sizeof(uint32_t), ("cb=%d\n", cb)); 560 560 int offIncrement = pRegFrame->eflags.Bits.u1DF ? -(signed)cb : (signed)cb; 561 561 … … 663 663 */ 664 664 unsigned cb = DISGetParamSize(pCpu, &pCpu->param2); 665 Assert (cb);665 AssertMsg(cb > 0 && cb <= sizeof(uint32_t), ("cb=%d\n", cb)); 666 666 int offIncrement = pRegFrame->eflags.Bits.u1DF ? -(signed)cb : (signed)cb; 667 667
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器