Index: src/trusted/validator_ragel/validator.h |
diff --git a/src/trusted/validator_ragel/validator.h b/src/trusted/validator_ragel/validator.h |
index 633195e3641150820f5167810867339ad3ef7c4c..b74fc3a63e9a8a9ea1b8b6d45e243646e03793ad 100644 |
--- a/src/trusted/validator_ragel/validator.h |
+++ b/src/trusted/validator_ragel/validator.h |
@@ -64,7 +64,7 @@ enum validation_callback_info { |
/* Was restricted_register from previous instruction used in this one? */ |
RESTRICTED_REGISTER_USED = 0x00002000, |
/* Mask to select all validation errors. */ |
- VALIDATION_ERRORS_MASK = 0x01ffc000, |
+ VALIDATION_ERRORS_MASK = 0x05ffc000, |
/* Unrecognized instruction: fatal error, processing stops here. */ |
UNRECOGNIZED_INSTRUCTION = 0x00004000, |
/* Direct jump to unaligned address outside of given region. */ |
@@ -95,6 +95,8 @@ enum validation_callback_info { |
SP_MODIFIED = 0x01000000, |
/* Bad call alignment: "call" must end at the end of the bundle. */ |
BAD_CALL_ALIGNMENT = 0x02000000, |
+ /* The instruction should be either forbidden or rewritten. */ |
+ UNSUPPORTED_INSTRUCTION = 0x04000000, |
gdeepti
2015/07/28 03:08:58
Fix alignment to be consistent with the rest of th
ruiq
2015/07/28 04:58:55
Done.
|
/* Instruction is modifiable by nacl_dyncode_modify. */ |
MODIFIABLE_INSTRUCTION = 0x08000000, |
/* Special instruction. Uses different, non-standard validation rules. */ |