mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 03:35:42 +07:00
7655146883
As of today we enable unaligned access unconditionally on ARCv2. Do this under a Kconfig option to allow disable it for test, benchmarking etc. Also while at it - Select HAVE_EFFICIENT_UNALIGNED_ACCESS - Although gcc defaults to unaligned access (since GNU 2018.03), add the right toggles for enabling or disabling as appropriate - update bootlog to prints both HW feature status (exists, enabled/disabled) and SW status (used / not used). - wire up the relaxed memcpy for unaligned access Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> [vgupta: squashed patches, handle gcc -mno-unaligned-access quick]
18 lines
588 B
Makefile
18 lines
588 B
Makefile
#
|
|
# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
|
|
lib-y := strchr-700.o strcpy-700.o strlen.o memcmp.o
|
|
|
|
lib-$(CONFIG_ISA_ARCOMPACT) += memcpy-700.o memset.o strcmp.o
|
|
lib-$(CONFIG_ISA_ARCV2) += memset-archs.o strcmp-archs.o
|
|
|
|
ifdef CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS
|
|
lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs-unaligned.o
|
|
else
|
|
lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs.o
|
|
endif
|