Method
create_vm
(
&mut self,
config: &mut icicle_fuzzing::FuzzConfig,
)
Source from the content-addressed store, hash-verified
| 482 | |
| 483 | impl<T> icicle_fuzzing::FuzzTarget for CortexmTarget<T> { |
| 484 | fn create_vm( |
| 485 | &mut self, |
| 486 | config: &mut icicle_fuzzing::FuzzConfig, |
| 487 | ) -> anyhow::Result<icicle_vm::Vm> { |
| 488 | let mut cpu_config = config.cpu_config(); |
| 489 | cpu_config.triple = "arm-none".parse().unwrap(); |
| 490 | |
| 491 | let mut vm = icicle_vm::build(&cpu_config)?; |
| 492 | vm.set_env(FuzzwareEnvironment::new()); |
| 493 | |
| 494 | Ok(vm) |
| 495 | } |
| 496 | |
| 497 | fn initialize_vm( |
| 498 | &mut self, |
Tested by
no test coverage detected