File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -182,4 +182,4 @@ jobs:
182
182
- name : singularity setup
183
183
uses : ./.github/actions/singularity-setup
184
184
- name : Run cpp unit tests
185
- run : ./do test:cpp_hart CONFIG=rv64
185
+ run : ./do test:cpp_hart CONFIG=rv64 JOBS=4
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ rule %r{#{CPP_HART_GEN_DST}/.*/include/udb/cfgs/[^/]+/[^/]+\.h(xx)?\.unformatted
133
133
"#{ CPP_HART_GEN_SRC } /lib/gen_cpp.rb" ,
134
134
"#{ $root} /lib/idl/passes/prune.rb" ,
135
135
"#{ CPP_HART_GEN_SRC } /lib/template_helpers.rb" ,
136
- "#{ CPP_HART_GEN_SRC } /lib/csr_backend_helpers .rb" ,
136
+ "#{ CPP_HART_GEN_SRC } /lib/csr_template_helpers .rb" ,
137
137
__FILE__
138
138
]
139
139
} do |t |
@@ -167,7 +167,7 @@ rule %r{#{CPP_HART_GEN_DST}/.*/src/cfgs/[^/]+/[^/]+\.cxx\.unformatted$} => proc
167
167
"#{ CPP_HART_GEN_SRC } /lib/gen_cpp.rb" ,
168
168
"#{ $root} /lib/idl/passes/prune.rb" ,
169
169
"#{ CPP_HART_GEN_SRC } /lib/template_helpers.rb" ,
170
- "#{ CPP_HART_GEN_SRC } /lib/csr_backend_helpers .rb" ,
170
+ "#{ CPP_HART_GEN_SRC } /lib/csr_template_helpers .rb" ,
171
171
__FILE__
172
172
]
173
173
} do |t |
Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ def schema_type
36
36
@schema . to_pretty_s
37
37
end
38
38
39
+ # @returns [Object] default value, or nil if none
40
+ def default
41
+ if @data [ "schema" ] . key? ( "default" )
42
+ @data [ "schema" ] [ "default" ]
43
+ end
44
+ end
45
+
39
46
# @param ext [Extension]
40
47
# @param name [String]
41
48
# @param data [Hash<String, Object]
@@ -129,6 +136,9 @@ def extra_validation = @param.extra_validation
129
136
# @return [Extension] The extension that defines this parameter
130
137
def exts = @param . exts
131
138
139
+ # @returns [Idl::Type] Type of the parameter
140
+ def idl_type = @param . idl_type
141
+
132
142
def initialize ( param , value )
133
143
@param = param
134
144
@value = value
You can’t perform that action at this time.
0 commit comments