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

Issue 883253003: Add the mips_dsp_rev build variable. (Closed)

Created:
5 years, 10 months ago by wtc
Modified:
5 years, 9 months ago
CC:
chromium-reviews, ljubomir.papuga, kjellander_chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the mips_dsp_rev, mips_float_abi, and mips_fpu_mode build variables. mips_dsp_rev specifies the MIPS DSP ASE (Application-Specific Extension) revision number. Possible values are 0 (unavailable), 1, and 2. Default to 0. mips_float_abi specifies whether or not MIPS floating-point coprocessor instructions should be used. Possible values are "hard" and "soft". Default to "hard". mips_fpu_mode specifies the width of MIPS32 floating-point registers. Possible values are "fp32", "fp64", and "fpxx". Default to "fp32". The companion webrtc CL is https://webrtc-codereview.appspot.com/39779004. R=brettw@chromium.org,kjellander@@chromium.org,petarj@mips.com BUG=446234 Committed: https://crrev.com/ff66006e62449071ab87ad01b025dac4a9029d06 Cr-Commit-Position: refs/heads/master@{#318524}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add the mips_float_abi and mips_fpu_mode build variables. #

Total comments: 21

Patch Set 3 : Make the changes suggested by Henrik and Brett #

Patch Set 4 : Rebase after the GN cpu_arch => current_cpu renaming #

Total comments: 8

Patch Set 5 : Remove the mips_arch_variant!="r6" check for mips_float_abi. #

Total comments: 7

Patch Set 6 : Use variable substitutions in cflags. Consolidate declare_args. #

Patch Set 7 : #

Patch Set 8 : Adjust if statement nesting #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -18 lines) Patch
M build/common.gypi View 1 2 3 4 5 7 chunks +51 lines, -17 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 2 comments Download
M build/config/mips.gni View 1 2 3 4 5 1 chunk +24 lines, -1 line 0 comments Download

Messages

Total messages: 27 (6 generated)
wtc
Please review. webrtc's build system already has a mips_dsp_rev build variable. So I just moved ...
5 years, 10 months ago (2015-02-03 22:49:47 UTC) #1
petarj
https://codereview.chromium.org/883253003/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/883253003/diff/1/build/common.gypi#newcode2302 build/common.gypi:2302: 'mips_fpu_mode%': 'fp32', On 2015/02/03 22:49:46, wtc wrote: > > ...
5 years, 10 months ago (2015-02-05 16:54:44 UTC) #2
wtc
Petar, Henrik: please review patch set 2, and the companion webrtc CL. I finally spent ...
5 years, 10 months ago (2015-02-20 01:58:56 UTC) #3
kjellander_chromium
https://codereview.chromium.org/883253003/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/883253003/diff/20001/build/common.gypi#newcode4045 build/common.gypi:4045: ['android_webview_build==0 and mips_arch_variant=="r6"', { I suggest having a single, ...
5 years, 10 months ago (2015-02-23 13:22:35 UTC) #5
brettw
https://codereview.chromium.org/883253003/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/883253003/diff/20001/build/common.gypi#newcode4056 build/common.gypi:4056: 'cflags': ['-mfp32'], cflags in GN and GYP apply to ...
5 years, 10 months ago (2015-02-23 18:51:36 UTC) #6
wtc
Brett, Henrik: thank you for the review! Please review patch set 4. I made all ...
5 years, 10 months ago (2015-02-23 20:15:51 UTC) #7
petarj
https://codereview.chromium.org/883253003/diff/60001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/883253003/diff/60001/build/common.gypi#newcode2293 build/common.gypi:2293: ['target_arch=="mipsel" and mips_arch_variant!="r6" and android_webview_build==0', { 'hard' should be ...
5 years, 10 months ago (2015-02-24 18:49:14 UTC) #8
wtc
Petar: thank you for the review. I made the changes you suggested in patch set ...
5 years, 10 months ago (2015-02-24 21:26:30 UTC) #9
kjellander_chromium
Thanks for taking the time to reduce the complexity on this, already complex, piece of ...
5 years, 10 months ago (2015-02-25 21:08:07 UTC) #10
petarj
lgtm https://codereview.chromium.org/883253003/diff/60001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/883253003/diff/60001/build/common.gypi#newcode2290 build/common.gypi:2290: ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_build==0', { On 2015/02/24 ...
5 years, 10 months ago (2015-02-26 01:35:43 UTC) #11
wtc
Please review patch set 8. I made all the changes that Henrik suggested. You can ...
5 years, 10 months ago (2015-02-27 05:57:19 UTC) #12
kjellander_chromium
Nice work! Now this stuff is almost readable ;) still lgtm
5 years, 10 months ago (2015-02-27 09:04:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883253003/140001
5 years, 9 months ago (2015-02-27 17:54:03 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/46170)
5 years, 9 months ago (2015-02-27 18:32:04 UTC) #18
wtc
Brett: please review this CL. I need the approval by someone with OWNERS status for ...
5 years, 9 months ago (2015-02-27 20:37:55 UTC) #20
brettw
lgtm
5 years, 9 months ago (2015-02-27 21:03:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883253003/140001
5 years, 9 months ago (2015-02-27 21:46:48 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 9 months ago (2015-02-27 21:58:17 UTC) #24
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ff66006e62449071ab87ad01b025dac4a9029d06 Cr-Commit-Position: refs/heads/master@{#318524}
5 years, 9 months ago (2015-02-27 21:59:10 UTC) #25
wtc
Petar: I have a question for you. https://codereview.chromium.org/883253003/diff/140001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/883253003/diff/140001/build/config/compiler/BUILD.gn#newcode299 build/config/compiler/BUILD.gn:299: cflags += ...
5 years, 9 months ago (2015-02-28 00:32:14 UTC) #26
petarj
5 years, 9 months ago (2015-02-28 02:09:10 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/883253003/diff/140001/build/config/compiler/B...
File build/config/compiler/BUILD.gn (right):

https://codereview.chromium.org/883253003/diff/140001/build/config/compiler/B...
build/config/compiler/BUILD.gn:299: cflags += [ "-m$mips_fpu_mode" ]
On 2015/02/28 00:32:14, wtc wrote:
> 
> Petar: should we use the -mfp32, -mfp64, -mfpxx flags only when mips_float_api
> is "hard"?
> 
> If so, I can write a follow-up CL to do that. Thanks.

Yes, these flags only make sense if FPU unit is used.

Powered by Google App Engine
This is Rietveld 408576698