From 9424390b656f982849bb8bf99a963aa087bf94fa Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 5 Jun 2021 09:54:58 +0200 Subject: [PATCH] [decoder] Added mret, sret, uret, wfi instruction decoding support --- riscemu/decoder/decoder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/riscemu/decoder/decoder.py b/riscemu/decoder/decoder.py index b218ccd..f0601e8 100644 --- a/riscemu/decoder/decoder.py +++ b/riscemu/decoder/decoder.py @@ -15,6 +15,10 @@ STATIC_INSN: Dict[int, Tuple[str, List[Union[str, int]], int]] = { 0x02010113: ("addi", ["sp", "sp", 32], 0x02010113), 0x00100073: ("ebreak", [], 0x00100073), 0x00000073: ("ecall", [], 0x00000073), + 0x30200073: ("mret", [], 0x30200073), + 0x00200073: ("uret", [], 0x00200073), + 0x10200073: ("sret", [], 0x10200073), + 0x10500073: ("wfi", [], 0x10500073), }