From 2900429e6560b091f4e3e1ad703425937d6ff41e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 2 Apr 2015 00:14:56 +0800 Subject: [PATCH] soc: use set --- misoclib/soc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misoclib/soc/__init__.py b/misoclib/soc/__init__.py index babd6624..52e93dd8 100644 --- a/misoclib/soc/__init__.py +++ b/misoclib/soc/__init__.py @@ -160,7 +160,7 @@ class SoC(Module): return self._csr_regions def do_finalize(self): - registered_mems = [regions[0] for regions in self._memory_regions] + registered_mems = {regions[0] for regions in self._memory_regions} if self.cpu_type != "none": for mem in "rom", "sram": if mem not in registered_mems: -- 2.30.2