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

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

Issue 11876041: [MIPS] Add thread-pointer to data addressing register list. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 11 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_mips/ncvalidate.cc
diff --git a/src/trusted/validator_mips/ncvalidate.cc b/src/trusted/validator_mips/ncvalidate.cc
index 8696059ae7ea437a839c2e116bd063429152278a..e26ebd253e77359a5c82d96691283a0739c9c813 100644
--- a/src/trusted/validator_mips/ncvalidate.cc
+++ b/src/trusted/validator_mips/ncvalidate.cc
@@ -17,9 +17,7 @@
using nacl_mips_val::SfiValidator;
using nacl_mips_val::CodeSegment;
-using nacl_mips_dec::Register;
-using nacl_mips_dec::RegisterList;
-using nacl_mips_dec::kRegisterStack;
+using nacl_mips_dec::kRegListDataAddr;
Mark Seaborn 2013/01/15 16:51:36 Wouldn't it be better to use the fully-qualified n
using nacl_mips_dec::kRegListReserved;
using std::vector;
@@ -91,7 +89,7 @@ int NCValidateSegment(uint8_t *mbase, uint32_t vbase, size_t size,
1U * (1 << NACL_MAX_ADDR_BITS), // bytes of data space // keep in sync w/
Mark Seaborn 2013/01/15 16:51:36 Hmm, as an aside, this code is duplicated between
JF 2013/01/15 17:03:03 This code should stay, and ncval.cc should be dele
petarj 2013/01/22 22:57:30 I will clean it up in a separate change. So we do
// SConstruct: irt_compatible_rodata_addr
kRegListReserved, // read only register(s)
- RegisterList(kRegisterStack)); // data addressing register(s)
+ kRegListDataAddr); // data addressing register(s)
bool success = false;
vector<CodeSegment> segments;

Powered by Google App Engine
This is Rietveld 408576698