Date: Mon, 3 Sep 2018 14:43:17 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338445 - in head: share/mk stand sys/conf Message-ID: <201809031443.w83EhH4O087279@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Mon Sep 3 14:43:16 2018 New Revision: 338445 URL: https://svnweb.freebsd.org/changeset/base/338445 Log: Enable 'C'-compressed ISA extension. This was disabled recently due to lack of support in KDB disassembler and DTrace FBT provider. Support for 'C'-extension to both of these was added, so we can now enable 'C'-extension. This reduces size of the kernel important for low-end embedded devices, and saves cache footprint for high perfomance machines. Approved by: re (kib) Sponsored by: DARPA, AFRL Modified: head/share/mk/bsd.cpu.mk head/stand/defs.mk head/sys/conf/kern.mk Modified: head/share/mk/bsd.cpu.mk ============================================================================== --- head/share/mk/bsd.cpu.mk Mon Sep 3 14:34:09 2018 (r338444) +++ head/share/mk/bsd.cpu.mk Mon Sep 3 14:43:16 2018 (r338445) @@ -367,9 +367,9 @@ CFLAGS += -mcpu=8540 -Wa,-me500 -mspe=yes -mabi=spe -m .if ${MACHINE_CPUARCH} == "riscv" .if ${MACHINE_ARCH:Mriscv*sf} -CFLAGS += -march=rv64ima -mabi=lp64 +CFLAGS += -march=rv64imac -mabi=lp64 .else -CFLAGS += -march=rv64imafd -mabi=lp64d +CFLAGS += -march=rv64imafdc -mabi=lp64d .endif .endif Modified: head/stand/defs.mk ============================================================================== --- head/stand/defs.mk Mon Sep 3 14:34:09 2018 (r338444) +++ head/stand/defs.mk Mon Sep 3 14:43:16 2018 (r338445) @@ -108,7 +108,7 @@ CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD} .if ${MACHINE_CPUARCH} == "aarch64" CFLAGS+= -mgeneral-regs-only -fPIC .elif ${MACHINE_CPUARCH} == "riscv" -CFLAGS+= -march=rv64ima -mabi=lp64 +CFLAGS+= -march=rv64imac -mabi=lp64 .else CFLAGS+= -msoft-float .endif Modified: head/sys/conf/kern.mk ============================================================================== --- head/sys/conf/kern.mk Mon Sep 3 14:34:09 2018 (r338444) +++ head/sys/conf/kern.mk Mon Sep 3 14:43:16 2018 (r338445) @@ -131,7 +131,7 @@ INLINE_LIMIT?= 8000 .endif .if ${MACHINE_CPUARCH} == "riscv" -CFLAGS.gcc+= -mcmodel=medany -march=rv64imafd -mabi=lp64 +CFLAGS.gcc+= -mcmodel=medany -march=rv64imafdc -mabi=lp64 INLINE_LIMIT?= 8000 .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809031443.w83EhH4O087279>