kernel-mode #1
@ -44,9 +44,9 @@ class PrivCPU(CPU):
|
|||||||
super().__init__(conf, [PrivRV32I, RV32M])
|
super().__init__(conf, [PrivRV32I, RV32M])
|
||||||
self.mode: PrivModes = PrivModes.MACHINE
|
self.mode: PrivModes = PrivModes.MACHINE
|
||||||
|
|
||||||
exec = ElfExecutable('kernel')
|
kernel = ElfExecutable('kernel')
|
||||||
self.mmu = PrivMMU(exec)
|
self.mmu = PrivMMU(kernel)
|
||||||
self.pc = exec.run_ptr
|
self.pc = kernel.run_ptr
|
||||||
self.syscall_int = None
|
self.syscall_int = None
|
||||||
|
|
||||||
# init csr
|
# init csr
|
||||||
|
Loading…
Reference in New Issue
Block a user