Skip to content

Commit

Permalink
soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube)
Browse files Browse the repository at this point in the history
enjoy-digital committed Apr 3, 2015
1 parent 875abde commit 0db6e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misoclib/soc/cpuif.py
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ def get_csr_header(regions, interrupt_map):
r = "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n#include <hw/common.h>\n"
for name, origin, busword, obj in regions:
if isinstance(obj, Memory):
fullname = name + "_" + memory.name_override
fullname = name + "_" + obj.name_override
r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n"
else:
r += "\n/* "+name+" */\n"

0 comments on commit 0db6e1d

Please sign in to comment.