Skip to content

Commit 75de2f4

Browse files
committed
[model] Fence instruction: Don't do anything
1 parent d636558 commit 75de2f4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ First install it:
1717

1818
Create random assembler sequences
1919
`````````````````````````````````
20-
20+
2121
Create a random assembler sequence:
2222

2323
::
2424

2525
riscv-random-asm
26-
26+
2727
You can tweak the assembler output:
2828

2929
::

riscvmodel/isa.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,13 @@ def execute(self, model: State):
257257

258258
@isa("fence", opcode=0b0001111, funct3=0b000, funct7=0b0000000)
259259
class InstructionFENCE(Instruction):
260-
pass
261-
260+
def execute(self, model: State):
261+
pass
262262

263263
@isa("fence.i", opcode=0b0001111, funct3=0b001, funct7=0b0000000)
264264
class InstructionFENCEI(Instruction):
265-
pass
265+
def execute(self, model: State):
266+
pass
266267

267268

268269
@isa("ecall", opcode=0b1110011, funct3=0b000, funct12=0b000000000000)

0 commit comments

Comments
 (0)