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

Unified Diff: src/trusted/validator_ragel/dfa_validate_common.h

Issue 1234393005: A mechanism to identify/forbid/"rewrite" non-temporal instructions (and other) (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Fixing nits Created 5 years, 5 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_ragel/dfa_validate_common.h
diff --git a/src/trusted/validator_ragel/dfa_validate_common.h b/src/trusted/validator_ragel/dfa_validate_common.h
index 4835f2006ea7b4945f440b3be0a3b35ec5cc63a9..c033907629560c4d81e1b81204e8fdd246036fea 100644
--- a/src/trusted/validator_ragel/dfa_validate_common.h
+++ b/src/trusted/validator_ragel/dfa_validate_common.h
@@ -31,10 +31,16 @@
Bool NaClDfaProcessValidationError(const uint8_t *begin, const uint8_t *end,
uint32_t info, void *callback_data);
-Bool NaClDfaStubOutCPUUnsupportedInstruction(const uint8_t *begin,
- const uint8_t *end,
- uint32_t info,
- void *callback_data);
+struct StubOutCallbackData {
+ uint32_t flags;
+ int did_rewrite;
+};
+
+Bool NaClDfaStubOutUnsupportedInstruction(const uint8_t *begin,
+ const uint8_t *end,
+ uint32_t info,
+ void *callback_data);
+
struct CodeCopyCallbackData {
NaClCopyInstructionFunc copy_func;
/* Difference between addresses: dest - src. */

Powered by Google App Engine
This is Rietveld 408576698