| OLD | NEW |
| 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 */ | 22 */ |
| 23 const DecoderState *init_decode(); | 23 const DecoderState *init_decode(uint8_t thumb); |
| 24 | 24 |
| 25 /* | 25 /* |
| 26 * Frees any resources previously allocated by a call to init_decode. | 26 * Frees any resources previously allocated by a call to init_decode. |
| 27 */ | 27 */ |
| 28 void delete_state(const DecoderState *); | 28 void delete_state(const DecoderState *); |
| 29 | 29 |
| 30 /* | 30 /* |
| 31 * Chooses a ClassDecoder that can answer questions about the given Instruction. | 31 * Chooses a ClassDecoder that can answer questions about the given Instruction. |
| 32 */ | 32 */ |
| 33 const ClassDecoder &decode(const Instruction, const DecoderState *); | 33 const ClassDecoder &decode(const Instruction, const DecoderState *); |
| 34 | 34 |
| 35 | 35 |
| 36 } // namespace | 36 } // namespace |
| 37 | 37 |
| 38 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H | 38 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_DECODE_H |
| OLD | NEW |