summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-19 23:27:17 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-19 23:27:17 +0000
commitd1ab0a9698dfb10475885b4eaf629237bb5251ad (patch)
treeff74bd1e464ab5cb05b3a23d18e19f7dbff339aa /src
parenta2c1cbe3e3aa7a8f9de92acc0189ee03be0fa66e (diff)
downloadopenocd+libswd-d1ab0a9698dfb10475885b4eaf629237bb5251ad.tar.gz
openocd+libswd-d1ab0a9698dfb10475885b4eaf629237bb5251ad.tar.bz2
openocd+libswd-d1ab0a9698dfb10475885b4eaf629237bb5251ad.tar.xz
openocd+libswd-d1ab0a9698dfb10475885b4eaf629237bb5251ad.zip
Zach Welch <zw@superlucidity.net> use ARM4_5_MODE_ANY instead of -1
git-svn-id: svn://svn.berlios.de/openocd/trunk@1474 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/armv4_5.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index c2fde4a9..b007b51a 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -133,7 +133,7 @@ static __inline enum armv4_5_mode armv4_5_number_to_mode(int number)
case 6: return ARMV4_5_MODE_SYS; break;
default:
LOG_ERROR("mode index out of bounds");
- return -1;
+ return ARMV4_5_MODE_ANY;
}
};