From cadccaef00a1bddf7d6ddc42fb68836768568a8d Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 27 Mar 2022 18:44:41 +0200 Subject: [PATCH] [priv] fixed printing for mret, sret and uret --- riscemu/decoder/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscemu/decoder/formatter.py b/riscemu/decoder/formatter.py index 0d7d304..d2e5dbd 100644 --- a/riscemu/decoder/formatter.py +++ b/riscemu/decoder/formatter.py @@ -20,7 +20,7 @@ def format_ins(ins: int, name: str, fmt: str = 'int'): return f"{name} " decoder = INSTRUCTION_ARGS_DECODER[opcode] - if name in ('ecall', 'ebreak'): + if name in ('ecall', 'ebreak', 'mret', 'sret', 'uret'): return name if opcode in (0x8, 0x0): r1, r2, imm = decoder(ins)