OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # MIPS arch variant. | 5 # MIPS arch variant. Possible values are: |
| 6 # For mipsel: |
| 7 # "r1" |
| 8 # "r2" |
| 9 # "r6" |
| 10 # For mips64el: |
| 11 # "r2" |
| 12 # "r6" |
6 if (current_cpu == "mipsel") { | 13 if (current_cpu == "mipsel") { |
7 declare_args() { | 14 declare_args() { |
8 mips_arch_variant = "r1" | 15 mips_arch_variant = "r1" |
9 } | 16 } |
10 } else if (current_cpu == "mips64el") { | 17 } else if (current_cpu == "mips64el") { |
11 if (is_android) { | 18 if (is_android) { |
12 declare_args() { | 19 declare_args() { |
13 mips_arch_variant = "r6" | 20 mips_arch_variant = "r6" |
14 } | 21 } |
15 } else { | 22 } else { |
16 declare_args() { | 23 declare_args() { |
17 mips_arch_variant = "r2" | 24 mips_arch_variant = "r2" |
18 } | 25 } |
19 } | 26 } |
20 } | 27 } |
| 28 |
| 29 if (current_cpu == "mipsel") { |
| 30 declare_args() { |
| 31 # MIPS DSP ASE revision. Possible values are: |
| 32 # 0: unavailable |
| 33 # 1: revision 1 |
| 34 # 2: revision 2 |
| 35 mips_dsp_rev = 0 |
| 36 |
| 37 # MIPS floating-point ABI. Possible values are: |
| 38 # "hard" |
| 39 # "soft" |
| 40 mips_float_abi = "hard" |
| 41 |
| 42 # MIPS32 floating-point register width. Possible values are: |
| 43 # "fp32" |
| 44 # "fp64" |
| 45 # "fpxx" |
| 46 mips_fpu_mode = "fp32" |
| 47 } |
| 48 } |
OLD | NEW |