Skip to content

Commit

Permalink
Merge pull request #364 from riscv-software-src/fixes
Browse files Browse the repository at this point in the history
Fix pre-commit issues with layout files, fix do with devcontainer
  • Loading branch information
dhower-qc authored Dec 18, 2024
2 parents 52eb36b + 579d8db commit bc5ec90
Show file tree
Hide file tree
Showing 32 changed files with 96 additions and 40 deletions.
4 changes: 2 additions & 2 deletions arch/csr/Zihpm/mhpmcounterNh.layout
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fields:
alias: mhpmcounter.COUNT<%= hpm_num %>[63:32]
description: |
Upper bits of counter.
type(): 'return (HPM_COUNTER_EN[<%= hpm_num %>]) ? CsrFieldType::RWH : CsrFieldType::RO;'
reset_value(): 'return (HPM_COUNTER_EN[<%= hpm_num %>]) ? UNDEFINED_LEGAL : 0;'
type(): "return (HPM_COUNTER_EN[<%= hpm_num %>]) ? CsrFieldType::RWH : CsrFieldType::RO;"
reset_value(): "return (HPM_COUNTER_EN[<%= hpm_num %>]) ? UNDEFINED_LEGAL : 0;"
sw_read(): |
if (HPM_COUNTER_EN[<%= hpm_num %>]) {
return read_hpm_counter(<%= hpm_num %>)[63:32];
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent10.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent11.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent12.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent13.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent14.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent15.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent16.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent17.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent18.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent19.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent20.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent21.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent22.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent23.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent24.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent25.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent26.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent27.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent28.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent29.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent3.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent30.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent31.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent4.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent5.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent6.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent7.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent8.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
4 changes: 3 additions & 1 deletion arch/csr/Zihpm/mhpmevent9.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout# yaml-language-server: $schema=../../../schemas/csr_schema.json
# yaml-language-server: $schema=../../../schemas/csr_schema.json

# WARNING: This file is auto-generated from arch/csr/Zihpm/mhpmeventN.layout

$schema: csr_schema.json#
kind: csr
Expand Down
1 change: 0 additions & 1 deletion arch/csr/Zihpm/mhpmeventN.layout
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# yaml-language-server: $schema=../../../schemas/csr_schema.json

<%- raise "'hpm_num' must be defined" if hpm_num.nil? -%>
Expand Down
15 changes: 7 additions & 8 deletions do
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#!/bin/bash

ROOT=$(dirname $(realpath $BASH_SOURCE[0]))
if [ -v DEVCONTAINER_ENV ]; then
BUNDLE=bundle
else
source $ROOT/bin/setup
fi

if [ "$1" == "clean" ]; then
${ROOT}/bin/clean
else
# really long way of invoking rake, but renamed to 'do'
$BUNDLE exec --gemfile $ROOT/Gemfile ruby -r rake -e "Rake.application.init('do');Rake.application.load_rakefile;Rake.application.top_level" -- $@
exit $?
fi

source $ROOT/bin/setup


# really long way of invoking rake, but renamed to 'do'
$BUNDLE exec --gemfile $ROOT/Gemfile ruby -r rake -e "Rake.application.init('do');Rake.application.load_rakefile;Rake.application.top_level" -- $@

0 comments on commit bc5ec90

Please sign in to comment.