diff --git a/src/python/gem5/components/processors/switchable_processor.py b/src/python/gem5/components/processors/switchable_processor.py index 46cda4e41e..0d6ef1c9c5 100644 --- a/src/python/gem5/components/processors/switchable_processor.py +++ b/src/python/gem5/components/processors/switchable_processor.py @@ -79,11 +79,6 @@ class SwitchableProcessor(AbstractProcessor): ) if self._prepare_kvm: - if not self._current_cores[0].is_kvm_core(): - raise Exception( - "When using KVM, the switchable processor must start " - "with the KVM cores." - ) from m5.objects import KvmVM self.kvm_vm = KvmVM() diff --git a/src/python/gem5/simulate/simulator.py b/src/python/gem5/simulate/simulator.py index 3239a33199..793615c7e0 100644 --- a/src/python/gem5/simulate/simulator.py +++ b/src/python/gem5/simulate/simulator.py @@ -283,12 +283,8 @@ class Simulator: # (for example, in `get_stats()`). self._root = root - if any( - core.is_kvm_core() - for core in self._board.get_processor().get_cores() - ): - m5.ticks.fixGlobalFrequency() - root.sim_quantum = m5.ticks.fromSeconds(0.001) + m5.ticks.fixGlobalFrequency() + root.sim_quantum = m5.ticks.fromSeconds(0.001) # m5.instantiate() takes a parameter specifying the path to the # checkpoint directory. If the parameter is None, no checkpoint