soc/integration/cpu_interface: do not generate constant access functions when with_access_functions is set to False
This commit is contained in:
parent
20c859d45c
commit
d05d170b75
|
@ -145,6 +145,7 @@ def get_csr_header(regions, constants, with_access_functions=True):
|
|||
value = str(value)
|
||||
ctype = "int"
|
||||
r += "#define "+name+" "+value+"\n"
|
||||
if with_access_functions:
|
||||
r += "static inline "+ctype+" "+name.lower()+"_read(void) {\n"
|
||||
r += "\treturn "+value+";\n}\n"
|
||||
|
||||
|
|
Loading…
Reference in New Issue