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

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

Issue 7799013: Intial Thumb2 Sandbox (naclrev 6680) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: asdsa Created 9 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 2009 The Native Client Authors. All rights reserved. 2 * Copyright 2011 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 * Copyright 2009, Google Inc. 5 * Copyright 2011, Google Inc.
6 */ 6 */
7 7
8 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H 8 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H
9 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H 9 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H
10 10
11 #include "native_client/src/trusted/validator_arm/model.h" 11 #include "native_client/src/trusted/validator_arm/model.h"
12 #include "native_client/src/trusted/validator_arm/inst_classes.h" 12 #include "native_client/src/trusted/validator_arm/inst_classes.h"
13 13
14 namespace nacl_arm_dec { 14 namespace nacl_arm_dec {
15 15
16 struct DecoderState; 16 struct DecoderState;
17 17
18 /* 18 /*
19 * Creates a new DecodeState instance that can be used to make calls to 19 * Creates a new DecodeState instance that can be used to make calls to
20 * decode. The caller owns the result and should delete it when appropriate, 20 * decode. The caller owns the result and should delete it when appropriate,
21 * by using delete_state below. 21 * by using delete_state below.
22 * thumb == 1 means we are decoding for thumb mode (thumb2 ISA specifically)
23 * The NaClApp struct tells us this (thumb == (address has LSB set to 1))
22 */ 24 */
23 const DecoderState *init_decode(); 25 const DecoderState *init_decode(uint8_t thumb);
24 26
25 /* 27 /*
26 * Frees any resources previously allocated by a call to init_decode. 28 * Frees any resources previously allocated by a call to init_decode.
27 */ 29 */
28 void delete_state(const DecoderState *); 30 void delete_state(const DecoderState *);
29 31
30 /* 32 /*
31 * Chooses a ClassDecoder that can answer questions about the given Instruction. 33 * Chooses a ClassDecoder that can answer questions about the given Instruction.
32 */ 34 */
33 const ClassDecoder &decode(const Instruction, const DecoderState *); 35 const ClassDecoder &decode(const Instruction, const DecoderState *);
34 36
35 37
36 } // namespace 38 } // namespace
37 39
38 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H 40 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698