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

Unified Diff: src/trusted/validator_mips/cpuid_mips.h

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebase (Saturday morning). Created 8 years, 3 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_mips/build.scons ('k') | src/trusted/validator_mips/ncvalidate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_mips/cpuid_mips.h
diff --git a/src/trusted/validator_mips/cpuid_mips.h b/src/trusted/validator_mips/cpuid_mips.h
new file mode 100644
index 0000000000000000000000000000000000000000..f6c1b5f2262870f2318f1400965dead59691e5fe
--- /dev/null
+++ b/src/trusted/validator_mips/cpuid_mips.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2012 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_
+#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_
+
+
+typedef struct {
+ /* Add a dummy field because a zero-sized structure causes skew between C and
+ * C++.
+ */
+ int bogus;
+} NaClCPUFeaturesMips;
+
+static INLINE void NaClGetCurrentCPUFeatures(
+ NaClCPUFeaturesMips *cpu_features) {
+ UNREFERENCED_PARAMETER(cpu_features);
+}
+
+static INLINE void NaClSetAllCPUFeatures(NaClCPUFeaturesMips *cpu_features) {
+ UNREFERENCED_PARAMETER(cpu_features);
+}
+
+static INLINE void NaClClearCPUFeatures(NaClCPUFeaturesMips *cpu_features) {
+ UNREFERENCED_PARAMETER(cpu_features);
+}
+
+static INLINE int NaClFixCPUFeatures(NaClCPUFeaturesMips *cpu_features) {
+ UNREFERENCED_PARAMETER(cpu_features);
+ return 1;
+}
+
+#endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_
« no previous file with comments | « src/trusted/validator_mips/build.scons ('k') | src/trusted/validator_mips/ncvalidate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698