search for: riscv64

Displaying 20 results from an estimated 75 matches for "riscv64".

Did you mean: riscv
2019 Jan 18
0
[klibc:master] Add RISC-V (RV64) port
...lative addressing to go wrong. gp-relative addressing is introduced by "relaxation" in the linker, so I've disabled that for now. Link: https://www.zytor.com/pipermail/klibc/2018-July/003997.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- .../arch/{arm64 => riscv64}/klibc/archconfig.h | 6 +-- .../arch/{mips64 => riscv64}/klibc/archsetjmp.h | 14 +++--- .../arch/{cris => riscv64}/klibc/archsignal.h | 2 +- .../arch/{arm64 => riscv64}/klibc/archstat.h | 0 usr/include/arch/riscv64/machine/asm.h | 26 +++++++++++ usr/kl...
2020 Aug 29
0
[klibc:riscv64-enable-relax] riscv64: Make linker relaxation work and enable it
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=a966c3a12ee8b921dc669647c1fe75b25f72e604 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 29 Aug 2020 21:59:24 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 29 Aug 2020 23:33:09 +0100 [klibc] riscv64: Make linker relaxation work and enable it RISC-V code generally needs two instructions to address static data, but up to 4K of static data in an executable can be addressed using a single instruction. The linker "relaxes" a two-instruction sequence to one instruction, assuming that the...
2020 Aug 29
0
[klibc:riscv64-enable-relax] riscv64: Make linker relaxation work and enable it
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=83fcb05804497482caab9a77451907f1a5a6a8e2 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 29 Aug 2020 21:59:24 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sun, 30 Aug 2020 00:48:29 +0100 [klibc] riscv64: Make linker relaxation work and enable it RISC-V code generally needs two instructions to address static data, but up to 4K of static data in an executable can be addressed using a single instruction. The linker "relaxes" a two-instruction sequence to one instruction, assuming that the...
2020 Apr 02
0
[vhost:vhost 22/22] riscv64-linux-ld: vdpa_sim.c:undefined reference to `vringh_getdesc_iotlb'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 38dd2ba72ece18ec8398c8ddd13cfb02870b0309 commit: 38dd2ba72ece18ec8398c8ddd13cfb02870b0309 [22/22] virtio/test: fix up after IOTLB changes config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 38dd2ba72ece18ec8398c8ddd13cfb02870b0309 # save the attached .config to linux build tree...
2019 Jan 05
0
Pull request: collected patches for klibc
...| 2 +- scripts/Kbuild.install | 10 +- scripts/Kbuild.klibc | 8 +- scripts/Makefile.clean | 8 +- usr/include/arch/mips/klibc/archsetjmp.h | 14 -- usr/include/arch/mips64/klibc/archsetjmp.h | 1 - usr/include/arch/riscv64/klibc/archconfig.h | 15 ++ usr/include/arch/riscv64/klibc/archsetjmp.h | 27 ++++ usr/include/arch/riscv64/klibc/archsignal.h | 14 ++ usr/include/arch/riscv64/klibc/archstat.h | 28 ++++ usr/include/arch/riscv64/machine/asm.h | 26 ++++ usr/include/arch/sparc/machine/asm.h | 1...
2023 Mar 05
0
[klibc:master] Add LoongArch64 port
...gt; CommitDate: Fri, 3 Mar 2023 21:13:27 +0100 [klibc] Add LoongArch64 port Add LoongArch64 support. I've cribbed most of this from the RISC-V and MIPS ports. Signed-off-by: Feiyang Chen <chenfeiyang at loongson.cn> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- .../{riscv64 => loongarch64}/klibc/archconfig.h | 2 +- .../{riscv64 => loongarch64}/klibc/archsetjmp.h | 11 +++-- .../arch/{ppc => loongarch64}/klibc/archsignal.h | 2 +- .../arch/{riscv64 => loongarch64}/machine/asm.h | 4 +- usr/klibc/SYSCALLS.def | 2 +...
2018 Jul 17
1
[PATCH klibc 1/2] rename, renameat: Use renameat2() system call
New architectures only define the renameat2() system call, which was added in Linux 3.15. Define rename() and renameat() as wrappers for it if necessary. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -59,7 +59,8 @@ klib-y += vsnprintf.o snprintf.o vsprint inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \
2017 May 12
2
FENV_ACCESS and floating point LibFunc calls
On 11 May 2017 at 18:30, Michael Clark via llvm-dev <llvm-dev at lists.llvm.org> wrote: > I note that on your bug that you have stated that the branch is faster than > the conditional move. Faster code is a side effect of the fix in this > particular case. On the contrary: the faster code is pretty much the only reason this can happen before the rest of the FENV support lands.
2016 Sep 14
5
[PATCH 1/2] filearch: Add RISC-V architecture.
--- src/filearch.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/filearch.c b/src/filearch.c index 5985b73..cbc8372 100644 --- a/src/filearch.c +++ b/src/filearch.c @@ -56,14 +56,16 @@ cleanup_magic_t_free (void *ptr) # endif COMPILE_REGEXP (re_file_elf, - "ELF.*(MSB|LSB).*(?:executable|shared object|relocatable),
2020 Aug 29
0
[klibc:riscv64-enable-relax] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED
...Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 29 Aug 2020 22:29:52 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 29 Aug 2020 22:53:10 +0100 [klibc] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED On some architectures (notably riscv64) we need a wrapper for the main function that is statically linked even when using a shared library. * Allow architectures to override KLIBCCRTSHARED (they should always append to it) * Change klcc to use the list of filenames in KLIBCCRTSHARED, rather than assuming it's just interp.o Sig...
2020 Mar 27
3
llvm-objdump cannot recognize mul&mulh RISC-V M Instructions
...-unknown-elf" -DLLVM_ENABLE_PROJECTS="clang;lld;libc" -DLLVM_TARGETS_TO_BUILD="RISCV" ../llvm ``` Instructions to compile and dump: ``` RISCV_GCC_OPTS ?= -mcmodel=medany -static -O3 -std=gnu99 -fno-common -fno-builtin -march=rv32im -mabi=ilp32 -DMB_ADDR=0x80FFFFC --target=riscv64-unknown-elf --sysroot=/home/llvm/workspace/riscv/riscv-tc-20200220/bin/riscv64-unknown-elf --gcc-toolchain=/home/llvm/workspace/riscv/riscv-tc-20200220 RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lm -lgcc -T /home/llvm/workspace/HRV_IDE/common/test.ld newlib_dir := /home/llvm/workspace/llvm...
2020 Mar 27
1
[PATCH v2 2/5] Kbuild: support clang's lld
...<sdf at google.com> Signed-off-by: Bill Wendling <morbo at google.com> --- Makefile | 3 +++ usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 2 +- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 2 +- 8 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c99b962fd2a3..52d7cd2cf791 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,9 @@ export NM := $(KLIBCROSS)nm expo...
2019 Jan 18
0
[klibc:master] Kbuild: Remove KLIBCKERNELOBJ variable
...ry/004031.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- Makefile | 2 -- scripts/Kbuild.klibc | 8 +++----- usr/klibc/arch/i386/MCONFIG | 3 --- usr/klibc/arch/ppc/MCONFIG | 3 --- usr/klibc/arch/ppc64/MCONFIG | 3 --- usr/klibc/arch/riscv64/MCONFIG | 2 -- usr/klibc/arch/x86_64/MCONFIG | 3 --- 7 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 4386135..a11d1e6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ export VERSION := $(shell cat $(srctree)/$(KLIBCSRC)/version) export KLIBCINC :=...
2016 Nov 09
0
[PATCH] filearch: Add s390 and s390x detection and tests.
...ns.ml b/generator/actions.ml index 91a1819..43de38b 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -798,6 +798,8 @@ to specify the QEMU interface emulation to use at run time." }; InitISOFS, Always, TestResultString ( [["file_architecture"; "/bin-riscv64-dynamic"]], "riscv64"), []; InitISOFS, Always, TestResultString ( + [["file_architecture"; "/bin-s390x-dynamic"]], "s390x"), []; + InitISOFS, Always, TestResultString ( [["file_architecture"; "/bin-sparc-dynamic...
2020 Jul 25
0
[klibc:master] Kbuild: support clang's lld
...o at google.com> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- Makefile | 3 +++ usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 5 +++-- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c99b962f..c8325154 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,9 @@ export NM := $(KLIBCROSS)nm export OBJCO...
2019 Jan 19
4
RFT: klibc 2.0.5
...l: fcntl, vfork fail: fcntl, vfork ppc/powerpc-linux-gnu: pass pass ppc/powerpc-linux-gnuspe: fail: all tests fail: all tests ppc64/powerpc64-linux-gnu: fail: fcntl pass ppc64/powerpc64le-linux-gnu: fail: fcntl pass riscv64/riscv64-linux-gnu: N/A pass s390x/s390x-linux-gnu: fail: fcntl pass sh/sh4-linux-gnu: pass pass sparc64/sparc64-linux-gnu: fail: all tests fail: select, sigint, 2c x86_64/x86_64-linux-gnu: fail: f...
2019 Jan 20
0
[klibc:master] Use -Ttext-segment to link shared library on all arches
...gt; --- usr/klibc/arch/alpha/MCONFIG | 2 +- usr/klibc/arch/arm/MCONFIG | 4 ++-- usr/klibc/arch/arm64/MCONFIG | 2 +- usr/klibc/arch/m68k/MCONFIG | 2 +- usr/klibc/arch/parisc/MCONFIG | 2 +- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/s390/MCONFIG | 2 +- usr/klibc/arch/sh/MCONFIG | 2 +- usr/klibc/arch/sparc/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/usr/klibc/arch/alpha/MCONFIG b/usr/klibc/arch/alpha/MCONFIG i...
2019 Jan 07
4
[PATCH klibc 0/4] Fix the KLIBCKERNEL{SRC,OBJ} mess
...f reinstalling them Makefile | 16 +++++++--------- scripts/Kbuild.install | 2 +- scripts/Kbuild.klibc | 8 +++----- usr/klibc/arch/i386/MCONFIG | 3 --- usr/klibc/arch/ppc/MCONFIG | 3 --- usr/klibc/arch/ppc64/MCONFIG | 3 --- usr/klibc/arch/riscv64/MCONFIG | 2 -- usr/klibc/arch/x86_64/MCONFIG | 3 --- 8 files changed, 11 insertions(+), 29 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://www.zyt...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
...ash/output.c | 12 ++++++------ usr/kinit/initrd.c | 2 +- usr/kinit/ramdisk_load.c | 2 +- usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 2 +- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 14 +++++++++++--- 15 files changed, 55 insertions(+), 25 deletions(-) -- 2.26.0.rc2.310.g2932bb562d-goog
2020 Jul 25
0
[klibc:master] arch: Explicitly disable or enable executable stacks
...++ usr/klibc/arch/ia64/MCONFIG | 3 +++ usr/klibc/arch/m68k/MCONFIG | 4 ++++ usr/klibc/arch/mips/MCONFIG | 3 +++ usr/klibc/arch/mips64/MCONFIG | 3 +++ usr/klibc/arch/parisc/MCONFIG | 3 +++ usr/klibc/arch/ppc/MCONFIG | 3 +++ usr/klibc/arch/ppc64/MCONFIG | 3 +++ usr/klibc/arch/riscv64/MCONFIG | 3 +++ usr/klibc/arch/s390/MCONFIG | 4 ++++ usr/klibc/arch/sh/MCONFIG | 3 +++ usr/klibc/arch/sparc/MCONFIG | 4 ++++ usr/klibc/arch/sparc64/MCONFIG | 3 +++ usr/klibc/arch/x86_64/MCONFIG | 3 +++ 17 files changed, 55 insertions(+) diff --git a/usr/klibc/arch/alpha/MCONFIG b/...