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

Unified Diff: src/trusted/validator_mips/ncval.cc

Issue 11415031: [MIPS] Forbid $sp update at the end of the last bundle. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Presubmit errors have been fixed. Created 8 years, 1 month 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_mips/model.h ('k') | src/trusted/validator_mips/ncvalidate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_mips/ncval.cc
diff --git a/src/trusted/validator_mips/ncval.cc b/src/trusted/validator_mips/ncval.cc
index 82eb92c99d19371b83c2d7f09faaafbbe132b2c1..d46c2c621619d931f57ed40cea855a785ccbd547 100644
--- a/src/trusted/validator_mips/ncval.cc
+++ b/src/trusted/validator_mips/ncval.cc
@@ -19,6 +19,8 @@
using nacl_mips_val::SfiValidator;
using nacl_mips_val::CodeSegment;
+using nacl_mips_dec::RegisterList;
+using nacl_mips_dec::kRegisterStack;
using std::string;
using std::vector;
@@ -58,7 +60,7 @@ int Validate(const ncfile *ncf, bool use_zero_masks) {
kQuarterGig, // Code region size.
kOneGig, // Data region size.
nacl_mips_dec::kRegListReserved, // Read only registers.
- nacl_mips_dec::kRegisterStack); // Data addressing register ($sp).
+ RegisterList(kRegisterStack)); // Data addressing register ($sp).
if (use_zero_masks) {
validator.ChangeMasks(0, 0);
« no previous file with comments | « src/trusted/validator_mips/model.h ('k') | src/trusted/validator_mips/ncvalidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698