rvemu-for-book
Reference implementation for the book "Writing a RISC-V Emulator in Rust".
파일 탐색기
최종 버전 다운로드 (.zip)- main.rs
- add-addi
- add-addi.bin
- add-addi.s
- Cargo.toml
- Makefile
- bus.rs
- cpu.rs
- dram.rs
- main.rs
- Cargo.toml
- diff_01_02
- diff_02_03
- fib
- fib.bin
- fib.c
- fib.s
- Makefile
- bus.rs
- cpu.rs
- dram.rs
- main.rs
- Cargo.toml
- csr
- csr.bin
- csr.s
- Makefile
- rv64i.rs
- bus.rs
- clint.rs
- cpu.rs
- dram.rs
- isa.rs
- lib.rs
- main.rs
- mmu.rs
- plic.rs
- trap.rs
- uart.rs
- virtio.rs
- Cargo.toml
- xv6-fs.img
- xv6-kernel.bin
- bus.rs
- cpu.rs
- dram.rs
- main.rs
- Cargo.toml
- diff_03_04
- bus.rs
- cpu.rs
- dram.rs
- main.rs
- trap.rs
- Cargo.toml
- diff_04_05
- invalid.bin
- bus.rs
- clint.rs
- cpu.rs
- dram.rs
- main.rs
- plic.rs
- trap.rs
- Cargo.toml
- diff_05_06
- bus.rs
- clint.rs
- cpu.rs
- dram.rs
- main.rs
- plic.rs
- trap.rs
- uart.rs
- Cargo.toml
- diff_06_07
- echoback
- echoback.bin
- echoback.c
- echoback.s
- helloworld
- helloworld.bin
- helloworld.c
- helloworld.s
- Makefile
- bus.rs
- clint.rs
- cpu.rs
- dram.rs
- main.rs
- plic.rs
- trap.rs
- uart.rs
- Cargo.toml
- diff_07_08
- bus.rs
- clint.rs
- cpu.rs
- dram.rs
- main.rs
- plic.rs
- trap.rs
- uart.rs
- virtio.rs
- Cargo.toml
- diff_08_09
- bus.rs
- clint.rs
- cpu.rs
- dram.rs
- main.rs
- plic.rs
- trap.rs
- uart.rs
- virtio.rs
- Cargo.toml
- diff_09_10
- xv6-fs.img
- xv6-kernel.bin
- .gitignore
- build_test.sh
- demo.png
- LICENSE
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/d0iasm/rvemu-for-book
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd rvemu-for-book
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Rust
보통 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
$ cargo run ./xv6-kernel.bin ./xv6-fs.img
빌드 후 바로 실행까지 진행합니다.
cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
cd 01
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
