From 2c5655d65a336e2ab344290fd6ad24967cddcfba Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 18 Apr 2021 18:56:39 +0200 Subject: [PATCH] fixed registers keeping track of last accessed register --- riscemu/Registers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/riscemu/Registers.py b/riscemu/Registers.py index 514b79b..f40a140 100644 --- a/riscemu/Registers.py +++ b/riscemu/Registers.py @@ -84,6 +84,7 @@ class Registers: raise InvalidRegisterException(reg) if reg == 'fp': reg = 's0' + self.last_access = reg return self.vals[reg] @staticmethod