Skip to content

Commit 9bb1fc1

Browse files
committed
Add spoom gem
1 parent 899c3a1 commit 9bb1fc1

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

Gemfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gem "pygments.rb"
1616
gem "rake", "~> 13.0"
1717
gem "rouge"
1818
gem "ruby-progressbar", "~> 1.13"
19-
gem 'sorbet-runtime'
19+
gem "sorbet-runtime"
2020
gem "treetop", "1.6.12"
2121
gem "ttfunk", "1.7" # needed to avoid having asciidoctor-pdf dependencies pulling in a buggy version of ttunk (1.8)
2222
gem "webrick"
@@ -30,7 +30,8 @@ group :development do
3030
gem "rubocop-minitest"
3131
gem "ruby-prof"
3232
gem "ruby-prof-flamegraph", git: "https://github.com/oozou/ruby-prof-flamegraph.git", ref: "fc3c437", require: false
33-
gem "sorbet"
3433
gem "solargraph"
35-
gem 'tapioca', require: false
34+
gem "sorbet"
35+
gem "spoom"
36+
gem "tapioca", require: false
3637
end

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ DEPENDENCIES
265265
solargraph
266266
sorbet
267267
sorbet-runtime
268+
spoom
268269
tapioca
269270
treetop (= 1.6.12)
270271
ttfunk (= 1.7)

backends/cpp_hart_gen/templates/csrs_impl.hxx.erb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ void <%= name_of(:csr_field, cfg_arch, csr.name, field.name) %><SocType>::reset(
5656
<%- end -%>
5757
<%- else -%>
5858
auto val_fn = [this]() ->
59-
<%- if field.could_be_undefined? -%>
6059
PossiblyUnknownBits<<%= max_width + 1 %>>
61-
<%- else -%>
62-
Bits<<%= max_width + 1 %>>
63-
<%- end -%>
6460
{
6561
<%= ast.gen_cpp(cfg_arch.symtab, 8) %>
6662
};
@@ -202,11 +198,7 @@ bool <%= name_of(:csr, cfg_arch, csr.name) %><SocType>::_sw_write(const Bits<<%=
202198
203199
<%- if field.has_custom_sw_write? -%>
204200
auto wr_val_fn = [this, &csr_value = std::as_const(csr_value)]() ->
205-
<%- if field.could_be_undefined? -%>
206201
PossiblyUnknownBits<<%= field.width(xlen) %>>
207-
<%- else -%>
208-
Bits<<%= field.width(xlen) %>>
209-
<%- end -%>
210202
{
211203
<%- pruned_ast = field.pruned_sw_write_ast(xlen) -%>
212204
<%- symtab = field.fill_symtab_for_sw_write(xlen, pruned_ast) -%>
@@ -246,11 +238,7 @@ bool <%= name_of(:csr, cfg_arch, csr.name) %><SocType>::_sw_write(const Bits<<%=
246238
<%- if field.has_custom_sw_write? -%>
247239
{
248240
auto wr_val_fn = [this, &csr_value = std::as_const(csr_value)]() ->
249-
<%- if field.could_be_undefined? -%>
250241
PossiblyUnknownBits<<%= field.width(cfg_arch.possible_xlens[0]) %>>
251-
<%- else -%>
252-
Bits<<%= field.width(cfg_arch.possible_xlens[0]) %>>
253-
<%- end -%>
254242
{
255243
<%- pruned_ast = field.pruned_sw_write_ast(cfg_arch.possible_xlens[0]) -%>
256244
<%- symtab = field.fill_symtab_for_sw_write(cfg_arch.possible_xlens[0], pruned_ast) -%>

lib/arch_obj_models/csr_field.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# A CSR field object
1111
class CsrField < DatabaseObject
12-
extend T::Sig;
12+
extend T::Sig
1313

1414
# @return [Csr] The Csr that defines this field
1515
sig { returns(Csr) }

0 commit comments

Comments
 (0)