Skip to content

Commit 3f61a6e

Browse files
authored
Merge pull request #15 from mrLSD/feat/exec-fix
Feat: Fix `ExecutionI` and added CI
2 parents e629c5b + 4478b72 commit 3f61a6e

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/dotnet.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 8.0.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build --no-restore
27+
- name: Test
28+
run: dotnet test --no-build --verbosity normal

ExecuteI.fs

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ let Execute (instr : InstructionI) (mstate : MachineState) =
439439
execAND i.rd i.rs1 i.rs2 mstate
440440
| FENCE _ ->
441441
execFENCE mstate
442-
| ECALL _ ->
442+
| ECALL ->
443443
execECALL mstate
444-
| EBREAK _ ->
444+
| EBREAK ->
445445
execEBREAK mstate
446446
| _ -> mstate.setRunState (Trap InstructionExecute)

0 commit comments

Comments
 (0)