Changeset 55899 in vbox for trunk/src/recompiler
- Timestamp:
- May 18, 2015 9:47:57 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100356
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r55493 r55899 832 832 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 833 833 { REMPARMDESC_FLAGS_INT, sizeof(void *), NULL }, 834 { REMPARMDESC_FLAGS_INT, sizeof(size_t), NULL } 834 { REMPARMDESC_FLAGS_INT, sizeof(size_t), NULL }, 835 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 835 836 }; 836 837 static const REMPARMDESC g_aArgsPGMPhysSimpleReadGCPtr[] = … … 846 847 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 847 848 { REMPARMDESC_FLAGS_INT, sizeof(const void *), NULL }, 848 { REMPARMDESC_FLAGS_INT, sizeof(size_t), NULL } 849 { REMPARMDESC_FLAGS_INT, sizeof(size_t), NULL }, 850 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 849 851 }; 850 852 static const REMPARMDESC g_aArgsPGMChangeMode[] = … … 864 866 { 865 867 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 866 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL } 868 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 869 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 867 870 }; 868 871 static const REMPARMDESC g_aArgsPGMR3PhysWriteU8[] = … … 870 873 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 871 874 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 872 { REMPARMDESC_FLAGS_INT, sizeof(uint8_t), NULL } 875 { REMPARMDESC_FLAGS_INT, sizeof(uint8_t), NULL }, 876 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 873 877 }; 874 878 static const REMPARMDESC g_aArgsPGMR3PhysWriteU16[] = … … 876 880 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 877 881 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 878 { REMPARMDESC_FLAGS_INT, sizeof(uint16_t), NULL } 882 { REMPARMDESC_FLAGS_INT, sizeof(uint16_t), NULL }, 883 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 879 884 }; 880 885 static const REMPARMDESC g_aArgsPGMR3PhysWriteU32[] = … … 882 887 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 883 888 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 884 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t), NULL } 889 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t), NULL }, 890 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 885 891 }; 886 892 static const REMPARMDESC g_aArgsPGMR3PhysWriteU64[] = … … 888 894 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 889 895 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 890 { REMPARMDESC_FLAGS_INT, sizeof(uint64_t), NULL } 896 { REMPARMDESC_FLAGS_INT, sizeof(uint64_t), NULL }, 897 { REMPARMDESC_FLAGS_INT, sizeof(PGMACCESSORIGIN), NULL } 891 898 }; 892 899 static const REMPARMDESC g_aArgsRTMemReallocTag[] = -
trunk/src/recompiler/VBoxRecompiler.c
r55493 r55899 3565 3565 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3566 3566 VBOX_CHECK_ADDR(SrcGCPhys); 3567 PGMPhysRead(cpu_single_env->pVM, SrcGCPhys, pvDst, cb );3567 PGMPhysRead(cpu_single_env->pVM, SrcGCPhys, pvDst, cb, PGMACCESSORIGIN_REM); 3568 3568 #ifdef VBOX_DEBUG_PHYS 3569 3569 LogRel(("read(%d): %08x\n", cb, (uint32_t)SrcGCPhys)); … … 3583 3583 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3584 3584 VBOX_CHECK_ADDR(SrcGCPhys); 3585 val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys );3585 val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3586 3586 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3587 3587 #ifdef VBOX_DEBUG_PHYS … … 3602 3602 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3603 3603 VBOX_CHECK_ADDR(SrcGCPhys); 3604 val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys );3604 val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3605 3605 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3606 3606 #ifdef VBOX_DEBUG_PHYS … … 3621 3621 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3622 3622 VBOX_CHECK_ADDR(SrcGCPhys); 3623 val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys );3623 val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3624 3624 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3625 3625 #ifdef VBOX_DEBUG_PHYS … … 3640 3640 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3641 3641 VBOX_CHECK_ADDR(SrcGCPhys); 3642 val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys );3642 val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3643 3643 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3644 3644 #ifdef VBOX_DEBUG_PHYS … … 3659 3659 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3660 3660 VBOX_CHECK_ADDR(SrcGCPhys); 3661 val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys );3661 val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3662 3662 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3663 3663 #ifdef VBOX_DEBUG_PHYS … … 3678 3678 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3679 3679 VBOX_CHECK_ADDR(SrcGCPhys); 3680 val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys );3680 val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3681 3681 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3682 3682 #ifdef VBOX_DEBUG_PHYS … … 3697 3697 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3698 3698 VBOX_CHECK_ADDR(SrcGCPhys); 3699 val = PGMR3PhysReadU64(cpu_single_env->pVM, SrcGCPhys );3699 val = PGMR3PhysReadU64(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3700 3700 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3701 3701 #ifdef VBOX_DEBUG_PHYS … … 3716 3716 STAM_PROFILE_ADV_START(&gStatMemRead, a); 3717 3717 VBOX_CHECK_ADDR(SrcGCPhys); 3718 val = PGMR3PhysReadU64(cpu_single_env->pVM, SrcGCPhys );3718 val = PGMR3PhysReadU64(cpu_single_env->pVM, SrcGCPhys, PGMACCESSORIGIN_REM); 3719 3719 STAM_PROFILE_ADV_STOP(&gStatMemRead, a); 3720 3720 #ifdef VBOX_DEBUG_PHYS … … 3736 3736 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3737 3737 VBOX_CHECK_ADDR(DstGCPhys); 3738 PGMPhysWrite(cpu_single_env->pVM, DstGCPhys, pvSrc, cb );3738 PGMPhysWrite(cpu_single_env->pVM, DstGCPhys, pvSrc, cb, PGMACCESSORIGIN_REM); 3739 3739 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3740 3740 #ifdef VBOX_DEBUG_PHYS … … 3754 3754 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3755 3755 VBOX_CHECK_ADDR(DstGCPhys); 3756 PGMR3PhysWriteU8(cpu_single_env->pVM, DstGCPhys, val );3756 PGMR3PhysWriteU8(cpu_single_env->pVM, DstGCPhys, val, PGMACCESSORIGIN_REM); 3757 3757 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3758 3758 #ifdef VBOX_DEBUG_PHYS … … 3772 3772 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3773 3773 VBOX_CHECK_ADDR(DstGCPhys); 3774 PGMR3PhysWriteU16(cpu_single_env->pVM, DstGCPhys, val );3774 PGMR3PhysWriteU16(cpu_single_env->pVM, DstGCPhys, val, PGMACCESSORIGIN_REM); 3775 3775 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3776 3776 #ifdef VBOX_DEBUG_PHYS … … 3790 3790 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3791 3791 VBOX_CHECK_ADDR(DstGCPhys); 3792 PGMR3PhysWriteU32(cpu_single_env->pVM, DstGCPhys, val );3792 PGMR3PhysWriteU32(cpu_single_env->pVM, DstGCPhys, val, PGMACCESSORIGIN_REM); 3793 3793 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3794 3794 #ifdef VBOX_DEBUG_PHYS … … 3808 3808 STAM_PROFILE_ADV_START(&gStatMemWrite, a); 3809 3809 VBOX_CHECK_ADDR(DstGCPhys); 3810 PGMR3PhysWriteU64(cpu_single_env->pVM, DstGCPhys, val );3810 PGMR3PhysWriteU64(cpu_single_env->pVM, DstGCPhys, val, PGMACCESSORIGIN_REM); 3811 3811 STAM_PROFILE_ADV_STOP(&gStatMemWrite, a); 3812 3812 #ifdef VBOX_DEBUG_PHYS … … 3891 3891 uint8_t u8; 3892 3892 Log2(("remR3HandlerReadU8: GCPhys=%RGp\n", (RTGCPHYS)GCPhys)); 3893 PGMPhysRead((PVM)pvVM, GCPhys, &u8, sizeof(u8) );3893 PGMPhysRead((PVM)pvVM, GCPhys, &u8, sizeof(u8), PGMACCESSORIGIN_REM); 3894 3894 return u8; 3895 3895 } … … 3899 3899 uint16_t u16; 3900 3900 Log2(("remR3HandlerReadU16: GCPhys=%RGp\n", (RTGCPHYS)GCPhys)); 3901 PGMPhysRead((PVM)pvVM, GCPhys, &u16, sizeof(u16) );3901 PGMPhysRead((PVM)pvVM, GCPhys, &u16, sizeof(u16), PGMACCESSORIGIN_REM); 3902 3902 return u16; 3903 3903 } … … 3907 3907 uint32_t u32; 3908 3908 Log2(("remR3HandlerReadU32: GCPhys=%RGp\n", (RTGCPHYS)GCPhys)); 3909 PGMPhysRead((PVM)pvVM, GCPhys, &u32, sizeof(u32) );3909 PGMPhysRead((PVM)pvVM, GCPhys, &u32, sizeof(u32), PGMACCESSORIGIN_REM); 3910 3910 return u32; 3911 3911 } … … 3914 3914 { 3915 3915 Log2(("remR3HandlerWriteU8: GCPhys=%RGp u32=%#x\n", (RTGCPHYS)GCPhys, u32)); 3916 PGMPhysWrite((PVM)pvVM, GCPhys, &u32, sizeof(uint8_t) );3916 PGMPhysWrite((PVM)pvVM, GCPhys, &u32, sizeof(uint8_t), PGMACCESSORIGIN_REM); 3917 3917 } 3918 3918 … … 3920 3920 { 3921 3921 Log2(("remR3HandlerWriteU16: GCPhys=%RGp u32=%#x\n", (RTGCPHYS)GCPhys, u32)); 3922 PGMPhysWrite((PVM)pvVM, GCPhys, &u32, sizeof(uint16_t) );3922 PGMPhysWrite((PVM)pvVM, GCPhys, &u32, sizeof(uint16_t), PGMACCESSORIGIN_REM); 3923 3923 } 3924 3924 … … 3926 3926 { 3927 3927 Log2(("remR3HandlerWriteU32: GCPhys=%RGp u32=%#x\n", (RTGCPHYS)GCPhys, u32)); 3928 PGMPhysWrite((PVM)pvVM, GCPhys, &u32, sizeof(uint32_t) );3928 PGMPhysWrite((PVM)pvVM, GCPhys, &u32, sizeof(uint32_t), PGMACCESSORIGIN_REM); 3929 3929 } 3930 3930
Note:
See TracChangeset
for help on using the changeset viewer.