|
Move CPU features into its own static library.
CPU features has outgrown its original x86-only roots and is used in
more than just the validators. Move it out of there as a second step to
cleaning up this code.
The eventual goal is for CPU features to have similar interfaces for all
CPUs, as well as for some features to work when host and target are
different (e.g. validate an ARM nexe with a certain ARM feature set on
an x86 box).
This CL doesn't change any code beyond:
- moving it;
- updating the includes/include guards;
- fixing silly build scripts.
R= bsy@chromium.org
Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=10590
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+195 lines, -1322 lines) |
Patch |
 |
M |
SConstruct
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
build/all.gyp
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
site_scons/site_tools/library_deps.py
|
View
|
|
5 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/arm/cpu_arm.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/arm/cpu_arm.c
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/arm/cpu_arm_features.h
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/mips/cpu_mips.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/mips/cpu_mips.c
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/mips/cpu_mips_features.h
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/x86/cpu_x86.h
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/x86/cpu_x86.c
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/x86/cpu_x86_test.c
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/arch/x86/cpu_xgetbv.S
|
View
|
1
2
3
4
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A |
src/trusted/cpu_features/build.scons
|
View
|
1
2
3
4
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/trusted/cpu_features/cpu_features.h
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
src/trusted/cpu_features/cpu_features.gyp
|
View
|
1
2
3
4
|
2 chunks |
+41 lines, -25 lines |
0 comments
|
Download
|
 |
M |
src/trusted/platform_qualify/arch/x86/nacl_cpuwhitelist.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/platform_qualify/arch/x86/nacl_cpuwhitelist_test.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/platform_qualify/arch/x86/platform_qual_test.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/platform_qualify/arch/x86/vcpuid.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/platform_qualify/build.scons
|
View
|
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/trusted/platform_qualify/platform_qualify.gyp
|
View
|
1
2
3
|
3 chunks |
+3 lines, -15 lines |
0 comments
|
Download
|
 |
M |
src/trusted/service_runtime/arch/x86_32/nacl_switch_to_app_32.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/service_runtime/arch/x86_32/sel_ldr_x86_32.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/service_runtime/arch/x86_32/sel_rt_32.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/service_runtime/arch/x86_64/nacl_switch_to_app_64.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/ncvalidate.h
|
View
|
|
1 chunk |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator/validation_cache_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/32/ncvalidate_verbose.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/64/ncvalidate.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/64/ncvalidate_verbose.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/build.scons
|
View
|
|
2 chunks |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator/x86/nacl_cpuid.h
|
View
|
|
1 chunk |
+0 lines, -154 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator/x86/nacl_cpuid.c
|
View
|
|
1 chunk |
+0 lines, -637 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator/x86/nacl_cpuid_test.c
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator/x86/nacl_xgetbv.S
|
View
|
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/ncval_reg_sfi/nc_cpu_checks.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter_internal.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/ncval_seg_sfi/ncvalidate_internaltypes.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator/x86/validate_x86.gyp
|
View
|
1
2
3
|
4 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator_arm/build.scons
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
src/trusted/validator_arm/cpuid_arm.h
|
View
|
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator_arm/cpuid_arm.c
|
View
|
|
1 chunk |
+0 lines, -87 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator_arm/cpuid_arm_features.h
|
View
|
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator_arm/ncval.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_arm/ncvalidate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_arm/validator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_arm/validator_arm.gyp
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_mips/build.scons
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
src/trusted/validator_mips/cpuid_mips.h
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator_mips/cpuid_mips.c
|
View
|
|
1 chunk |
+0 lines, -78 lines |
0 comments
|
Download
|
 |
D |
src/trusted/validator_mips/cpuid_mips_features.h
|
View
|
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator_mips/ncvalidate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_mips/validator_mips.gyp
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/trusted/validator_ragel/unreviewed/decoder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_ragel/unreviewed/validator_features_all.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_ragel/unreviewed/validator_features_validator.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/trusted/validator_x86/ncval.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/thread_capture/arch/x86_32/thread_capture_test_injection.c
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/coverage_helper.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|