Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RISC-V changes #235

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion patches/gcc/0001-Managarm-target.patch
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ index f808b61be..0654906f2 100644
;;
+riscv*-*-managarm*)
+ tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
+ md_unwind_header=riscv/linux-unwind.h
+ # md_unwind_header=riscv/linux-unwind.h
+ ;;
riscv*-*-freebsd*)
tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
Expand Down
23 changes: 23 additions & 0 deletions scripts/meson-clang-riscv64-managarm.cross-file
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[binaries]
c = 'clang'
cpp = 'clang++'
ar = 'riscv64-managarm-ar'
strip = 'riscv64-managarm-strip'
pkgconfig = 'riscv64-managarm-pkg-config'

[constants]
# common args that c and cxx need
args = ['-fdebug-default-version=4', '-target', 'riscv64-managarm', '--gcc-toolchain=_BUILD_ROOT_/tools/system-gcc']
cxx = args + [ '-fsized-deallocation' ]

[built-in options]
c_args = args
c_link_args = args
cpp_args = cxx
cpp_link_args = cxx

[host_machine]
system = 'managarm'
cpu_family = 'riscv64'
cpu = 'riscv64'
endian = 'little'
1 change: 1 addition & 0 deletions scripts/meson-riscv64-managarm.cross-file
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ pkgconfig = 'riscv64-managarm-pkg-config'
[host_machine]
system = 'managarm'
cpu_family = 'riscv64'
cpu = 'rv64imafcv'
endian = 'little'