You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
riscemu/riscemu/config.py

26 lines
523 B
Python

"""
RiscEmu (c) 2021-2022 Anton Lydike
SPDX-License-Identifier: MIT
"""
4 years ago
from dataclasses import dataclass
@dataclass(frozen=True, init=True)
class RunConfig:
stack_size: int = 8 * 1024 * 64 # for 8KB stack
include_scall_symbols: bool = True
add_accept_imm: bool = False
# debugging
debug_instruction: bool = True
debug_on_exception: bool = True
# allowed syscalls
scall_input: bool = True
scall_fs: bool = False
verbosity: int = 0
slowdown: float = 1
CONFIG = RunConfig()