Skip to content

Commit cf2ca5d

Browse files
Merge branch 'main' into issue_563
2 parents e1ce203 + a7e5ba9 commit cf2ca5d

File tree

8 files changed

+34
-22
lines changed

8 files changed

+34
-22
lines changed

bin/setup

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ cd $ROOT
66

77
CONTAINER_TAG=`cat ${ROOT}/bin/.container-tag`
88

9+
# Parse command line arguments
10+
PRESERVE_CONFIG=0
11+
12+
# Only parse arguments if this script is being run directly (not sourced)
13+
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
14+
for arg in "$@"; do
15+
case $arg in
16+
--preserve-config)
17+
PRESERVE_CONFIG=1
18+
shift
19+
;;
20+
--help|-h)
21+
echo "Usage: $0 [OPTIONS]"
22+
echo ""
23+
echo "Options:"
24+
echo " --preserve-config Only create .bundle/config if missing (default: always recreate)"
25+
echo " --help, -h Show this help message"
26+
exit 0
27+
;;
28+
*)
29+
echo "Unknown option: $arg"
30+
echo "Use --help for usage information"
31+
exit 1
32+
;;
33+
esac
34+
done
35+
fi
36+
937
# Supported container types:
1038
#
1139
# = devcontainer
@@ -128,7 +156,10 @@ if [ ! -d $ROOT/.home ]; then
128156
mkdir $ROOT/.home
129157
fi
130158

131-
if [ ! -f $ROOT/.bundle/config ]; then
159+
if [ $PRESERVE_CONFIG -eq 0 ] || [ ! -f $ROOT/.bundle/config ]; then
160+
if [ -f $ROOT/.bundle/config ] && [ $PRESERVE_CONFIG -eq 0 ]; then
161+
echo "Recreating bundle config..."
162+
fi
132163
OLDDIR=$PWD
133164
cd $ROOT
134165
${RUN} bundle config set --local path ${ROOT}/.home/.gems

cfgs/example_rv64_with_overlay.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ implemented_extensions:
3030
- [Sscofpmf, "1.0.0"]
3131
- [Ssaia, "1.0.0"]
3232
- [Ssccfg, "1.0.0"]
33-
- [Sstc, "0.9.0"]
33+
- [Sstc, "1.0.0"]
3434
- [Sv39, "1.12.0"]
3535
- [Sv48, "1.12.0"]
3636
- [Zicboz, "1.0.0"]

spec/schemas/proc_cert_class_schema.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
43
"type": "object",
54
"required": ["$schema", "kind", "name", "long_name", "introduction"],
65
"additionalProperties": false,
76
"properties": {
87
"$schema": {
9-
"type": "string",
108
"const": "proc_cert_class_schema.json#"
119
},
1210
"kind": {
13-
"type": "string",
1411
"const": "processor certificate class"
1512
},
1613
"name": {
@@ -23,7 +20,6 @@
2320
"description": "Descriptive name of the class"
2421
},
2522
"processor_kind": {
26-
"type": "string",
2723
"enum": ["Generic Unprivileged", "Microcontroller", "Apps Processor"],
2824
"description": "What kind of class is this?"
2925
},

spec/schemas/proc_cert_model_schema.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
43
"type": "object",
54
"required": ["$schema", "kind", "name", "long_name", "base"],
65
"additionalProperties": false,
@@ -54,11 +53,9 @@
5453
]
5554
},
5655
"$schema": {
57-
"type": "string",
5856
"const": "proc_cert_model_schema.json#"
5957
},
6058
"kind": {
61-
"type": "string",
6259
"const": "processor certificate model"
6360
},
6461
"name": {
@@ -96,7 +93,6 @@
9693
"description": "List of semantic versions within the model"
9794
},
9895
"base": {
99-
"type": "integer",
10096
"enum": [32, 64],
10197
"description": "Base of the model"
10298
},
@@ -143,7 +139,6 @@
143139
"in_scope_priv_modes": {
144140
"type": "array",
145141
"items": {
146-
"type": "string",
147142
"enum": ["M", "S", "U", "HS", "VS", "VU"]
148143
},
149144
"uniqueItems": true,

spec/schemas/profile_family_schema.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
43
"type": "object",
54
"required": ["$schema", "kind", "name", "long_name"],
65
"properties": {
76
"$schema": {
8-
"type": "string",
97
"const": "profile_family_schema.json#"
108
},
119
"kind": {
12-
"type": "string",
1310
"const": "profile family"
1411
},
1512
"processor_kind": {
16-
"type": "string",
1713
"enum": ["Generic Unprivileged", "Microcontroller", "Apps Processor"],
1814
"description": "What kind of processor is this?"
1915
},

spec/schemas/profile_release_schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
43
"type": "object",
54
"required": ["$schema", "kind", "name", "long_name", "description"],
65
"properties": {
76
"$schema": {
8-
"type": "string",
97
"const": "profile_release_schema.json#"
108
},
119
"kind": {
12-
"type": "string",
1310
"const": "profile release"
1411
},
1512
"name": {

spec/schemas/profile_schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
43
"type": "object",
54
"required": ["$schema", "kind", "name", "long_name", "base"],
65
"properties": {
76
"$schema": {
8-
"type": "string",
97
"const": "profile_schema.json#"
108
},
119
"kind": {
12-
"type": "string",
1310
"const": "profile"
1411
},
1512
"name": {

spec/std/isa/ext/Sstc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ long_name: Supervisor-mode timer interrupts
1010
description: Supervisor-mode timer interrupts
1111
type: privileged
1212
versions:
13-
- version: "0.9.0"
13+
- version: "1.0.0"
1414
state: ratified
1515
ratification_date: null
1616
url: https://drive.google.com/file/d/1m84Re2yK8m_vbW7TspvevCDR82MOBaSX/view?usp=drive_link

0 commit comments

Comments
 (0)