summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/isa_specific.hh3
-rwxr-xr-xsrc/arch/mips/regfile/misc_regfile.cc2
-rw-r--r--src/arch/mips/regfile/misc_regfile.hh2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/isa_specific.hh b/src/arch/isa_specific.hh
index c241e5c62..c10ce7350 100644
--- a/src/arch/isa_specific.hh
+++ b/src/arch/isa_specific.hh
@@ -49,6 +49,7 @@
#define SPARC_ISA 42
#define MIPS_ISA 34000
#define X86_ISA 8086
+#define ARM_ISA 6
//These tell the preprocessor where to find the files of a particular
//ISA, and set the "TheISA" macro for use elsewhere.
@@ -60,6 +61,8 @@
#define TheISA MipsISA
#elif THE_ISA == X86_ISA
#define TheISA X86ISA
+#elif THE_ISA == ARM_ISA
+ #define TheISA ArmISA
#else
#error "THE_ISA not set"
#endif
diff --git a/src/arch/mips/regfile/misc_regfile.cc b/src/arch/mips/regfile/misc_regfile.cc
index 5e4c803fc..dc6ae0baf 100755
--- a/src/arch/mips/regfile/misc_regfile.cc
+++ b/src/arch/mips/regfile/misc_regfile.cc
@@ -577,7 +577,7 @@ MiscRegFile::CP0Event::process()
}
const char *
-MiscRegFile::CP0Event::description()
+MiscRegFile::CP0Event::description() const
{
return "Coprocessor-0 event";
}
diff --git a/src/arch/mips/regfile/misc_regfile.hh b/src/arch/mips/regfile/misc_regfile.hh
index a6f1a15c6..5f19579b3 100644
--- a/src/arch/mips/regfile/misc_regfile.hh
+++ b/src/arch/mips/regfile/misc_regfile.hh
@@ -139,7 +139,7 @@ namespace MipsISA
virtual void process();
/** Returns the description of this event. */
- const char *description();
+ const char *description() const;
/** Schedule This Event */
void scheduleEvent(int delay);