ysyx-workbench/nemu
xinyangli 4c540bd109
All checks were successful
Build abstract machine with nix / build-packages (abstract-machine) (push) Successful in 9s
Build abstract machine with nix / build-packages (nemu) (push) Successful in 20s
Build abstract machine with nix / build-packages (nemu-lib) (push) Successful in 9s
Build abstract machine with nix / build-packages (rv32Cross.abstract-machine) (push) Successful in 8s
Build npc tests / npc-build (flow) (push) Successful in 8s
Build npc tests / npc-build (flow-simlib) (push) Successful in 9s
nemu,build: build libnemu with nix
2024-08-15 18:36:23 +08:00
..
configs nemu,build: build libnemu with nix 2024-08-15 18:36:23 +08:00
include abstract-machine(nemu): support context switch 2024-07-25 17:16:41 +08:00
resource chore: clang format 2024-07-22 17:45:49 +08:00
scripts feat(nemu): gdb remote debug 2024-04-25 16:54:27 +08:00
src nemu,chore: reformat c/c++ code 2024-08-13 18:49:08 +08:00
tests nemu,build: build libnemu with nix 2024-08-15 18:36:23 +08:00
tools nemu,chore: reformat c/c++ code 2024-08-13 18:49:08 +08:00
.gitignore abstract-machine(nemu): support context switch 2024-07-25 17:16:41 +08:00
.result.tmp refactor: drop internal difftest support 2024-07-23 17:15:35 +08:00
default.nix nemu,build: build libnemu with nix 2024-08-15 18:36:23 +08:00
Kconfig feat(nemu): gdb remote debug 2024-04-25 16:54:27 +08:00
LICENSE pa1.2: use flex and bason to implement expr parser 2024-01-12 22:16:35 +08:00
Makefile chore: clang format 2024-07-22 17:45:49 +08:00
README.md NJU-ProjectN/nemu ics2023 initialized 2023-12-21 00:20:36 +08:00

NEMU

NEMU(NJU Emulator) is a simple but complete full-system emulator designed for teaching purpose. Currently it supports x86, mips32, riscv32 and riscv64. To build programs run above NEMU, refer to the AM project.

The main features of NEMU include

  • a small monitor with a simple debugger
    • single step
    • register/memory examination
    • expression evaluation without the support of symbols
    • watch point
    • differential testing with reference design (e.g. QEMU)
    • snapshot
  • CPU core with support of most common used instructions
    • x86
      • real mode is not supported
      • x87 floating point instructions are not supported
    • mips32
      • CP1 floating point instructions are not supported
    • riscv32
      • only RV32IM
    • riscv64
      • only RV64IM
  • memory
  • paging
    • TLB is optional (but necessary for mips32)
    • protection is not supported
  • interrupt and exception
    • protection is not supported
  • 5 devices
    • serial, timer, keyboard, VGA, audio
    • most of them are simplified and unprogrammable
  • 2 types of I/O
    • port-mapped I/O and memory-mapped I/O