vbox的更動 12989 路徑 trunk/src/VBox/VMM/VMMAll/EMAll.cpp
- 時間撮記:
- 2008-10-6 上午02:15:39 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r12801 r12989 79 79 * @returns Current status. 80 80 */ 81 EMDECL(EMSTATE) EMGetState(PVM pVM)81 VMMDECL(EMSTATE) EMGetState(PVM pVM) 82 82 { 83 83 return pVM->em.s.enmState; … … 92 92 * @todo This doesn't belong here, it should go in REMAll.cpp! 93 93 */ 94 EMDECL(void) EMFlushREMTBs(PVM pVM)94 VMMDECL(void) EMFlushREMTBs(PVM pVM) 95 95 { 96 96 Log(("EMFlushREMTBs\n")); … … 161 161 * @param pcbInstr Where to return the instruction size. (optional) 162 162 */ 163 EMDECL(int) EMInterpretDisasOne(PVM pVM, PCCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, unsigned *pcbInstr)163 VMMDECL(int) EMInterpretDisasOne(PVM pVM, PCCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, unsigned *pcbInstr) 164 164 { 165 165 RTGCPTR GCPtrInstr; … … 186 186 * @param pcbInstr Where to return the instruction size. (optional) 187 187 */ 188 EMDECL(int) EMInterpretDisasOneEx(PVM pVM, RTGCUINTPTR GCPtrInstr, PCCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, unsigned *pcbInstr)188 VMMDECL(int) EMInterpretDisasOneEx(PVM pVM, RTGCUINTPTR GCPtrInstr, PCCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, unsigned *pcbInstr) 189 189 { 190 190 int rc = DISCoreOneEx(GCPtrInstr, SELMGetCpuModeFromSelector(pVM, pCtxCore->eflags, pCtxCore->cs, (PCPUMSELREGHID)&pCtxCore->csHid), … … 220 220 * to worry about e.g. invalid modrm combinations (!) 221 221 */ 222 EMDECL(int) EMInterpretInstruction(PVM pVM, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)222 VMMDECL(int) EMInterpretInstruction(PVM pVM, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize) 223 223 { 224 224 RTGCPTR pbCode; … … 272 272 * Make sure this can't happen!! (will add some assertions/checks later) 273 273 */ 274 EMDECL(int) EMInterpretInstructionCPU(PVM pVM, PDISCPUSTATE pCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)274 VMMDECL(int) EMInterpretInstructionCPU(PVM pVM, PDISCPUSTATE pCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize) 275 275 { 276 276 STAM_PROFILE_START(&pVM->em.s.CTX_SUFF(pStats)->CTX_MID_Z(Stat,Emulate), a); … … 295 295 * @remark This may raise exceptions. 296 296 */ 297 EMDECL(int) EMInterpretPortIO(PVM pVM, PCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, uint32_t cbOp)297 VMMDECL(int) EMInterpretPortIO(PVM pVM, PCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, uint32_t cbOp) 298 298 { 299 299 /* … … 1703 1703 * 1704 1704 */ 1705 EMDECL(int) EMInterpretIret(PVM pVM, PCPUMCTXCORE pRegFrame)1705 VMMDECL(int) EMInterpretIret(PVM pVM, PCPUMCTXCORE pRegFrame) 1706 1706 { 1707 1707 RTGCUINTPTR pIretStack = (RTGCUINTPTR)pRegFrame->esp; … … 1768 1768 * 1769 1769 */ 1770 EMDECL(int) EMInterpretInvlpg(PVM pVM, PCPUMCTXCORE pRegFrame, RTGCPTR pAddrGC)1770 VMMDECL(int) EMInterpretInvlpg(PVM pVM, PCPUMCTXCORE pRegFrame, RTGCPTR pAddrGC) 1771 1771 { 1772 1772 int rc; … … 1841 1841 * 1842 1842 */ 1843 EMDECL(int) EMInterpretCpuId(PVM pVM, PCPUMCTXCORE pRegFrame)1843 VMMDECL(int) EMInterpretCpuId(PVM pVM, PCPUMCTXCORE pRegFrame) 1844 1844 { 1845 1845 uint32_t iLeaf = pRegFrame->eax; NOREF(iLeaf); … … 1872 1872 * 1873 1873 */ 1874 EMDECL(int) EMInterpretCRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegCrx)1874 VMMDECL(int) EMInterpretCRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegCrx) 1875 1875 { 1876 1876 int rc; … … 1911 1911 * 1912 1912 */ 1913 EMDECL(int) EMInterpretLMSW(PVM pVM, uint16_t u16Data)1913 VMMDECL(int) EMInterpretLMSW(PVM pVM, uint16_t u16Data) 1914 1914 { 1915 1915 uint64_t OldCr0 = CPUMGetGuestCR0(pVM); … … 1935 1935 * 1936 1936 */ 1937 EMDECL(int) EMInterpretCLTS(PVM pVM)1937 VMMDECL(int) EMInterpretCLTS(PVM pVM) 1938 1938 { 1939 1939 uint64_t cr0 = CPUMGetGuestCR0(pVM); … … 1962 1962 * 1963 1963 */ 1964 EMDECL(int) EMInterpretCRxWrite(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegCrx, uint32_t SrcRegGen)1964 VMMDECL(int) EMInterpretCRxWrite(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegCrx, uint32_t SrcRegGen) 1965 1965 { 1966 1966 uint64_t val; … … 2123 2123 * 2124 2124 */ 2125 EMDECL(int) EMInterpretDRxWrite(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegDrx, uint32_t SrcRegGen)2125 VMMDECL(int) EMInterpretDRxWrite(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegDrx, uint32_t SrcRegGen) 2126 2126 { 2127 2127 uint64_t val; … … 2161 2161 * 2162 2162 */ 2163 EMDECL(int) EMInterpretDRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegDrx)2163 VMMDECL(int) EMInterpretDRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegDrx) 2164 2164 { 2165 2165 uint64_t val64; … … 2334 2334 * 2335 2335 */ 2336 EMDECL(int) EMInterpretRdtsc(PVM pVM, PCPUMCTXCORE pRegFrame)2336 VMMDECL(int) EMInterpretRdtsc(PVM pVM, PCPUMCTXCORE pRegFrame) 2337 2337 { 2338 2338 unsigned uCR4 = CPUMGetGuestCR4(pVM); … … 2484 2484 * 2485 2485 */ 2486 EMDECL(int) EMInterpretRdmsr(PVM pVM, PCPUMCTXCORE pRegFrame)2486 VMMDECL(int) EMInterpretRdmsr(PVM pVM, PCPUMCTXCORE pRegFrame) 2487 2487 { 2488 2488 uint32_t u32Dummy, u32Features, cpl; … … 2605 2605 * @param pRegFrame The register frame. 2606 2606 */ 2607 EMDECL(int) EMInterpretWrmsr(PVM pVM, PCPUMCTXCORE pRegFrame)2607 VMMDECL(int) EMInterpretWrmsr(PVM pVM, PCPUMCTXCORE pRegFrame) 2608 2608 { 2609 2609 uint32_t u32Dummy, u32Features, cpl; … … 2900 2900 * @param PC The PC. 2901 2901 */ 2902 EMDECL(void) EMSetInhibitInterruptsPC(PVM pVM, RTGCUINTPTR PC)2902 VMMDECL(void) EMSetInhibitInterruptsPC(PVM pVM, RTGCUINTPTR PC) 2903 2903 { 2904 2904 pVM->em.s.GCPtrInhibitInterrupts = PC; … … 2920 2920 * 2921 2921 */ 2922 EMDECL(RTGCUINTPTR) EMGetInhibitInterruptsPC(PVM pVM)2922 VMMDECL(RTGCUINTPTR) EMGetInhibitInterruptsPC(PVM pVM) 2923 2923 { 2924 2924 return pVM->em.s.GCPtrInhibitInterrupts;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器