summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFiras Sammoura <fsammoura@google.com>2023-03-10 18:59:06 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-15 16:30:29 +0000
commit9a21e1e51a47b5adff47990e75e62661e9b33827 (patch)
treeb3dddc0f6888b6f0582eb4d4c08b79aae1d7e460 /core
parent888cbb55c3c1d1169bdf9f541b0fd31054ff1bc4 (diff)
downloadchrome-ec-9a21e1e51a47b5adff47990e75e62661e9b33827.tar.gz
ec: Enable unaligned access for cortex-m
Enable unaligned access for cortext-m and. Add a unit test to validate that unaligned access runs properly on both bloonchipper and dartmonkey. Add benchmarks to measure the speed gain between aligned and unaligned access. BRANCH=none BUG=b:239254184 TEST=test/run_device_tests.py -b dartmonkey -t unaligned_access TEST=test/run_device_tests.py -b bloonchipper -t unaligned_access Change-Id: I7d75433e6b7b33d7c82ad740dc85a8646d891c6a Signed-off-by: Firas Sammoura <fsammoura@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4327795 Reviewed-by: Bobby Casey <bobbycasey@google.com> Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cortex-m/cpu.c b/core/cortex-m/cpu.c
index 5a882bb532..adcdb4e1a3 100644
--- a/core/cortex-m/cpu.c
+++ b/core/cortex-m/cpu.c
@@ -15,8 +15,8 @@
void cpu_init(void)
{
- /* Catch divide by 0 and unaligned access */
- CPU_NVIC_CCR |= CPU_NVIC_CCR_DIV_0_TRAP | CPU_NVIC_CCR_UNALIGN_TRAP;
+ /* Catch divide by 0 */
+ CPU_NVIC_CCR |= CPU_NVIC_CCR_DIV_0_TRAP;
/* Enable reporting of memory faults, bus faults and usage faults */
CPU_NVIC_SHCSR |= CPU_NVIC_SHCSR_MEMFAULTENA |