From a1f29b9d97d2be6adfd5a11f7317d4b1af4688c9 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 25 May 2021 11:14:18 +0200 Subject: [PATCH] [CPU] cleaned up constructor --- riscemu/priv/PrivCPU.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscemu/priv/PrivCPU.py b/riscemu/priv/PrivCPU.py index d46e7cc..6916cc1 100644 --- a/riscemu/priv/PrivCPU.py +++ b/riscemu/priv/PrivCPU.py @@ -44,9 +44,9 @@ class PrivCPU(CPU): super().__init__(conf, [PrivRV32I, RV32M]) self.mode: PrivModes = PrivModes.MACHINE - exec = ElfExecutable('kernel') - self.mmu = PrivMMU(exec) - self.pc = exec.run_ptr + kernel = ElfExecutable('kernel') + self.mmu = PrivMMU(kernel) + self.pc = kernel.run_ptr self.syscall_int = None # init csr