riscemu(1)
β¨ riscemu β the vibe β¨
okay bestie, let me put you ON to riscemu, the RISC-V emulator written in Python, from the riscemu manual page (section 1, for all my command-line girlies π
). no cap, this thing is giving "I run your RISC-V assembly and I look cute doing it."
πΈ NAME πΈ
riscemu β a RISC-V emulator in Python. that's it, that's the girl. π
π SYNOPSIS π
[--stack_size [STACK_SIZE]] [--flen [FLEN]] [-v] [--interactive] [--ignore-exit-code]
file.asm [file.asm ...]
π¦ DESCRIPTION π¦
so like, what's inside this emulator? let me tell you, she ate:
- RISC-V Assembly parser β reads your asm, no drama
- RISC-V Assembly loader β loads it up, main character energy
- Emulation for most parts of the basic RISC-V instruction set and the M and A extensions β the classics, plus M and A
- Naive memory emulator β yes bestie, "naive" is literally her own word for it, I'm just the messenger π
- Basic implementation of some syscalls β some. not all. set your expectations accordingly β¨
- A debugging environment β for when things go π and you need answers
π OPTIONS π
--strict-whitespaceβ do not treat all horizontal whitespace as equivalent. she's picky now. respect it. π--check-prefixβ lets you change that default match keywordCHECKinto literally any keyword you want. your keyword, your rules, periodt. π--implicit-check-notβ adds an implicitCHECK-NOTcheck that works on every single input line. yes, every one. no lines escape the vibe check. π«Ά--helpβ display available options β¨-h,--helpβ show this help message and exit π--options OPTIONS,-o OPTIONSβ toggle options! the available options are:disable_debugβ disableebreakinstructionsno_syscall_symbolsβ don't add symbols forSCALL_EXITand othersfail_on_exβ if set, exceptions won't trigger the debugger (she's feral now π)add_accept_immβ accept the"add rd, rs, imm"instruction (instead ofaddi). quoted exactly like that bestie, that's the literal instruction string.unlimited_regsβ allow an unlimited number of registers. infinity registers, zero consequences π¦libcβ load a libc-like runtime (formalloc, etc.)ignore_exit_codeβ don't exit with the program's exit code
--syscall-opts SYSCALL_OPTS,-so SYSCALL_OPTSβ syscall options, the-soshorty is right there for you π--instruction-sets INSTRUCTION_SETS,-is INSTRUCTION_SETSβ which instruction sets to load! the available ones are:RV32I,RV32M,RV32A,RV32F,RV32D,Zicsr,RV_Debug. and plot twist: all of them are enabled by default. the whole menu, no upcharge. π₯--stack_size [STACK_SIZE]β stack size of loaded programs, and it defaults to8MB. big stack energy. π--flen [FLEN]β hardwareFLEN, either32or64. literal binary choice bestie, pick one. defaults to64.-v,--verboseβ verbosity level. and she's flexible β you can use it multiple times to go even more verbose. stack that-v. β--interactiveβ launches the interactive debugger instantly instead of loading any programs. straight to the debugger, no programs, we goin' in raw. π--ignore-exit-codeβ ignore the exit code of the program and always return0if the program ran to completion. so 0 regardless. forgiving queen. π§
π REPORTING BUGS π
found a bug? (π) please go visit the riscemu issues tracking system at:
they want to hear about it, fr fr. don't suffer in silence, bestie.
π AUTHORS π
this manual page was written by Bo YU <tsu.yubo@gmail.com> for the Debian project β but like, it may be used by others too. sharing is caring, iykyk. π«Ά
legit reminder bb: the caveats in here are real. "naive memory emulator" and "some syscalls" are her actual words, so don't come for me when your weird syscall does a little nothing. that's canon. π
and that's the whole page! this was riscemu, manual page riscemu(1), dated 21 August 2025. slay, go emulate something iconic. πβ¨π
π¦ where this page comes from
- ubuntu resolute: riscemu 2.2.7-2 Β· MIT
- ubuntu stonking: riscemu 2.2.7-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms