VirtualBox

Changeset 102801 in vbox for trunk/src


Ignore:
Timestamp:
Jan 9, 2024 10:53:03 PM (13 months ago)
Author:
vboxsync
Message:

VMM/IEM: Stats, go straight for the safe fallback functions in the memory access helpers. bugref:10371

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompiler.cpp

    r102800 r102801  
    116116#endif
    117117#ifdef IEMNATIVE_WITH_TLB_LOOKUP
    118 # define IEMNATIVE_WITH_TLB_LOOKUP_MAPPING
     118# define IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
    119119#endif
    120120#ifdef IEMNATIVE_WITH_TLB_LOOKUP
     
    22552255                                                               RTGCPTR GCPtrMem, uint8_t iSegReg))
    22562256{
    2257     return iemMemMapDataU8RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU8RwSafeJmp */
     2257#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2258    return iemMemMapDataU8RwSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2259#else
     2260    return iemMemMapDataU8RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2261#endif
    22582262}
    22592263
     
    22652269                                                               RTGCPTR GCPtrMem, uint8_t iSegReg))
    22662270{
    2267     return iemMemMapDataU8WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU8WoSafeJmp */
     2271#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2272    return iemMemMapDataU8WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2273#else
     2274    return iemMemMapDataU8WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2275#endif
    22682276}
    22692277
     
    22752283                                                                     RTGCPTR GCPtrMem, uint8_t iSegReg))
    22762284{
    2277     return iemMemMapDataU8RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU8RoSafeJmp */
     2285#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2286    return iemMemMapDataU8RoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2287#else
     2288    return iemMemMapDataU8RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2289#endif
    22782290}
    22792291
     
    22852297                                                                 RTGCPTR GCPtrMem, uint8_t iSegReg))
    22862298{
    2287     return iemMemMapDataU16RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU16RwSafeJmp */
     2299#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2300    return iemMemMapDataU16RwSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2301#else
     2302    return iemMemMapDataU16RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2303#endif
    22882304}
    22892305
     
    22952311                                                                 RTGCPTR GCPtrMem, uint8_t iSegReg))
    22962312{
    2297     return iemMemMapDataU16WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU16WoSafeJmp */
     2313#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2314    return iemMemMapDataU16WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2315#else
     2316    return iemMemMapDataU16WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2317#endif
    22982318}
    22992319
     
    23052325                                                                       RTGCPTR GCPtrMem, uint8_t iSegReg))
    23062326{
    2307     return iemMemMapDataU16RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU16RoSafeJmp */
     2327#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2328    return iemMemMapDataU16RoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2329#else
     2330    return iemMemMapDataU16RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2331#endif
    23082332}
    23092333
     
    23152339                                                                 RTGCPTR GCPtrMem, uint8_t iSegReg))
    23162340{
    2317     return iemMemMapDataU32RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU32RwSafeJmp */
     2341#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2342    return iemMemMapDataU32RwSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2343#else
     2344    return iemMemMapDataU32RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2345#endif
    23182346}
    23192347
     
    23252353                                                                 RTGCPTR GCPtrMem, uint8_t iSegReg))
    23262354{
    2327     return iemMemMapDataU32WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU32WoSafeJmp */
     2355#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2356    return iemMemMapDataU32WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2357#else
     2358    return iemMemMapDataU32WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2359#endif
    23282360}
    23292361
     
    23352367                                                                       RTGCPTR GCPtrMem, uint8_t iSegReg))
    23362368{
    2337     return iemMemMapDataU32RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU32RoSafeJmp */
     2369#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2370    return iemMemMapDataU32RoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2371#else
     2372    return iemMemMapDataU32RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2373#endif
    23382374}
    23392375
     
    23452381                                                                 RTGCPTR GCPtrMem, uint8_t iSegReg))
    23462382{
    2347     return iemMemMapDataU64RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU64RwSafeJmp */
     2383#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2384    return iemMemMapDataU64RwSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2385#else
     2386    return iemMemMapDataU64RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2387#endif
    23482388}
    23492389
     
    23552395                                                                 RTGCPTR GCPtrMem, uint8_t iSegReg))
    23562396{
    2357     return iemMemMapDataU64WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU64WoSafeJmp */
     2397#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2398    return iemMemMapDataU64WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2399#else
     2400    return iemMemMapDataU64WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2401#endif
    23582402}
    23592403
     
    23652409                                                                       RTGCPTR GCPtrMem, uint8_t iSegReg))
    23662410{
    2367     return iemMemMapDataU64RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU64RoSafeJmp */
     2411#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2412    return iemMemMapDataU64RoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2413#else
     2414    return iemMemMapDataU64RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2415#endif
    23682416}
    23692417
     
    23752423                                                                   RTGCPTR GCPtrMem, uint8_t iSegReg))
    23762424{
    2377     return iemMemMapDataR80WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataR80WoSafeJmp */
     2425#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2426    return iemMemMapDataR80WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2427#else
     2428    return iemMemMapDataR80WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2429#endif
    23782430}
    23792431
     
    23852437                                                                  RTGCPTR GCPtrMem, uint8_t iSegReg))
    23862438{
    2387     return iemMemMapDataD80WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataD80WoSafeJmp */
     2439#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2440    return iemMemMapDataD80WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2441#else
     2442    return iemMemMapDataD80WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2443#endif
    23882444}
    23892445
     
    23952451                                                                    RTGCPTR GCPtrMem, uint8_t iSegReg))
    23962452{
    2397     return iemMemMapDataU128RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU128RwSafeJmp */
     2453#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2454    return iemMemMapDataU128RwSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2455#else
     2456    return iemMemMapDataU128RwJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2457#endif
    23982458}
    23992459
     
    24052465                                                                    RTGCPTR GCPtrMem, uint8_t iSegReg))
    24062466{
    2407     return iemMemMapDataU128WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU128WoSafeJmp */
     2467#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2468    return iemMemMapDataU128WoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2469#else
     2470    return iemMemMapDataU128WoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2471#endif
    24082472}
    24092473
     
    24152479                                                                          RTGCPTR GCPtrMem, uint8_t iSegReg))
    24162480{
    2417     return iemMemMapDataU128RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem); /** @todo use iemMemMapDataU128RoSafeJmp */
     2481#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2482    return iemMemMapDataU128RoSafeJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2483#else
     2484    return iemMemMapDataU128RoJmp(pVCpu, pbUnmapInfo, iSegReg, GCPtrMem);
     2485#endif
    24182486}
    24192487
     
    24282496IEM_DECL_NATIVE_HLP_DEF(uint8_t *, iemNativeHlpMemFlatMapDataU8Rw,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24292497{
    2430     return iemMemFlatMapDataU8RwJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU8RwSafeJmp */
     2498#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2499    return iemMemMapDataU8RwSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2500#else
     2501    return iemMemFlatMapDataU8RwJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2502#endif
    24312503}
    24322504
     
    24372509IEM_DECL_NATIVE_HLP_DEF(uint8_t *, iemNativeHlpMemFlatMapDataU8Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24382510{
    2439     return iemMemFlatMapDataU8WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU8WoSafeJmp */
     2511#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2512    return iemMemMapDataU8WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2513#else
     2514    return iemMemFlatMapDataU8WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2515#endif
    24402516}
    24412517
     
    24462522IEM_DECL_NATIVE_HLP_DEF(uint8_t const *, iemNativeHlpMemFlatMapDataU8Ro,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24472523{
    2448     return iemMemFlatMapDataU8RoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU8RoSafeJmp */
     2524#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2525    return iemMemMapDataU8RoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2526#else
     2527    return iemMemFlatMapDataU8RoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2528#endif
    24492529}
    24502530
     
    24552535IEM_DECL_NATIVE_HLP_DEF(uint16_t *, iemNativeHlpMemFlatMapDataU16Rw,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24562536{
    2457     return iemMemFlatMapDataU16RwJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU16RwSafeJmp */
     2537#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2538    return iemMemMapDataU16RwSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2539#else
     2540    return iemMemFlatMapDataU16RwJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2541#endif
    24582542}
    24592543
     
    24642548IEM_DECL_NATIVE_HLP_DEF(uint16_t *, iemNativeHlpMemFlatMapDataU16Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24652549{
    2466     return iemMemFlatMapDataU16WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU16WoSafeJmp */
     2550#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2551    return iemMemMapDataU16WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2552#else
     2553    return iemMemFlatMapDataU16WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2554#endif
    24672555}
    24682556
     
    24732561IEM_DECL_NATIVE_HLP_DEF(uint16_t const *, iemNativeHlpMemFlatMapDataU16Ro,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24742562{
    2475     return iemMemFlatMapDataU16RoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU16RoSafeJmp */
     2563#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2564    return iemMemMapDataU16RoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2565#else
     2566    return iemMemFlatMapDataU16RoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2567#endif
    24762568}
    24772569
     
    24822574IEM_DECL_NATIVE_HLP_DEF(uint32_t *, iemNativeHlpMemFlatMapDataU32Rw,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24832575{
    2484     return iemMemFlatMapDataU32RwJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU32RwSafeJmp */
     2576#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2577    return iemMemMapDataU32RwSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2578#else
     2579    return iemMemFlatMapDataU32RwJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2580#endif
    24852581}
    24862582
     
    24912587IEM_DECL_NATIVE_HLP_DEF(uint32_t *, iemNativeHlpMemFlatMapDataU32Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    24922588{
    2493     return iemMemFlatMapDataU32WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU32WoSafeJmp */
     2589#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2590    return iemMemMapDataU32WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2591#else
     2592    return iemMemFlatMapDataU32WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2593#endif
    24942594}
    24952595
     
    25002600IEM_DECL_NATIVE_HLP_DEF(uint32_t const *, iemNativeHlpMemFlatMapDataU32Ro,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25012601{
    2502     return iemMemFlatMapDataU32RoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU32RoSafeJmp */
     2602#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2603    return iemMemMapDataU32RoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2604#else
     2605    return iemMemFlatMapDataU32RoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2606#endif
    25032607}
    25042608
     
    25092613IEM_DECL_NATIVE_HLP_DEF(uint64_t *, iemNativeHlpMemFlatMapDataU64Rw,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25102614{
    2511     return iemMemFlatMapDataU64RwJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU64RwSafeJmp */
     2615#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2616    return iemMemMapDataU64RwSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2617#else
     2618    return iemMemFlatMapDataU64RwJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2619#endif
    25122620}
    25132621
     
    25182626IEM_DECL_NATIVE_HLP_DEF(uint64_t *, iemNativeHlpMemFlatMapDataU64Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25192627{
    2520     return iemMemFlatMapDataU64WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU64WoSafeJmp */
     2628#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2629    return iemMemMapDataU64WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2630#else
     2631    return iemMemFlatMapDataU64WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2632#endif
    25212633}
    25222634
     
    25272639IEM_DECL_NATIVE_HLP_DEF(uint64_t const *, iemNativeHlpMemFlatMapDataU64Ro,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25282640{
    2529     return iemMemFlatMapDataU64RoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU64RoSafeJmp */
     2641#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2642    return iemMemMapDataU64RoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2643#else
     2644    return iemMemFlatMapDataU64RoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2645#endif
    25302646}
    25312647
     
    25362652IEM_DECL_NATIVE_HLP_DEF(RTFLOAT80U *, iemNativeHlpMemFlatMapDataR80Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25372653{
    2538     return iemMemFlatMapDataR80WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataR80WoSafeJmp */
     2654#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2655    return iemMemMapDataR80WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2656#else
     2657    return iemMemFlatMapDataR80WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2658#endif
    25392659}
    25402660
     
    25452665IEM_DECL_NATIVE_HLP_DEF(RTPBCD80U *, iemNativeHlpMemFlatMapDataD80Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25462666{
    2547     return iemMemFlatMapDataD80WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataD80WoSafeJmp */
     2667#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2668    return iemMemMapDataD80WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2669#else
     2670    return iemMemFlatMapDataD80WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2671#endif
    25482672}
    25492673
     
    25542678IEM_DECL_NATIVE_HLP_DEF(RTUINT128U *, iemNativeHlpMemFlatMapDataU128Rw,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25552679{
    2556     return iemMemFlatMapDataU128RwJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU128RwSafeJmp */
     2680#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2681    return iemMemMapDataU128RwSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2682#else
     2683    return iemMemFlatMapDataU128RwJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2684#endif
    25572685}
    25582686
     
    25632691IEM_DECL_NATIVE_HLP_DEF(RTUINT128U *, iemNativeHlpMemFlatMapDataU128Wo,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25642692{
    2565     return iemMemFlatMapDataU128WoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU128WoSafeJmp */
     2693#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2694    return iemMemMapDataU128WoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2695#else
     2696    return iemMemFlatMapDataU128WoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2697#endif
    25662698}
    25672699
     
    25722704IEM_DECL_NATIVE_HLP_DEF(RTUINT128U const *, iemNativeHlpMemFlatMapDataU128Ro,(PVMCPUCC pVCpu, uint8_t *pbUnmapInfo, RTGCPTR GCPtrMem))
    25732705{
    2574     return iemMemFlatMapDataU128RoJmp(pVCpu, pbUnmapInfo, GCPtrMem); /** @todo use iemMemFlatMapDataU128RoSafeJmp */
     2706#ifdef IEMNATIVE_WITH_TLB_LOOKUP_MAPPED
     2707    return iemMemMapDataU128RoSafeJmp(pVCpu, pbUnmapInfo, UINT8_MAX, GCPtrMem);
     2708#else
     2709    return iemMemFlatMapDataU128RoJmp(pVCpu, pbUnmapInfo, GCPtrMem);
     2710#endif
    25752711}
    25762712
  • trunk/src/VBox/VMM/VMMR3/IEMR3.cpp

    r102800 r102801  
    296296                        "Code TLB hits",                            "/IEM/CPU%u/CodeTlb-Hits", idCpu);
    297297        STAMR3RegisterF(pVM, &pVCpu->iem.s.DataTlb.cTlbHits,            STAMTYPE_U64_RESET, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
    298                         "Data TLB hits",                            "/IEM/CPU%u/DataTlb-Hits", idCpu);
     298                        "Data TLB hits",                            "/IEM/CPU%u/DataTlb-Hits-Other", idCpu);
    299299#  ifdef VBOX_WITH_IEM_RECOMPILER
    300300        STAMR3RegisterF(pVM, (void *)&pVCpu->iem.s.StatNativeTlbHitsForStack, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_NONE,
Note: See TracChangeset for help on using the changeset viewer.

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