Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: src/trusted/service_runtime/sel_qualify.c

Issue 18861003: [MIPS] Remove NaClCheckDEP for MIPS (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/trusted/platform_qualify/build.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/src/trusted/service_runtime/sel_qualify.h" 7 #include "native_client/src/trusted/service_runtime/sel_qualify.h"
8 8
9 #include "native_client/src/trusted/platform_qualify/nacl_cpuwhitelist.h" 9 #include "native_client/src/trusted/platform_qualify/nacl_cpuwhitelist.h"
10 #include "native_client/src/trusted/platform_qualify/nacl_dep_qualify.h" 10 #include "native_client/src/trusted/platform_qualify/nacl_dep_qualify.h"
11 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h" 11 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
12 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm 12 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm
13 #include "native_client/src/trusted/platform_qualify/arch/arm/nacl_arm_qualify.h " 13 #include "native_client/src/trusted/platform_qualify/arch/arm/nacl_arm_qualify.h "
14 #endif 14 #endif
15 15
16 NaClErrorCode NaClRunSelQualificationTests(void) { 16 NaClErrorCode NaClRunSelQualificationTests(void) {
17 if (!NaClOsIsSupported()) { 17 if (!NaClOsIsSupported()) {
18 return LOAD_UNSUPPORTED_OS_PLATFORM; 18 return LOAD_UNSUPPORTED_OS_PLATFORM;
19 } 19 }
20 20
21 /* Mips does not support DEP and it does not need it, so skip it. */
22 #if NACL_ARCH(NACL_BUILD_ARCH) != NACL_mips
21 if (!NaClCheckDEP()) { 23 if (!NaClCheckDEP()) {
22 return LOAD_DEP_UNSUPPORTED; 24 return LOAD_DEP_UNSUPPORTED;
23 } 25 }
26 #endif
24 27
25 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 28 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86
26 if (NaCl_ThisCPUIsBlacklisted()) { 29 if (NaCl_ThisCPUIsBlacklisted()) {
27 return LOAD_UNSUPPORTED_CPU; 30 return LOAD_UNSUPPORTED_CPU;
28 } 31 }
29 #endif 32 #endif
30 33
31 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm 34 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm
32 if (!NaClQualifyFpu() || 35 if (!NaClQualifyFpu() ||
33 !NaClQualifySandboxInstrs() || 36 !NaClQualifySandboxInstrs() ||
34 !NaClQualifyUnaligned()) { 37 !NaClQualifyUnaligned()) {
35 return LOAD_UNSUPPORTED_CPU; 38 return LOAD_UNSUPPORTED_CPU;
36 } 39 }
37 #endif 40 #endif
38 41
39 return LOAD_OK; 42 return LOAD_OK;
40 } 43 }
OLDNEW
« no previous file with comments | « src/trusted/platform_qualify/build.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698