summaryrefslogtreecommitdiffstats
path: root/runtime/arch/instruction_set.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-01-15 19:34:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-15 19:34:26 +0000
commit0223a19fa4fc39ba89de2b87b03b98a5fd97778b (patch)
tree0d1fdc9eb33ba27ec5fcb784ac8fee794936d8ce /runtime/arch/instruction_set.cc
parent726078d229fdb2857f3d8794fa50783f571cb7a2 (diff)
parent57b34294758e9c00993913ebe43c7ee4698a5cc6 (diff)
downloadart-0223a19fa4fc39ba89de2b87b03b98a5fd97778b.tar.gz
art-0223a19fa4fc39ba89de2b87b03b98a5fd97778b.tar.bz2
art-0223a19fa4fc39ba89de2b87b03b98a5fd97778b.zip
Merge "ART: Allow to compile interpret-only mips64 files"
Diffstat (limited to 'runtime/arch/instruction_set.cc')
-rw-r--r--runtime/arch/instruction_set.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/arch/instruction_set.cc b/runtime/arch/instruction_set.cc
index 92fa727674..5ab461bc73 100644
--- a/runtime/arch/instruction_set.cc
+++ b/runtime/arch/instruction_set.cc
@@ -57,7 +57,7 @@ InstructionSet GetInstructionSetFromString(const char* isa_str) {
} else if (strcmp("mips", isa_str) == 0) {
return kMips;
} else if (strcmp("mips64", isa_str) == 0) {
- return kMips;
+ return kMips64;
}
return kNone;
@@ -76,6 +76,8 @@ size_t GetInstructionSetAlignment(InstructionSet isa) {
case kX86_64:
return kX86Alignment;
case kMips:
+ // Fall-through.
+ case kMips64:
return kMipsAlignment;
case kNone:
LOG(FATAL) << "ISA kNone does not have alignment.";
@@ -88,6 +90,7 @@ size_t GetInstructionSetAlignment(InstructionSet isa) {
static constexpr size_t kDefaultStackOverflowReservedBytes = 16 * KB;
static constexpr size_t kMipsStackOverflowReservedBytes = kDefaultStackOverflowReservedBytes;
+static constexpr size_t kMips64StackOverflowReservedBytes = kDefaultStackOverflowReservedBytes;
static constexpr size_t kArmStackOverflowReservedBytes = 8 * KB;
static constexpr size_t kArm64StackOverflowReservedBytes = 8 * KB;
@@ -106,6 +109,9 @@ size_t GetStackOverflowReservedBytes(InstructionSet isa) {
case kMips:
return kMipsStackOverflowReservedBytes;
+ case kMips64:
+ return kMips64StackOverflowReservedBytes;
+
case kX86:
return kX86StackOverflowReservedBytes;