cpu_interface: Fix indenting on constant generation.
This was preventing constants from getting added to the csr.h header file.
This commit is contained in:
parent
7b6ba372c8
commit
f6f73cf13c
|
@ -144,10 +144,10 @@ def get_csr_header(regions, constants, with_access_functions=True):
|
||||||
else:
|
else:
|
||||||
value = str(value)
|
value = str(value)
|
||||||
ctype = "int"
|
ctype = "int"
|
||||||
r += "#define "+name+" "+value+"\n"
|
r += "#define "+name+" "+value+"\n"
|
||||||
if with_access_functions:
|
if with_access_functions:
|
||||||
r += "static inline "+ctype+" "+name.lower()+"_read(void) {\n"
|
r += "static inline "+ctype+" "+name.lower()+"_read(void) {\n"
|
||||||
r += "\treturn "+value+";\n}\n"
|
r += "\treturn "+value+";\n}\n"
|
||||||
|
|
||||||
r += "\n#endif\n"
|
r += "\n#endif\n"
|
||||||
return r
|
return r
|
||||||
|
|
Loading…
Reference in New Issue