summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-06 15:32:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-06 15:32:40 +0000
commit5d7bfce333f0ef42400e9970adb3b144eb73bbc0 (patch)
treec6352e42ab757ecf524c1c366e7d05982623ae1d /c/src/exec/score/cpu
parent2000-12-06 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-5d7bfce333f0ef42400e9970adb3b144eb73bbc0.tar.bz2
2000-12-06 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: When mips ISA level is 1, registers in the context should be 32 not 64 bits.
Diffstat (limited to 'c/src/exec/score/cpu')
-rw-r--r--c/src/exec/score/cpu/mips/ChangeLog5
-rw-r--r--c/src/exec/score/cpu/mips/rtems/score/cpu.h16
2 files changed, 21 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/mips/ChangeLog b/c/src/exec/score/cpu/mips/ChangeLog
index 9edafc7635..84248074af 100644
--- a/c/src/exec/score/cpu/mips/ChangeLog
+++ b/c/src/exec/score/cpu/mips/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-06 Joel Sherrill <joel@OARcorp.com>
+
+ * rtems/score/cpu.h: When mips ISA level is 1, registers in the
+ context should be 32 not 64 bits.
+
2000-11-30 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.S: Changed "_CPU_Ccontext_switch_restore: typo to
diff --git a/c/src/exec/score/cpu/mips/rtems/score/cpu.h b/c/src/exec/score/cpu/mips/rtems/score/cpu.h
index 7527ddecdf..a12c4369c4 100644
--- a/c/src/exec/score/cpu/mips/rtems/score/cpu.h
+++ b/c/src/exec/score/cpu/mips/rtems/score/cpu.h
@@ -360,6 +360,21 @@ extern void mips_fatal_error ( int error );
/* WARNING: If this structure is modified, the constants in cpu.h must be updated. */
typedef struct {
+#if __mips == 1
+ unsigned32 s0;
+ unsigned32 s1;
+ unsigned32 s2;
+ unsigned32 s3;
+ unsigned32 s4;
+ unsigned32 s5;
+ unsigned32 s6;
+ unsigned32 s7;
+ unsigned32 sp;
+ unsigned32 fp;
+ unsigned32 ra;
+ unsigned32 c0_sr;
+ unsigned32 c0_epc;
+#else
unsigned64 s0;
unsigned64 s1;
unsigned64 s2;
@@ -373,6 +388,7 @@ typedef struct {
unsigned64 ra;
unsigned64 c0_sr;
unsigned64 c0_epc;
+#endif
} Context_Control;
/* WARNING: If this structure is modified, the constants in cpu.h must be updated. */