Skip to content

Commit 6392cb3

Browse files
Merge branch 'dev' into deterministic_constraint
2 parents d5a92d7 + b7634dc commit 6392cb3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ jobs:
115115
curl --location https://github.com/rems-project/sail/releases/download/0.18-linux-binary/sail.tar.gz | sudo tar xvz --directory=/usr/local --strip-components=1
116116
git clone https://github.com/riscv/sail-riscv.git
117117
cd sail-riscv
118-
ARCH=RV${{ matrix.xlen }} make
118+
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
119+
cmake --build build
119120
mkdir -p $GITHUB_WORKSPACE/sail
120-
mv c_emulator/riscv_sim_RV${{ matrix.xlen }} $GITHUB_WORKSPACE/sail/riscv_sim_RV${{ matrix.xlen }}
121+
mv build/c_emulator/riscv_sim_rv${{ matrix.xlen }}d $GITHUB_WORKSPACE/sail/riscv_sim_rv${{ matrix.xlen }}d
121122
122123
- name: Save cached Sail
123124
if: steps.cache-sail-restore.outputs.cache-hit != 'true'
@@ -173,4 +174,4 @@ jobs:
173174
name: riscof-artifact-rv${{ matrix.xlen }}
174175
path: ${{ env.upload_path }}
175176
compression-level: 6
176-
overwrite: true
177+
overwrite: true

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,10 @@ Then build the RISC-V Sail Model:
221221
```bash
222222
$ git clone https://github.com/riscv/sail-riscv.git
223223
$ cd sail-riscv
224-
$ ARCH=RV32 make
225-
$ ARCH=RV64 make
224+
$ ./build-simulators.sh
226225
```
227226

228-
This will create a C simulator in `c_emulator/riscv_sim_RV64` and `c_emulator/riscv_sim_RV32`. You will need to add this path to your `$PATH` or create an alias to execute them from the command line.
227+
This will create a C simulator in `build/c_emulator/riscv_sim_rv64d` and `build/c_emulator/riscv_sim_rv32d`. You will need to add this path to your `$PATH` or create an alias to execute them from the command line.
229228

230229

231230
## Necessary Env Files

riscof-plugins/rv32/sail_cSim/riscof_sail_cSim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def __init__(self, *args, **kwargs):
3636
path = config['PATH'] if 'PATH' in config else ""
3737

3838

39-
self.sail_exe = { '32' : os.path.join(path,"riscv_sim_RV32"),
40-
'64' : os.path.join(path,"riscv_sim_RV64")}
39+
self.sail_exe = { '32' : os.path.join(path,"riscv_sim_rv32d"),
40+
'64' : os.path.join(path,"riscv_sim_rv64d")}
4141
self.isa_spec = os.path.abspath(config['ispec']) if 'ispec' in config else ''
4242
self.platform_spec = os.path.abspath(config['pspec']) if 'ispec' in config else ''
4343
self.make = config['make'] if 'make' in config else 'make'

riscof-plugins/rv64/sail_cSim/riscof_sail_cSim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def __init__(self, *args, **kwargs):
2828
raise SystemExit(1)
2929
self.num_jobs = str(config['jobs'] if 'jobs' in config else 1)
3030
self.pluginpath = os.path.abspath(config['pluginpath'])
31-
self.sail_exe = { '32' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_RV32"),
32-
'64' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_RV64")}
31+
self.sail_exe = { '32' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_rv32d"),
32+
'64' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_rv64d")}
3333
self.isa_spec = os.path.abspath(config['ispec']) if 'ispec' in config else ''
3434
self.platform_spec = os.path.abspath(config['pspec']) if 'ispec' in config else ''
3535
self.make = config['make'] if 'make' in config else 'make'

0 commit comments

Comments
 (0)