]> git.sur5r.net Git - openocd/commitdiff
Zach Welch <zw@superlucidity.net> use ARM4_5_MODE_ANY instead of -1
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 19 Apr 2009 23:27:17 +0000 (23:27 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 19 Apr 2009 23:27:17 +0000 (23:27 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1474 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/armv4_5.h

index c2fde4a94c7c6605b199d66cffb51ead9139e044..b007b51a249becc95c5a83be14527bb2a9c32b01 100644 (file)
@@ -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;
        }
 };