VirtualBox

Changeset 104065 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 26, 2024 3:48:19 PM (10 months ago)
Author:
vboxsync
Message:

VMMDev: Added a VMMDEV_TESTING_CFG_THRESHOLD_NATIVE_RECOMPILER / TestingThresholdNativeRecompiler configuration option. bugref:9898

Location:
trunk/src/VBox/Devices/VMMDev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r100852 r104065  
    48704870                                  "TestingCfgDword8|"
    48714871                                  "TestingCfgDword9|"
     4872                                  "TestingThresholdNativeRecompiler|"
    48724873                                  "HGCMHeapBudgetDefault|"
    48734874                                  "HGCMHeapBudgetLegacy|"
     
    49694970        if (RT_FAILURE(rc))
    49704971            return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    4971                                        N_("Configuration error: Failed querying \"%s\" as a string"), szName);
    4972     }
     4972                                       N_("Configuration error: Failed querying \"%s\" as an 32-bit unsigned int"), szName);
     4973    }
     4974
     4975    rc = pHlp->pfnCFGMQueryU16Def(pCfg, "TestingThresholdNativeRecompiler", &pThis->cTestingThresholdNativeRecompiler, 0);
     4976    if (RT_FAILURE(rc))
     4977        return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
     4978                                   N_("Configuration error: Failed querying \"TestingThresholdNativeRecompiler\" as an 16-bit unsigned int"));
    49734979
    49744980
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r100185 r104065  
    349349        /** A 8-bit VMMDEV_TESTING_QUERY_CFG response. */
    350350        uint8_t         b;
     351        /** A 16-bit VMMDEV_TESTING_QUERY_CFG response. */
     352        uint16_t        u16;
    351353        /** A 32-bit VMMDEV_TESTING_QUERY_CFG response. */
    352354        uint32_t        u32;
     
    398400    /** User defined configuration dwords. */
    399401    uint32_t            au32TestingCfgDwords[10];
     402    /** VMMDEV_TESTING_CFG_THRESHOLD_NATIVE_RECOMPILER value.   */
     403    uint16_t            cTestingThresholdNativeRecompiler;
     404    uint16_t            au16Padding[3];
    400405#endif /* !VBOX_WITHOUT_TESTING_FEATURES || DOXYGEN_RUNNING */
    401406    /** @} */
  • trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp

    r103262 r104065  
    652652                            break;
    653653                        }
     654
     655                        case VMMDEV_TESTING_CFG_THRESHOLD_NATIVE_RECOMPILER:
     656                        {
     657                            pThis->cbReadableTestingData = sizeof(pThis->TestingData.u16);
     658                            pThis->TestingData.u16       = pThis->cTestingThresholdNativeRecompiler;
     659                            break;
     660                        }
    654661                    }
    655662                    break;
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