VirtualBox

Ignore:
Timestamp:
Jan 26, 2024 4:17:43 PM (13 months ago)
Author:
vboxsync
Message:

Main,FE/VBoxManage,FE/VirtualBox,ValidationKit: Allow setting the primary VM execution engine to make it easier to force particular engine for testing, bugref:10583

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp

    r102092 r103085  
    435435            {
    436436                case VM_EXEC_ENGINE_NOT_SET:    *apenmEngine = VMExecutionEngine_NotSet; break;
    437                 case VM_EXEC_ENGINE_IEM:        *apenmEngine = VMExecutionEngine_Emulated; break;
    438437                case VM_EXEC_ENGINE_HW_VIRT:    *apenmEngine = VMExecutionEngine_HwVirt; break;
    439438                case VM_EXEC_ENGINE_NATIVE_API: *apenmEngine = VMExecutionEngine_NativeApi; break;
     439                case VM_EXEC_ENGINE_IEM:
     440                {
     441                    bool fForced = false;
     442                    vrc = ptrVM.vtable()->pfnEMR3QueryExecutionPolicy(ptrVM.rawUVM(), EMEXECPOLICY_IEM_RECOMPILED, &fForced);
     443                    if (RT_SUCCESS(vrc) && fForced)
     444                        *apenmEngine = VMExecutionEngine_Recompiler;
     445                    else
     446                        *apenmEngine = VMExecutionEngine_Interpreter;
     447                    break;
     448                }
    440449                default: AssertMsgFailed(("bEngine=%d\n", bEngine));
    441450            }
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