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

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed)

Created:
8 years, 8 months ago by petarj
Modified:
8 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://src.chromium.org/native_client/trunk/src/native_client/
Visibility:
Public.

Description

Initial patch for MIPS architecture that includes implementation of the validator, as well as the test code and script changes that enable building MIPS binutils and test executables. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2275 TEST=pnacl/build.sh misc-tools ; src/trusted/validator_mips/testdata/compile_tests.sh Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=8780

Patch Set 1 #

Patch Set 2 : Minor update to the patch set 1 #

Total comments: 6

Patch Set 3 : Update per initial code review. Nexes removed. #

Total comments: 28

Patch Set 4 : Changes after second code review. #

Total comments: 7

Patch Set 5 : Changes after third code review - minor change. #

Patch Set 6 : Minor update to the change. #

Patch Set 7 : Minor style changes. #

Total comments: 41

Patch Set 8 : New set of changes per previous code review. #

Patch Set 9 : Minor style update to validator tests. #

Patch Set 10 : Update to the validator error files. #

Patch Set 11 : Address set test to use GTest. #

Patch Set 12 : Rebase done and TODO comment added. #

Patch Set 13 : Minor change per one failure from trybots. #

Patch Set 14 : Minor change. #

Patch Set 15 : Minor change (2nd upload). #

Patch Set 16 : One char change. #

