Skip to content

Some simple baremetal programming examples for riscv64 qemu

License

Notifications You must be signed in to change notification settings

Dav-11/baremetal_rv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baremetal RiscV Examples

Requirements

  • qemu-system-riscv64
  • riscv64-unknown-elf-*

MacOS

# qemu
brew install qemu

# gcc toolchain
brew tap riscv-software-src/riscv
brew install riscv-tools

Get Info from qemu

qemu-system-riscv64 -nographic -serial mon:stdio -machine virt

You can find the base address here:

Firmware Base             : 0x80000000
[...]
Domain0 Region04          : 0x0000000080000000-0x000000008003ffff M: (R,X) S/U: () # <---- See here has execution perm (X)

About

Some simple baremetal programming examples for riscv64 qemu

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published