VirtualBox

Ignore:
Timestamp:
May 6, 2008 1:27:07 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30553
Message:

Renamed the PGMR3PhysRead* and PGMR3PhysWrite* function and added U64 variants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r8217 r8626  
    19031903    pVM->rem.s.Env.kernelgsbase = pCtx->msrKERNELGSBASE;
    19041904#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.
    19061906     * So we basically assume the hidden registers are in sync with these MSRs (vt-x & amd-v). Correct??
    19071907     */
     
    29332933    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    29342934    VBOX_CHECK_ADDR(SrcGCPhys);
    2935     val = PGMR3PhysReadByte(cpu_single_env->pVM, SrcGCPhys);
     2935    val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys);
    29362936    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    29372937    return val;
     
    29492949    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    29502950    VBOX_CHECK_ADDR(SrcGCPhys);
    2951     val = PGMR3PhysReadByte(cpu_single_env->pVM, SrcGCPhys);
     2951    val = PGMR3PhysReadU8(cpu_single_env->pVM, SrcGCPhys);
    29522952    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    29532953    return val;
     
    29652965    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    29662966    VBOX_CHECK_ADDR(SrcGCPhys);
    2967     val = PGMR3PhysReadWord(cpu_single_env->pVM, SrcGCPhys);
     2967    val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys);
    29682968    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    29692969    return val;
     
    29812981    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    29822982    VBOX_CHECK_ADDR(SrcGCPhys);
    2983     val = PGMR3PhysReadWord(cpu_single_env->pVM, SrcGCPhys);
     2983    val = PGMR3PhysReadU16(cpu_single_env->pVM, SrcGCPhys);
    29842984    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    29852985    return val;
     
    29972997    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    29982998    VBOX_CHECK_ADDR(SrcGCPhys);
    2999     val = PGMR3PhysReadDword(cpu_single_env->pVM, SrcGCPhys);
     2999    val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys);
    30003000    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    30013001    return val;
     
    30133013    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    30143014    VBOX_CHECK_ADDR(SrcGCPhys);
    3015     val = PGMR3PhysReadDword(cpu_single_env->pVM, SrcGCPhys);
     3015    val = PGMR3PhysReadU32(cpu_single_env->pVM, SrcGCPhys);
    30163016    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    30173017    return val;
     
    30293029    STAM_PROFILE_ADV_START(&gStatMemRead, a);
    30303030    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);
    30333032    STAM_PROFILE_ADV_STOP(&gStatMemRead, a);
    30343033    return val;
     
    30623061    STAM_PROFILE_ADV_START(&gStatMemWrite, a);
    30633062    VBOX_CHECK_ADDR(DstGCPhys);
    3064     PGMR3PhysWriteByte(cpu_single_env->pVM, DstGCPhys, val);
     3063    PGMR3PhysWriteU8(cpu_single_env->pVM, DstGCPhys, val);
    30653064    STAM_PROFILE_ADV_STOP(&gStatMemWrite, a);
    30663065}
     
    30773076    STAM_PROFILE_ADV_START(&gStatMemWrite, a);
    30783077    VBOX_CHECK_ADDR(DstGCPhys);
    3079     PGMR3PhysWriteWord(cpu_single_env->pVM, DstGCPhys, val);
     3078    PGMR3PhysWriteU16(cpu_single_env->pVM, DstGCPhys, val);
    30803079    STAM_PROFILE_ADV_STOP(&gStatMemWrite, a);
    30813080}
     
    30923091    STAM_PROFILE_ADV_START(&gStatMemWrite, a);
    30933092    VBOX_CHECK_ADDR(DstGCPhys);
    3094     PGMR3PhysWriteDword(cpu_single_env->pVM, DstGCPhys, val);
     3093    PGMR3PhysWriteU32(cpu_single_env->pVM, DstGCPhys, val);
    30953094    STAM_PROFILE_ADV_STOP(&gStatMemWrite, a);
    30963095}
     
    31073106    STAM_PROFILE_ADV_START(&gStatMemWrite, a);
    31083107    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);
    31113109    STAM_PROFILE_ADV_STOP(&gStatMemWrite, a);
    31123110}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette