integration/export: disable CSRField extract/read functions generation for csr.size > 32-bit.
This commit is contained in:
parent
2a542e150d
commit
dd985cd1d0
|
@ -238,7 +238,7 @@ def get_csr_header(regions, constants, csr_base=None, with_access_functions=True
|
||||||
size = str(field.size)
|
size = str(field.size)
|
||||||
r += "#define CSR_"+name.upper()+"_"+csr.name.upper()+"_"+field.name.upper()+"_OFFSET "+offset+"\n"
|
r += "#define CSR_"+name.upper()+"_"+csr.name.upper()+"_"+field.name.upper()+"_OFFSET "+offset+"\n"
|
||||||
r += "#define CSR_"+name.upper()+"_"+csr.name.upper()+"_"+field.name.upper()+"_SIZE "+size+"\n"
|
r += "#define CSR_"+name.upper()+"_"+csr.name.upper()+"_"+field.name.upper()+"_SIZE "+size+"\n"
|
||||||
if with_access_functions:
|
if with_access_functions and csr.size <= 32: # FIXME: Implement extract/read functions for csr.size > 32-bit.
|
||||||
reg_name = name + "_" + csr.name.lower()
|
reg_name = name + "_" + csr.name.lower()
|
||||||
field_name = reg_name + "_" + field.name.lower()
|
field_name = reg_name + "_" + field.name.lower()
|
||||||
r += "static inline uint32_t " + field_name + "_extract(uint32_t oldword) {\n"
|
r += "static inline uint32_t " + field_name + "_extract(uint32_t oldword) {\n"
|
||||||
|
|
Loading…
Reference in New Issue