Changeset 8626 in vbox for trunk/src/recompiler/VBoxRecompiler.c
- Timestamp:
- May 6, 2008 1:27:07 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30553
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxRecompiler.c
r8217 r8626 1903 1903 pVM->rem.s.Env.kernelgsbase = pCtx->msrKERNELGSBASE; 1904 1904 #endif 1905 /* Note that FS_BASE & GS_BASE are already synced; QEmu keeps them in the hidden selector registers. 1905 /* Note that FS_BASE & GS_BASE are already synced; QEmu keeps them in the hidden selector registers. 1906 1906 * So we basically assume the hidden registers are in sync with these MSRs (vt-x & amd-v). Correct?? 1907 1907 */ … … 2933 2933 STAM_PROFILE_ADV_START(&gStatMemRead, a); 2934 2934 VBOX_CHECK_ADDR(SrcGCPhys); 2935 val = PGMR3PhysRead Byte(cpu_single_env->pVM, SrcGCPhys);2935 val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys); 2936 2936 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 2937 2937 return val; … … 2949 2949 STAM_PROFILE_ADV_START(&gStatMemRead, a); 2950 2950 VBOX_CHECK_ADDR(SrcGCPhys); 2951 val = PGMR3PhysRead Byte(cpu_single_env->pVM, SrcGCPhys);2951 val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys); 2952 2952 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 2953 2953 return val; … … 2965 2965 STAM_PROFILE_ADV_START(&gStatMemRead, a); 2966 2966 VBOX_CHECK_ADDR(SrcGCPhys); 2967 val = PGMR3PhysRead Word(cpu_single_env->pVM, SrcGCPhys);2967 val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys); 2968 2968 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 2969 2969 return val; … … 2981 2981 STAM_PROFILE_ADV_START(&gStatMemRead, a); 2982 2982 VBOX_CHECK_ADDR(SrcGCPhys); 2983 val = PGMR3PhysRead Word(cpu_single_env->pVM, SrcGCPhys);2983 val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys); 2984 2984 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 2985 2985 return val; … … 2997 2997 STAM_PROFILE_ADV_START(&gStatMemRead, a); 2998 2998 VBOX_CHECK_ADDR(SrcGCPhys); 2999 val = PGMR3PhysRead Dword(cpu_single_env->pVM, SrcGCPhys);2999 val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys); 3000 3000 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3001 3001 return val; … … 3013 3013 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3014 3014 VBOX_CHECK_ADDR(SrcGCPhys); 3015 val = PGMR3PhysRead Dword(cpu_single_env->pVM, SrcGCPhys);3015 val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys); 3016 3016 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3017 3017 return val; … … 3029 3029 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3030 3030 VBOX_CHECK_ADDR(SrcGCPhys); 3031 val = PGMR3PhysReadDword(cpu_single_env->pVM, SrcGCPhys) 3032 | ((uint64_t)PGMR3PhysReadDword(cpu_single_env->pVM, SrcGCPhys + 4) << 32); /** @todo fix me! */ 3031 val = PGMR3PhysReadU64(cpu_single_env->pVM, SrcGCPhys); 3033 3032 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3034 3033 return val; … … 3062 3061 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3063 3062 VBOX_CHECK_ADDR(DstGCPhys); 3064 PGMR3PhysWrite Byte(cpu_single_env->pVM, DstGCPhys, val);3063 PGMR3PhysWriteU8(cpu_single_env->pVM, DstGCPhys, val); 3065 3064 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3066 3065 } … … 3077 3076 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3078 3077 VBOX_CHECK_ADDR(DstGCPhys); 3079 PGMR3PhysWrite Word(cpu_single_env->pVM, DstGCPhys, val);3078 PGMR3PhysWriteU16(cpu_single_env->pVM, DstGCPhys, val); 3080 3079 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3081 3080 } … … 3092 3091 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3093 3092 VBOX_CHECK_ADDR(DstGCPhys); 3094 PGMR3PhysWrite Dword(cpu_single_env->pVM, DstGCPhys, val);3093 PGMR3PhysWriteU32(cpu_single_env->pVM, DstGCPhys, val); 3095 3094 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3096 3095 } … … 3107 3106 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3108 3107 VBOX_CHECK_ADDR(DstGCPhys); 3109 PGMR3PhysWriteDword(cpu_single_env->pVM, DstGCPhys, (uint32_t)val); /** @todo add U64 interface. */ 3110 PGMR3PhysWriteDword(cpu_single_env->pVM, DstGCPhys + 4, val >> 32); 3108 PGMR3PhysWriteU64(cpu_single_env->pVM, DstGCPhys, val); 3111 3109 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3112 3110 }
Note:
See TracChangeset
for help on using the changeset viewer.