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

Side by Side Diff: src/trusted/validator_arm/inst_classes.h

Issue 9960043: Finish separation of testing from sel_ldr validation. Also, automate (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 8 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 (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // *more* bits to be clear to set Z. This is fine. 389 // *more* bits to be clear to set Z. This is fine.
390 virtual bool sets_Z_if_bits_clear(Instruction i, 390 virtual bool sets_Z_if_bits_clear(Instruction i,
391 Register r, 391 Register r,
392 uint32_t mask) const { 392 uint32_t mask) const {
393 UNREFERENCED_PARAMETER(i); 393 UNREFERENCED_PARAMETER(i);
394 UNREFERENCED_PARAMETER(r); 394 UNREFERENCED_PARAMETER(r);
395 UNREFERENCED_PARAMETER(mask); 395 UNREFERENCED_PARAMETER(mask);
396 return false; 396 return false;
397 } 397 }
398 398
399 // Returns a c-string containing the name of the class. Used for
400 // testing only.
401 virtual const char* name() const;
402
403 // Many instructions define control bits in bits 20-24. The useful bits 399 // Many instructions define control bits in bits 20-24. The useful bits
404 // are defined here. 400 // are defined here.
405 401
406 // True if U (updates flags register) flag is defined. 402 // True if U (updates flags register) flag is defined.
407 inline bool UpdatesFlagsRegister(const Instruction& i) const { 403 inline bool UpdatesFlagsRegister(const Instruction& i) const {
408 return i.bit(20); 404 return i.bit(20);
409 } 405 }
410 406
411 // True if W (does write) flag is defined. 407 // True if W (does write) flag is defined.
412 inline bool WritesFlag(const Instruction& i) const { 408 inline bool WritesFlag(const Instruction& i) const {
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 } 1680 }
1685 virtual int32_t branch_target_offset(Instruction i) const; 1681 virtual int32_t branch_target_offset(Instruction i) const;
1686 1682
1687 private: 1683 private:
1688 NACL_DISALLOW_COPY_AND_ASSIGN(Branch); 1684 NACL_DISALLOW_COPY_AND_ASSIGN(Branch);
1689 }; 1685 };
1690 1686
1691 } // namespace 1687 } // namespace
1692 1688
1693 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ 1689 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/generate_decoder.py ('k') | src/trusted/validator_arm/inst_classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698