riscemu.priv.PrivCPU module
RiscEmu (c) 2021 Anton Lydike
SPDX-License-Identifier: MIT
- class riscemu.priv.PrivCPU.PrivCPU(conf)
Bases:
CPU
This is a CPU that has different modes, instruction sets and registers.
It should support M and U Mode, but no U-Mode Traps.
This is meant to emulate whole operating systems.
- __init__(conf)
- TIME_RESOLUTION_NS: int = 10000000
controls the resolution of the time csr register (in nanoseconds)
- run(verbose=False)
- step(verbose=True)
- show_perf()
- record_perf_profile()
- classmethod get_loaders() Iterable[Type[ProgramLoader]]