[CPU] cleaned up constructor
This commit is contained in:
parent
49b59cd46a
commit
a1f29b9d97
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user