summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2019-08-04 14:57:43 -0400
committerFranklin Wei <franklin@rockbox.org>2019-08-04 20:59:30 +0200
commit7234de58ae69b4ecbd97efd77a61bf0cfc1737bf (patch)
tree3c44dd70caac175b77713758af63cebb165c8775 /apps
parent448b97a888035765aff28bce7ad0178c4a16b0aa (diff)
downloadrockbox-7234de58ae69b4ecbd97efd77a61bf0cfc1737bf.tar.gz
rockbox-7234de58ae69b4ecbd97efd77a61bf0cfc1737bf.zip
sdl: don't set alignment trap if < ARMv5
This should fix crashes on ARM7TDMI as reported by foolsh. Change-Id: I9aaf6196837d284a67a9e2b0edc72ecd644fd59f
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/sdl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/sdl/main.c b/apps/plugins/sdl/main.c
index cefc1565d0..69a7e71d11 100644
--- a/apps/plugins/sdl/main.c
+++ b/apps/plugins/sdl/main.c
@@ -173,7 +173,7 @@ enum plugin_status plugin_start(const void *param)
173{ 173{
174 (void) param; 174 (void) param;
175 175
176#if defined(CPU_ARM) && !defined(SIMULATOR) 176#if defined(CPU_ARM) && !defined(SIMULATOR) && (ARM_ARCH >= 5)
177 /* (don't) set alignment trap. Will generate a data abort 177 /* (don't) set alignment trap. Will generate a data abort
178 * exception on ARM. */ 178 * exception on ARM. */
179 set_cr(get_cr() | CR_A); 179 set_cr(get_cr() | CR_A);