summaryrefslogtreecommitdiffstats
path: root/apps/plugins/sdl
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/plugins/sdl
parent448b97a888035765aff28bce7ad0178c4a16b0aa (diff)
downloadrockbox-7234de58ae69b4ecbd97efd77a61bf0cfc1737bf.tar.gz
rockbox-7234de58ae69b4ecbd97efd77a61bf0cfc1737bf.tar.bz2
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/plugins/sdl')
-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)
{
(void) param;
-#if defined(CPU_ARM) && !defined(SIMULATOR)
+#if defined(CPU_ARM) && !defined(SIMULATOR) && (ARM_ARCH >= 5)
/* (don't) set alignment trap. Will generate a data abort
* exception on ARM. */
set_cr(get_cr() | CR_A);