Skip to content

Commit 0db6e1d

Browse files
committedApr 3, 2015
soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube)
1 parent 875abde commit 0db6e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎misoclib/soc/cpuif.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_csr_header(regions, interrupt_map):
7272
r = "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n#include <hw/common.h>\n"
7373
for name, origin, busword, obj in regions:
7474
if isinstance(obj, Memory):
75-
fullname = name + "_" + memory.name_override
75+
fullname = name + "_" + obj.name_override
7676
r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n"
7777
else:
7878
r += "\n/* "+name+" */\n"

0 commit comments

Comments
 (0)
Please sign in to comment.