m1n1.hv: Keep track of started CPUs

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-11-04 03:58:01 +09:00
parent 3d3d5ea5ad
commit bfc91be170

View file

@ -142,6 +142,7 @@ class HV(Reloadable):
self.wdt_cpu = None
self.smp = True
self.hook_exceptions = False
self.started_cpus = set()
def _reloadme(self):
super()._reloadme()
@ -1141,6 +1142,7 @@ class HV(Reloadable):
self.log(f" CPU #{index}: RVBAR = {entry:#x}")
self.sysreg[index] = {}
self.started_cpus.add(index)
self.p.hv_start_secondary(index, entry)
def setup_adt(self):