aboutsummaryrefslogtreecommitdiff
path: root/.cargo/config
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-05-01 17:50:00 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-05-01 17:50:00 +0200
commit4754b66f72a8fbfd48e30ae0bd12a44d13a4ce10 (patch)
tree16551dd04684ff6e7bdc1107927faaafb6ff9bd9 /.cargo/config
downloadrv64i-linux-user-no-std-4754b66f72a8fbfd48e30ae0bd12a44d13a4ce10.tar.gz
rv64i-linux-user-no-std-4754b66f72a8fbfd48e30ae0bd12a44d13a4ce10.zip
initial commit
Build small no_std example for rv64i target. This code executes some linux syscalls as demo and therefore expects to be executed in rv64 linux.
Diffstat (limited to '.cargo/config')
-rw-r--r--.cargo/config9
1 files changed, 9 insertions, 0 deletions
diff --git a/.cargo/config b/.cargo/config
new file mode 100644
index 0000000..6588394
--- /dev/null
+++ b/.cargo/config
@@ -0,0 +1,9 @@
+[build]
+target = "riscv64imac-unknown-none-elf"
+
+[target.riscv64imac-unknown-none-elf]
+# Effectively build for rv64i.
+rustflags = ["-C", "target-feature=-m,-a,-c"]
+runner = "qemu-riscv64"
+#runner = "qemu-riscv64 -d in_asm"
+#runner = "qemu-riscv64 -strace"