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

Unified Diff: src/trusted/validator/x86/testing/enuminsts/nacl_tester.c

Issue 9861030: Modify enuminsts to be able to communicate matched instructions accross (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator/x86/testing/enuminsts/nacl_tester.c
===================================================================
--- src/trusted/validator/x86/testing/enuminsts/nacl_tester.c (revision 8119)
+++ src/trusted/validator/x86/testing/enuminsts/nacl_tester.c (working copy)
@@ -245,24 +245,7 @@
/* Prints out the disassembled instruction. */
static void PrintInst(NaClEnumerator* enumerator) {
- int i;
- uint8_t length = NaClInstLength(nacl_decoder._inst);
- if (enumerator->_print_opcode_bytes_only) {
- for (i = 0; i < length; ++i) {
- printf("%02x", enumerator->_itext[i]);
- }
- printf("\n");
- } else {
- if (enumerator->_print_enumerated_instruction) {
- for (i = 0; i < length; ++i) {
- printf("%02x ", enumerator->_itext[i]);
- }
- printf("#%s %s\n", GetInstMnemonic(enumerator),
- GetInstOperandsText(enumerator));
- } else {
- printf(" NaCl: %s", Disassemble(enumerator));
- }
- }
+ printf(" NaCl: %s", Disassemble(enumerator));
}
/* Returns the number of bytes in the disassembled instruction. */
@@ -303,8 +286,6 @@
/* Generates a decoder for the (sel_ldr) nacl validator. */
NaClEnumeratorDecoder* RegisterNaClDecoder() {
nacl_decoder._base._id_name = "nacl";
- nacl_decoder._base._legal_only = TRUE;
- nacl_decoder._base._print_only = FALSE;
nacl_decoder._base._parse_inst_fn = ParseInst;
nacl_decoder._base._inst_length_fn = InstLength;
nacl_decoder._base._print_inst_fn = PrintInst;

Powered by Google App Engine
This is Rietveld 408576698