Skip to content

rrwhx/LA_EMU

Repository files navigation

LoongArch Emulator

Build

make -j
debug support
make DEBUG=1 -j
gdb support
make GDB=1 -j
debug cli support
make CLI=1 -j
get dynamic link library for difftest
make DIFF=1 -j
clean
make clean

Use CORE to specify the specific core configuration, the default is la464
make CLI=1 CORE=centaur320 -j

Usage

User Mode

  • ./build/la_emu_user [options] program [arguments...]

Kernel Mode

  • ./build/la_emu_kernel -m 16 -k vmlinux

Download execuable binary from here.

Options

Option Function
-d Log info, suupport: exec,cpu,fpu,int
-D Log file
-z Determined events
-g Enable gdbserver
-m Memory size(kernel mode)
-k Kernel vmlinux(kernel mode)

Features

Features Status
Loongarch64 base
Loongarch64 privilege
FP
LSX
LASX
Timer
Serial Port
Gdb Server
Determined events
All SPEC CPU
Dynamic ELF
Multithread
Signal
Block Device

Performance

Up to 3% of native.

About

Loongarch Emulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages