From: Nickhu <nickhu@andestech.com>
To: <greentime@andestech.com>, <linux-kernel@vger.kernel.org>,
<arnd@arndb.de>, <deanbo422@gmail.com>, <zong@andestech.com>,
<ebiederm@xmission.com>
Cc: Nickhu <nickhu@andestech.com>, <green.hu@gmail.com>
Subject: [PATCH 2/3] nds32: Add 'HAVE_EFFICIENT_UNALIGNED_ACCESS' config
Date: Thu, 18 Oct 2018 16:34:33 +0800 [thread overview]
Message-ID: <37e0f2b4530ba551a53a967ff4aa2e88aba2f486.1539654057.git.nickhu@andestech.com> (raw)
In-Reply-To: <cover.1539654056.git.nickhu@andestech.com>
According to my understanding, this config will optimize the code generate.
When there is an unaligned access happened, the load word instruction
still can be used if there is unaligned access support or the load byte
instruction is used. So this config need unaligned access support.
'HAVE_EFFICIENT_UNALIGNED_ACCESS' and 'HW_SUPPORT_UNALIGNMENT_ACCESS' are
default configs in nds32.
Signed-off-by: Nickhu <nickhu@andestech.com>
---
arch/nds32/Kconfig.cpu | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu
index b8c8984d1456..b8eecd0cde6b 100644
--- a/arch/nds32/Kconfig.cpu
+++ b/arch/nds32/Kconfig.cpu
@@ -111,8 +111,9 @@ config ALIGNMENT_TRAP
config HW_SUPPORT_UNALIGNMENT_ACCESS
bool "Kernel support unaligned access handling by hw"
+ select HAVE_EFFICIENT_UNALIGNED_ACCESS
depends on !ALIGNMENT_TRAP
- default n
+ default y
help
Andes processors load/store world/half-word instructions can access
unaligned memory locations without generating the Data Alignment
--
2.17.0
next prev parent reply other threads:[~2018-10-18 8:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-18 8:34 [PATCH 0/3] nds32: Unaligned access handler fix Nickhu
2018-10-18 8:34 ` [PATCH 1/3] nds32: Fix instruction simulator bug for unaligned access handler Nickhu
2018-10-18 8:34 ` Nickhu [this message]
2018-10-18 8:34 ` [PATCH 3/3] nds32: Add unaligned access in kernel space Nickhu
2018-10-19 9:25 ` [PATCH 0/3] nds32: Unaligned access handler fix Greentime Hu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37e0f2b4530ba551a53a967ff4aa2e88aba2f486.1539654057.git.nickhu@andestech.com \
--to=nickhu@andestech.com \
--cc=arnd@arndb.de \
--cc=deanbo422@gmail.com \
--cc=ebiederm@xmission.com \
--cc=green.hu@gmail.com \
--cc=greentime@andestech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zong@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®