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

Unified Diff: src/mips/constants-mips.h

Issue 9429005: MIPS: Added support for Loongson architectures. (Closed)
Patch Set: Added loongson variant to the gyp system. Created 8 years, 10 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/mips/code-stubs-mips.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/constants-mips.h
diff --git a/src/mips/constants-mips.h b/src/mips/constants-mips.h
index d62a8901f0ad0a0ffe497a9b8e655759fc4a9b7a..4e710d2bad7e8f66a407b7c5101418fddf81a3d6 100644
--- a/src/mips/constants-mips.h
+++ b/src/mips/constants-mips.h
@@ -39,11 +39,16 @@
#define UNSUPPORTED_MIPS() v8::internal::PrintF("Unsupported instruction.\n")
+enum arch_variants {mips32r2, mips32r1, loongson};
Yang 2012/02/22 10:58:15 I strongly suggest using uppercase identifiers for
Kevin Millikin (Google) 2012/02/22 11:29:39 Good catch. The style recommendation is to capita
kalmard 2012/02/23 13:23:47 Done.
#ifdef _MIPS_ARCH_MIPS32R2
- #define mips32r2 1
+ static const arch_variants arch_variant = mips32r2;
+#elif _MIPS_ARCH_LOONGSON
+// The loongson flag refers to the LOONGSON architectures based on MIPS-III,
+// which predates (and is a subset of) the mips32r2 and r1 architectures.
+ static const arch_variants arch_variant = loongson;
#else
- #define mips32r2 0
+ static const arch_variants arch_variant = mips32r1;
#endif
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698