integration/export: disable CSRField extract/read functions generation for csr.size > 32-bit.

This commit is contained in:
Florent Kermarrec 2021-01-26 10:23:56 +01:00
parent 2a542e150d
commit dd985cd1d0
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ def get_csr_header(regions, constants, csr_base=None, with_access_functions=True
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()+"_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()
field_name = reg_name + "_" + field.name.lower()
r += "static inline uint32_t " + field_name + "_extract(uint32_t oldword) {\n"