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

Issue 11194045: Change BKPT and UDF encodings on ARM. (Closed)

Created:
8 years, 2 months ago by JF
Modified:
8 years, 2 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Change BKPT and UDF encodings on ARM. This only includes ARM validator changes and runtime changes. I'll have to do LLVM and GCC changes separately. BUG=https://code.google.com/p/nativeclient/issues/detail?id=2963 and 446 R=mcgrathr@chromium.org,kschimpf@chromium.org,mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=10074

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixes proposed by mseaborn. I'll submit try jobs with them, and factor things out with #define tomo… #

Total comments: 1

Patch Set 3 : Factor out special BKPT/UDF encodings in a separate header file instead of repeating them in a few … #

Total comments: 3

Patch Set 4 : Fixes for comments by mseaborn. #

Patch Set 5 : Fix one test that was using bkpt #0x6666. #

Total comments: 4

Patch Set 6 : Clarify instruction comments. #

Patch Set 7 : Fix mseaborn comments. #

Patch Set 8 : Clarify comments. Fix unaligned_data_irt.nexe, it had a hard-coded BKPT #0x7777. #

Total comments: 2

Patch Set 9 : Comment update. #

Patch Set 10 : Rebase. #

Patch Set 11 : Update copyright. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -123 lines) Patch
A src/include/arm_sandbox.h View 1 2 3 4 5 6 7 8 1 chunk +70 lines, -0 lines 0 comments Download
M src/include/nacl_macros.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/trusted/debug_stub/abi.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M src/trusted/service_runtime/arch/arm/sel_ldr_arm.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/trusted/service_runtime/testdata/arm/unaligned_data.nexe View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M src/trusted/service_runtime/testdata/arm/unaligned_data_irt.nexe View 1 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M src/trusted/validator_arm/actual_classes.h View 1 chunk +7 lines, -7 lines 0 comments Download
M src/trusted/validator_arm/actual_classes.cc View 1 2 1 chunk +21 lines, -9 lines 0 comments Download
M src/trusted/validator_arm/armv7.table View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/validator_arm/baseline_classes.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -4 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode_media_instructions_tests.cc View 4 chunks +21 lines, -21 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode_named.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode_named_classes.h View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -16 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode_named_decoder.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M src/trusted/validator_arm/inst_classes_testers.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M src/trusted/validator_arm/inst_classes_testers.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M src/trusted/validator_arm/model.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M src/trusted/validator_arm/validator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M src/trusted/validator_arm/validator_huge_tests.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M src/trusted/validator_arm/validator_small_tests.cc View 1 2 7 chunks +49 lines, -23 lines 0 comments Download
M tests/debug_stub/debugger_test.c View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M tests/dynamic_code_loading/dynamic_load_test.c View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M tests/dynamic_code_loading/dyncode_demand_alloc_test.c View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M tests/dynamic_code_loading/templates_arm.S View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M tests/faulted_thread_queue/faultqueue_test_guest.c View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M tests/syscall_return_sandboxing/sandboxed_arm.S View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
JF
8 years, 2 months ago (2012-10-18 01:09:32 UTC) #1
Mark Seaborn
Filing an issue to track this would be useful. There are other places to convert: ...
8 years, 2 months ago (2012-10-18 01:21:39 UTC) #2
Please use jfb - chromium.org
There's issue 2963. On Wed, Oct 17, 2012 at 6:21 PM, <mseaborn@chromium.org> wrote: > Filing ...
8 years, 2 months ago (2012-10-18 01:26:20 UTC) #3
Mark Seaborn
On 17 October 2012 18:26, JF Bastien <jfb@google.com> wrote: > There's issue 2963. > OK. ...
8 years, 2 months ago (2012-10-18 01:32:13 UTC) #4
JF
On 2012/10/18 01:32:13, Mark Seaborn wrote: > On 17 October 2012 18:26, JF Bastien <mailto:jfb@google.com> ...
8 years, 2 months ago (2012-10-18 02:34:37 UTC) #5
JF
On 2012/10/18 01:21:39, Mark Seaborn wrote: > Filing an issue to track this would be ...
8 years, 2 months ago (2012-10-18 02:37:22 UTC) #6
Roland McGrath
https://codereview.chromium.org/11194045/diff/23/tests/dynamic_code_loading/dynamic_load_test.c File tests/dynamic_code_loading/dynamic_load_test.c (right): https://codereview.chromium.org/11194045/diff/23/tests/dynamic_code_loading/dynamic_load_test.c#newcode491 tests/dynamic_code_loading/dynamic_load_test.c:491: { 0xFF, 0xDE, 0xFE, 0xE7 }; /* 0xE7FEDEFF - ...
8 years, 2 months ago (2012-10-18 17:31:30 UTC) #7
JF
Updated as suggested, PTAL.
8 years, 2 months ago (2012-10-18 21:49:35 UTC) #8
Mark Seaborn
https://codereview.chromium.org/11194045/diff/28/src/include/arm_sandbox.h File src/include/arm_sandbox.h (right): https://codereview.chromium.org/11194045/diff/28/src/include/arm_sandbox.h#newcode7 src/include/arm_sandbox.h:7: /* @file We don't support Doxygen any more -- ...
8 years, 2 months ago (2012-10-18 22:05:30 UTC) #9
JF
On 2012/10/18 22:05:30, Mark Seaborn wrote: > https://codereview.chromium.org/11194045/diff/28/src/include/arm_sandbox.h > File src/include/arm_sandbox.h (right): > > https://codereview.chromium.org/11194045/diff/28/src/include/arm_sandbox.h#newcode7 ...
8 years, 2 months ago (2012-10-18 23:00:47 UTC) #10
Karl
For the code in src/trusted/validator_arm, LGTM.
8 years, 2 months ago (2012-10-19 17:52:16 UTC) #11
Mark Seaborn
LGTM for all except validator_arm http://codereview.chromium.org/11194045/diff/19003/src/include/arm_sandbox.h File src/include/arm_sandbox.h (right): http://codereview.chromium.org/11194045/diff/19003/src/include/arm_sandbox.h#newcode7 src/include/arm_sandbox.h:7: /* Minimal ARM sandbox ...
8 years, 2 months ago (2012-10-19 18:08:43 UTC) #12
JF
Fixed comments as discussed. Also fixed unaligned_data_irt.nexe
8 years, 2 months ago (2012-10-19 22:50:31 UTC) #13
Mark Seaborn
LGTM https://codereview.chromium.org/11194045/diff/19008/src/include/arm_sandbox.h File src/include/arm_sandbox.h (right): https://codereview.chromium.org/11194045/diff/19008/src/include/arm_sandbox.h#newcode32 src/include/arm_sandbox.h:32: * BREAKPOINT, HALT_FILL and ABORT_NOW are intended to ...
8 years, 2 months ago (2012-10-19 22:53:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/jfb@chromium.org/11194045/27036
8 years, 2 months ago (2012-10-19 22:56:19 UTC) #15
JF
Done, going through commit queue.
8 years, 2 months ago (2012-10-19 22:56:25 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-19 23:57:46 UTC) #17
Try job failure for 11194045-27036 (retry) on
nacl-lucid_64-newlib-arm_qemu-pnacl for steps "annotate, scons [arm]
[small_tests medium_tests large_tests] [], scons [arm] [small_tests
medium_tests] [pic no_pexe ], summary".
It's a second try, previously, steps "annotate, scons [arm] [small_tests
medium_tests large_tests] [], scons [arm] [small_tests medium_tests] [pic
no_pexe ], summary" failed.
http://build.chromium.org/p/tryserver.nacl/buildstatus?builder=nacl-lucid_64-...

Powered by Google App Engine
This is Rietveld 408576698