Skip to content

Commit c1d46f7

Browse files
author
Derek Hower
committed
Fix profile_doc gen to reflext archdef changes
1 parent 44a9f06 commit c1d46f7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

backends/profile_doc/tasks.rake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ rule %r{#{$root}/gen/profile_doc/adoc/.*\.adoc} => proc { |tname|
1212
} do |t|
1313
profile_family_name = Pathname.new(t.name).basename(".adoc").to_s
1414

15-
profile_family = arch_def_for("_").profile_family(profile_family_name)
15+
profile_family = arch_def_for("_64").profile_family(profile_family_name)
1616
raise ArgumentError, "No profile family named '#{profile_family_name}'" if profile_family.nil?
1717

1818
template_path = Pathname.new "#{$root}/backends/profile_doc/templates/profile_pdf.adoc.erb"
1919
erb = ERB.new(template_path.read, trim_mode: "-")
2020
erb.filename = template_path.to_s
2121

22-
arch_def = arch_def_for("_")
22+
arch_def = arch_def_for("_64")
2323

2424
FileUtils.mkdir_p File.dirname(t.name)
2525
File.write t.name, AsciidocUtils.resolve_links(arch_def.find_replace_links(erb.result(binding)))
@@ -85,7 +85,7 @@ namespace :gen do
8585
family_name = args[:profile_family]
8686
raise ArgumentError, "Missing required option +profile_family+" if family_name.nil?
8787

88-
family = arch_def_for("_").profile_family(family_name)
88+
family = arch_def_for("_64").profile_family(family_name)
8989
raise ArgumentError, "No profile family named '#{family_name}" if family.nil?
9090

9191
Rake::Task["#{$root}/gen/profile_doc/pdf/#{family_name}.pdf"].invoke
@@ -96,7 +96,7 @@ namespace :gen do
9696
family_name = args[:profile_family]
9797
raise ArgumentError, "Missing required option +profile_family+" if family_name.nil?
9898

99-
family = arch_def_for("_").profile_family(family_name)
99+
family = arch_def_for("_64").profile_family(family_name)
100100
raise ArgumentError, "No profile family named '#{family_name}" if family.nil?
101101

102102
Rake::Task["#{$root}/gen/profile_doc/html/#{family_name}.html"].invoke

backends/profile_doc/templates/profile_pdf.adoc.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ RV64::
612612
<%- if inst.key?("operation()") -%>
613613
[source,idl,subs="specialchars,macros"]
614614
----
615-
<%= inst.operation_ast(arch_def.idl_compiler).gen_adoc %>
615+
<%= inst.operation_ast(arch_def.symtab).gen_adoc %>
616616
----
617617
<%- end -%>
618618

0 commit comments

Comments
 (0)