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

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

Issue 1863433002: x86 validator: Implement rewriting "movntq" to "movq" on x86-64 (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/trusted/validator/validation_rewrite_test_data.S ('k') | tests/validator/rewrite_nontemporals.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_ragel/dfa_validate_common.c
diff --git a/src/trusted/validator_ragel/dfa_validate_common.c b/src/trusted/validator_ragel/dfa_validate_common.c
index 7bb63a584d6ece235f3f0eae07c1c86e7779ce13..7eb44653aaad750b72862e18df520896254ec6a9 100644
--- a/src/trusted/validator_ragel/dfa_validate_common.c
+++ b/src/trusted/validator_ragel/dfa_validate_common.c
@@ -92,6 +92,10 @@ static Bool RewriteNonTemporal(uint8_t *ptr, uint8_t *end, uint32_t info) {
if (size >= 3 && IsREXPrefix(ptr[0]) && ptr[1] == 0x0f) {
uint8_t opcode_byte2 = ptr[2];
switch (opcode_byte2) {
+ case 0xe7:
+ /* movntq => movq */
+ ptr[2] = 0x7f;
+ return TRUE;
case 0x2b:
/* movntps => movaps */
ptr[2] = 0x29;
« no previous file with comments | « src/trusted/validator/validation_rewrite_test_data.S ('k') | tests/validator/rewrite_nontemporals.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698