def trace_block(self, mode, addr, size, text="", level=logging.DEBUG, addon=""): log_mem.log(level, "%s(B): %06x: +%06x %6s [@%06x +%06x %s] %s", mode, addr, size, text, self.addr, addr - self.addr, self.name, addon)
def trace_mem_int(self, mode, width, addr, value, text="", level=logging.DEBUG, addon=""): val = self.trace_val_str[width] % value log_mem.log(level, "%s(%d): %06x: %s %6s [@%06x +%06x %s] %s", mode, 2**width, addr, val, text, self.addr, addr - self.addr, self.name, addon)