From c48a5efee3973b7b5059b0e5a39a8d31a4212fae Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 22 May 2021 21:03:37 +0200 Subject: [PATCH] [cpu] fixed formatting to include cpu class extensions --- riscemu/CPU.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/riscemu/CPU.py b/riscemu/CPU.py index f116a4e..620577d 100644 --- a/riscemu/CPU.py +++ b/riscemu/CPU.py @@ -178,7 +178,8 @@ class CPU: """ Returns a representation of the CPU and some of its state. """ - return "CPU(pc=0x{:08X}, cycle={}, exit={}, instructions={})".format( + return "{}(pc=0x{:08X}, cycle={}, exit={}, instructions={})".format( + self.__class__.__name__, self.pc, self.cycle, self.exit,