Skip to content

Commit

Permalink
Adding support for Zilsd extension
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-herber-nxp committed Apr 16, 2024
1 parent 3416efe commit 7e837b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion riscv_config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
] + Zvef_extensions + Zved_extensions

Z_extensions = [
"Zicbom", "Zicbop", "Zicboz", "Zicntr", "Zicsr", "Zicond", "Zicfilp", "Zicfiss", "Zifencei", "Zihintpause", "Zihpm", "Zimop",
"Zicbom", "Zicbop", "Zicboz", "Zicntr", "Zicsr", "Zicond", "Zicfilp", "Zicfiss", "Zifencei", "Zihintpause", "Zihpm", "Zilsd", "Zimop",
"Zmmul",
"Zam", "Zabha", "Zacas",
"Zca", "Zcb", "Zcf", "Zcd" , "Zcmp", "Zcmt", "Zcmop",
Expand Down
3 changes: 3 additions & 0 deletions riscv_config/isa_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def get_extension_list(isa):
if 'S' in extension_list and not 'U' in extension_list:
err_list.append( "S cannot exist without U.")
err = True
if 'Zilsd' in extension_list and 'Zcf' in extension_list:
err_list.append( "Zilsd includes compressed encodings that are mutually exclusive with Zcf.")
err = True
if 'Zkn' in extension_list and ( set(['Zbkb', 'Zbkc', 'Zbkx', 'Zkne', 'Zknd', 'Zknh']) & set(extension_list)):
err_list.append( "Zkn is a superset of Zbkb, Zbkc, Zbkx, Zkne, Zknd, Zknh. In presence of Zkn the subsets must be ignored in the ISA string.")
err = True
Expand Down

0 comments on commit 7e837b7

Please sign in to comment.