Patch Set 17 : Rebased patch, conflict resolved. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6806 lines, -21 lines) Patch
M SConstruct View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +23 lines, -8 lines 0 comments Download
M pnacl/build.sh View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +27 lines, -11 lines 0 comments Download
M site_scons/site_tools/naclsdk.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -2 lines 0 comments Download
M src/trusted/service_runtime/build.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/address_set.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +81 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/address_set.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +114 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/address_set_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +77 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/build.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +118 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/decode.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/dgen_core.py View 1 2 3 5 1 chunk +279 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/dgen_dump.py View 1 2 3 5 1 chunk +50 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/dgen_input.py View 1 2 3 5 1 chunk +127 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/dgen_opt.py View 1 2 3 5 1 chunk +76 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/dgen_output.py View 1 2 3 4 5 6 7 1 chunk +188 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/generate_decoder.py View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/dgen/optimize-table.py View 1 2 3 5 1 chunk +37 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/gen/decode.cc View 1 2 3 4 5 6 7 1 chunk +1305 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/inst_classes.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +438 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/mips-opt.table View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +318 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/mips32.table View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +826 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/model.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +161 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/model-inl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +69 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/ncval.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +121 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/compile_tests.sh View 1 2 3 5 1 chunk +38 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_forbidden_instructions.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +27 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_forbidden_instructions.err View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_invalid_dest.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_invalid_dest.err View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_jmp_imm.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +132 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_jmp_imm.err View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_jmp_reg.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +84 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_jmp_reg.err View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_loads.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +83 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_loads.err View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_read_only_regs.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +73 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_read_only_regs.err View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_sp_updates.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +95 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_sp_updates.err View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_stores.S View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +95 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/testdata/test_stores.err View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/validation-report.py View 1 2 3 4 5 6 7 1 chunk +124 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/validator.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +397 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/validator.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +492 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/validator_mips.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +88 lines, -0 lines 0 comments Download
A src/trusted/validator_mips/validator_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +438 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
petarj
Initial change for MIPS architecture. It includes implementation of the validator and test nexes.
8 years, 8 months ago (2012-04-04 20:44:15 UTC) #1
Mark Seaborn
Some initial comments. I haven't looked at the validator code yet. Please set BUG= and ...
8 years, 8 months ago (2012-04-04 21:04:22 UTC) #2
petarj
The patch has been changed in the way that: - style issues reported in the ...
8 years, 8 months ago (2012-04-12 00:35:21 UTC) #3
Brad Chen
Trying to get started on this. Are you able to do trybot runs? We will ...
8 years, 8 months ago (2012-04-12 00:51:34 UTC) #4
petarj
http://codereview.chromium.org/9979025/diff/5001/SConstruct File SConstruct (right): http://codereview.chromium.org/9979025/diff/5001/SConstruct#newcode1962 SConstruct:1962: if env.UsingEmulator(): On 2012/04/12 00:51:34, Brad Chen wrote: > ...
8 years, 8 months ago (2012-04-12 13:21:01 UTC) #5
(google.com) Derek Schuff
http://codereview.chromium.org/9979025/diff/5001/pnacl/build.sh File pnacl/build.sh (right): http://codereview.chromium.org/9979025/diff/5001/pnacl/build.sh#newcode1 pnacl/build.sh:1: #!/bin/bash The build.sh changes appear to be partly focused ...
8 years, 8 months ago (2012-04-12 16:46:39 UTC) #6
petarj
http://codereview.chromium.org/9979025/diff/5001/pnacl/build.sh File pnacl/build.sh (right): http://codereview.chromium.org/9979025/diff/5001/pnacl/build.sh#newcode1 pnacl/build.sh:1: #!/bin/bash On 2012/04/12 16:46:39, Derek Schuff wrote: > The ...
8 years, 8 months ago (2012-04-12 17:38:17 UTC) #7
(google.com) Derek Schuff
http://codereview.chromium.org/9979025/diff/5001/pnacl/build.sh File pnacl/build.sh (right): http://codereview.chromium.org/9979025/diff/5001/pnacl/build.sh#newcode1 pnacl/build.sh:1: #!/bin/bash true, but I don't see any validator tests ...
8 years, 8 months ago (2012-04-12 17:54:22 UTC) #8
Brad Chen
In general more smaller change lists would be appreciated. In particular, if you mostly isolate ...
8 years, 8 months ago (2012-04-12 17:55:01 UTC) #9
Brad Chen
Adding ncbray, mostly for python. Can you explain a little about the structure of the ...
8 years, 8 months ago (2012-04-13 00:50:52 UTC) #10
Nick Bray (chromium)
A quick pass over they Python code... http://codereview.chromium.org/9979025/diff/5001/SConstruct File SConstruct (right): http://codereview.chromium.org/9979025/diff/5001/SConstruct#newcode1021 SConstruct:1021: if env.Bit('target_mips32') ...
8 years, 8 months ago (2012-04-13 20:25:26 UTC) #11
petarj
Hi All, here is an updated patch. The changes include: - the patch has been ...
8 years, 8 months ago (2012-04-26 18:26:30 UTC) #12
Nick Bray (chromium)
Nothing but nits on the scripts. http://codereview.chromium.org/9979025/diff/19001/SConstruct File SConstruct (right): http://codereview.chromium.org/9979025/diff/19001/SConstruct#newcode2914 SConstruct:2914: pass Nit: are ...
8 years, 8 months ago (2012-04-27 19:41:33 UTC) #13
petarj
Here is a new patch set per Nick's code review. The changes are: - TODOs ...
8 years, 7 months ago (2012-04-30 19:16:36 UTC) #14
Nick Bray
Embarrassingly minor nits. (Don't bother uploading them, just wait for other reviews.) Consider me signed ...
8 years, 7 months ago (2012-05-01 17:34:06 UTC) #15
Brad Chen
Adding Robert for more PNaCl perspective. http://codereview.chromium.org/9979025/diff/27099/SConstruct File SConstruct (right): http://codereview.chromium.org/9979025/diff/27099/SConstruct#newcode1717 SConstruct:1717: # Disabled for ...
8 years, 7 months ago (2012-05-04 20:16:10 UTC) #16
robertm
http://codereview.chromium.org/9979025/diff/27099/pnacl/build.sh File pnacl/build.sh (right): http://codereview.chromium.org/9979025/diff/27099/pnacl/build.sh#newcode1834 pnacl/build.sh:1834: cp scons-out/opt-linux-x86-32-to-mips32/obj/src/trusted/validator_mips/\ On 2012/05/04 20:16:11, Brad Chen wrote: > ...
8 years, 7 months ago (2012-05-04 20:52:43 UTC) #17
Brad Chen
Here's some feedback on the validator implementation. I will probably want to do some of ...
8 years, 7 months ago (2012-05-04 22:49:50 UTC) #18
petarj
Hi All, thank you for the feedback. Before we make some changes, I would like ...
8 years, 7 months ago (2012-05-08 14:54:19 UTC) #19
Derek Schuff
http://codereview.chromium.org/9979025/diff/27099/src/trusted/validator_mips/address_set_test.cc File src/trusted/validator_mips/address_set_test.cc (right): http://codereview.chromium.org/9979025/diff/27099/src/trusted/validator_mips/address_set_test.cc#newcode19 src/trusted/validator_mips/address_set_test.cc:19: using nacl_mips_val::AddressSet; According to the style guide, 'using' is ...
8 years, 7 months ago (2012-05-08 15:59:15 UTC) #20
Nick Bray
> Hi All, > > thank you for the feedback. Before we make some changes, ...
8 years, 7 months ago (2012-05-08 17:36:53 UTC) #21
Brad Chen
Thank you for calling out these issues, and apologies about the style issues from copied ...
8 years, 7 months ago (2012-05-08 23:09:26 UTC) #22
petarj
New patch set has just been uploaded. Here is a brief overview of the changes ...
8 years, 7 months ago (2012-05-17 17:15:25 UTC) #23
Brad Chen
Thank you for making all these changes. It looks much better. There are two things ...
8 years, 6 months ago (2012-05-29 16:20:39 UTC) #24
petarj
On 2012/05/29 16:20:39, Brad Chen wrote: > What you will probably need to do is ...
8 years, 6 months ago (2012-05-29 16:39:25 UTC) #25
Karl
I've looked at the code, and it is fairly consistent with the ARM validator (other ...
8 years, 6 months ago (2012-05-29 19:48:33 UTC) #26
Brad Chen
On 2012/05/29 19:48:33, Karl wrote: > I've looked at the code, and it is fairly ...
8 years, 6 months ago (2012-05-29 19:53:12 UTC) #27
Derek Schuff
FYI petarj: you can commit this with the commit queue; to commit you can check ...
8 years, 6 months ago (2012-05-29 21:02:36 UTC) #28
Brad Chen
BTW please remember to add the TODO() comment about an external security review. On 2012/05/29 ...
8 years, 6 months ago (2012-05-29 21:09:01 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/9979025/77004
8 years, 6 months ago (2012-05-30 00:03:28 UTC) #30
petarj
An updated patch has just been uploaded. The patch has been rebased to commit b19ffd2741b22fac5f9e9398967ec9c0afafd448 ...
8 years, 6 months ago (2012-05-30 00:07:54 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/9979025/71009
8 years, 6 months ago (2012-05-30 00:30:09 UTC) #32
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 6 months ago (2012-05-30 01:54:37 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/9979025/76010
8 years, 6 months ago (2012-05-30 13:54:03 UTC) #34
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 6 months ago (2012-05-30 14:58:34 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/9979025/81010
8 years, 6 months ago (2012-05-30 18:03:32 UTC) #36
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 6 months ago (2012-05-31 00:16:39 UTC) #37
petarj
Derek, Brad, can anyone give me a hint what is wrong with nacl-mac10.6-newlib-coverage builder? Some ...
8 years, 6 months ago (2012-05-31 00:27:33 UTC) #38
Brad Chen
Sorry about the CQ difficulties. We are cleaning up a few things in the CQ ...
8 years, 6 months ago (2012-05-31 17:03:20 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/9979025/81010
8 years, 6 months ago (2012-05-31 17:24:09 UTC) #40
Brad Chen
The CQ should be operational again. I clicked the "Commit" box on the CL; hopefully ...
8 years, 6 months ago (2012-05-31 17:24:33 UTC) #41
commit-bot: I haz the power
Failed to apply patch for SConstruct: While running patch -p1 --forward --force; patching file SConstruct ...
8 years, 6 months ago (2012-06-01 03:53:54 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/9979025/82018
8 years, 6 months ago (2012-06-01 14:33:30 UTC) #43
commit-bot: I haz the power
8 years, 6 months ago (2012-06-01 15:59:33 UTC) #44
Change committed as 8780

Powered by Google App Engine
This is Rietveld 408576698