Advertisement
mindrunner

Untitled

Apr 3rd, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.57 KB | None | 0 0
  1. diff --git a/misoclib/soc/cpuif.py b/misoclib/soc/cpuif.py
  2. index 7bbe5ad..be58bd8 100644
  3. --- a/misoclib/soc/cpuif.py
  4. +++ b/misoclib/soc/cpuif.py
  5. @@ -72,7 +72,7 @@ def get_csr_header(regions, interrupt_map):
  6.     r = "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n#include <hw/common.h>\n"
  7.     for name, origin, busword, obj in regions:
  8.         if isinstance(obj, Memory):
  9. -           fullname = name + "_" + memory.name_override
  10. +           fullname = name + "_" + obj.name_override
  11.             r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n"
  12.         else:
  13.             r += "\n/* "+name+" */\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement