Skip to content

Commit 8aab449

Browse files
author
Derek Hower
committed
add missing params to generic_rv64, add MultiDecl to gen_adoc
1 parent 0250977 commit 8aab449

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cfgs/generic_rv64/params.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,3 +514,6 @@ params:
514514
MSTATUS_FS_WRITEABLE: true
515515
MSTATUS_TVM_IMPLEMENTED: true
516516
HW_MSTATUS_FS_DIRTY_UPDATE: precise
517+
MSTATUS_VS_WRITEABLE: true
518+
MSTATUS_VS_LEGAL_VALUES: [0,1,2,3]
519+
HW_MSTATUS_VS_DIRTY_UPDATE: precise

lib/idl/passes/gen_adoc.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ def gen_adoc(indent = 0, indent_spaces: 2)
159159
end
160160
end
161161

162+
class MultiVariableDeclarationAst
163+
def gen_adoc(indent = 0, indent_spaces: 2)
164+
"#{' ' * indent}#{type_name.gen_adoc(0, indent_spaces:)} #{var_name_names.map { |var| var.gen_adoc(0, indent_spaces:) }.join(', ')}"
165+
end
166+
end
167+
162168
class TernaryOperatorExpressionAst
163169
def gen_adoc(indent = 0, indent_spaces: 2)
164170
"#{' ' * indent}#{condition.gen_adoc(0, indent_spaces:)} ? #{true_expression.gen_adoc(0, indent_spaces:)} : #{false_expression.gen_adoc(0, indent_spaces:)}"

0 commit comments

Comments
 (0)