@@ -46,11 +46,11 @@ use serde::{Deserialize, Serialize};
4646use serde_json:: to_writer;
4747use simics:: {
4848 break_simulation, class, debug, error, free_attribute, get_class, get_interface,
49- get_processor_number, lookup_file, object_clock, run_command, run_python, simics_init, trace ,
50- version_base, AsConfObject , BreakpointId , ClassCreate , ClassObjectsFinalize , ConfObject ,
51- CoreBreakpointMemopHap , CoreExceptionHap , CoreMagicInstructionHap , CoreSimulationStoppedHap ,
52- CpuInstrumentationSubscribeInterface , Event , EventClassFlag , FromConfObject , HapHandle ,
53- Interface , IntoAttrValueDict ,
49+ get_processor_number, info , lookup_file, object_clock, run_command, run_python, simics_init,
50+ trace , version_base, warn , AsConfObject , BreakpointId , ClassCreate , ClassObjectsFinalize ,
51+ ConfObject , CoreBreakpointMemopHap , CoreExceptionHap , CoreMagicInstructionHap ,
52+ CoreSimulationStoppedHap , CpuInstrumentationSubscribeInterface , Event , EventClassFlag ,
53+ FromConfObject , HapHandle , Interface , IntoAttrValueDict ,
5454} ;
5555#[ cfg( simics_version_6) ]
5656use simics:: {
@@ -725,6 +725,12 @@ impl Tsffs {
725725 return Ok ( ( ) ) ;
726726 }
727727
728+ // Disable VMP if it is enabled
729+ info ! ( "Disabling VMP" ) ;
730+
731+ if let Err ( e) = run_command ( "disable-vmp" ) {
732+ warn ! ( self . as_conf_object( ) , "Failed to disable VMP: {}" , e) ;
733+ }
728734 self . log ( LogMessage :: startup ( ) ) ?;
729735
730736 #[ cfg( simics_version_7) ]
0 commit comments