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

Side by Side Diff: src/trusted/validator_arm/gen/arm32_decode_named.cc

Issue 11194045: Change BKPT and UDF encodings on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Clarify comments. Fix unaligned_data_irt.nexe, it had a hard-coded BKPT #0x7777. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The Native Client Authors. All rights reserved. 2 * Copyright 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 // DO NOT EDIT: GENERATED CODE 7 // DO NOT EDIT: GENERATED CODE
8 8
9 #ifndef NACL_TRUSTED_BUT_NOT_TCB 9 #ifndef NACL_TRUSTED_BUT_NOT_TCB
10 #error This file is not meant for use in the TCB 10 #error This file is not meant for use in the TCB
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 } 1146 }
1147 1147
1148 if ((inst.Bits() & 0x01F00000) == 0x01800000 /* op1(24:20)=11000 */ && 1148 if ((inst.Bits() & 0x01F00000) == 0x01800000 /* op1(24:20)=11000 */ &&
1149 (inst.Bits() & 0x000000E0) == 0x00000000 /* op2(7:5)=000 */ && 1149 (inst.Bits() & 0x000000E0) == 0x00000000 /* op2(7:5)=000 */ &&
1150 (inst.Bits() & 0x0000F000) == 0x0000F000 /* Rd(15:12)=1111 */) { 1150 (inst.Bits() & 0x0000F000) == 0x0000F000 /* Rd(15:12)=1111 */) {
1151 return Binary3RegisterOpAltA_Usad8_Rule_253_A1_P500_instance_; 1151 return Binary3RegisterOpAltA_Usad8_Rule_253_A1_P500_instance_;
1152 } 1152 }
1153 1153
1154 if ((inst.Bits() & 0x01F00000) == 0x01F00000 /* op1(24:20)=11111 */ && 1154 if ((inst.Bits() & 0x01F00000) == 0x01F00000 /* op1(24:20)=11111 */ &&
1155 (inst.Bits() & 0x000000E0) == 0x000000E0 /* op2(7:5)=111 */) { 1155 (inst.Bits() & 0x000000E0) == 0x000000E0 /* op2(7:5)=111 */) {
1156 return Roadblock_Udf_Rule_A1_instance_; 1156 return PermanentlyUndefined_Udf_Rule_A1_instance_;
1157 } 1157 }
1158 1158
1159 if ((inst.Bits() & 0x01E00000) == 0x01A00000 /* op1(24:20)=1101x */ && 1159 if ((inst.Bits() & 0x01E00000) == 0x01A00000 /* op1(24:20)=1101x */ &&
1160 (inst.Bits() & 0x00000060) == 0x00000040 /* op2(7:5)=x10 */) { 1160 (inst.Bits() & 0x00000060) == 0x00000040 /* op2(7:5)=x10 */) {
1161 return Binary2RegisterBitRangeNotRnIsPcBitfieldExtract_Sbfx_Rule_154_A1_P308 _instance_; 1161 return Binary2RegisterBitRangeNotRnIsPcBitfieldExtract_Sbfx_Rule_154_A1_P308 _instance_;
1162 } 1162 }
1163 1163
1164 if ((inst.Bits() & 0x01E00000) == 0x01C00000 /* op1(24:20)=1110x */ && 1164 if ((inst.Bits() & 0x01E00000) == 0x01C00000 /* op1(24:20)=1110x */ &&
1165 (inst.Bits() & 0x00000060) == 0x00000000 /* op2(7:5)=x00 */ && 1165 (inst.Bits() & 0x00000060) == 0x00000000 /* op2(7:5)=x00 */ &&
1166 (inst.Bits() & 0x0000000F) != 0x0000000F /* Rn(3:0)=~1111 */) { 1166 (inst.Bits() & 0x0000000F) != 0x0000000F /* Rn(3:0)=~1111 */) {
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 decode_named(const nacl_arm_dec::Instruction inst) const { 2955 decode_named(const nacl_arm_dec::Instruction inst) const {
2956 return decode_ARMv7(inst); 2956 return decode_ARMv7(inst);
2957 } 2957 }
2958 2958
2959 const nacl_arm_dec::ClassDecoder& NamedArm32DecoderState:: 2959 const nacl_arm_dec::ClassDecoder& NamedArm32DecoderState::
2960 decode(const nacl_arm_dec::Instruction inst) const { 2960 decode(const nacl_arm_dec::Instruction inst) const {
2961 return decode_named(inst).named_decoder(); 2961 return decode_named(inst).named_decoder();
2962 } 2962 }
2963 2963
2964 } // namespace nacl_arm_test 2964 } // namespace nacl_arm_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698