def __same__(self, o): if not DeviceNode.__same__(self, o): return False # Order of mapping is significant including holes (None) between # mappings. for mapping in ("mmio_mappings", "pmio_mappings"): if not same_vectors(iter_mappings(getattr(self, mapping)), iter_mappings(getattr(o, mapping))): return False return True
def __same__(self, o): if not Node.__same__(self, o): return False if not same(idon(self.parent_bus), idon(o.parent_bus)): return False if not same_attrs(self, o, "qom_type", "properties"): return False # order of buses is significant if not same_vectors((b.id for b in self.buses), (b.id for b in o.buses)): return False # order of IRQs is not significant if same_sets((i.id for i in self.irqs), (i.id for i in o.irqs)): return True return False
def __same__(self, o): # property order is significant for code generation determinism if same_vectors(self, o): return True return False