From db9d40a5a04cb8c1b42a8f99798f6799a56a7476 Mon Sep 17 00:00:00 2001 From: Ilia Sergachev Date: Sat, 15 Jan 2022 17:13:48 +0100 Subject: [PATCH] integration/soc: warn about overrides only on differences --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 94a56afbb..f5f2540a5 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -926,7 +926,7 @@ class SoC(Module): else: # Override User's mapping with CPU constrainted mapping (and warn User). for n, origin in self.cpu.mem_map.items(): - if n in self.mem_map.keys(): + if n in self.mem_map.keys() and self.mem_map[n] != self.cpu.mem_map[n]: self.logger.info("CPU {} {} mapping from {} to {}.".format( colorer("overriding", color="cyan"), colorer(n),