summaryrefslogtreecommitdiff
path: root/src/arch/mips/linux
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@gmail.com>2009-02-28 20:14:22 -0500
committerSteve Reinhardt <stever@gmail.com>2009-02-28 20:14:22 -0500
commit307905095caaa277e8ccbd58f095381d79b0c402 (patch)
tree3361750419c48e533b2f732834a46c92c962888d /src/arch/mips/linux
parent4523741c1c72ef954410ccb0aa7782b28be3441b (diff)
downloadgem5-307905095caaa277e8ccbd58f095381d79b0c402.tar.xz
Fix Num_Syscall_Descs check bug in non-x86 ISAs.
(See cset d35d2b28df38 for x86 fix.)
Diffstat (limited to 'src/arch/mips/linux')
-rw-r--r--src/arch/mips/linux/process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/mips/linux/process.cc b/src/arch/mips/linux/process.cc
index dc3b84ced..24e71305a 100644
--- a/src/arch/mips/linux/process.cc
+++ b/src/arch/mips/linux/process.cc
@@ -425,7 +425,7 @@ MipsLinuxProcess::getDesc(int callnum)
//MIPS32 syscalls are in the range of 4000 - 4999
int m5_sys_idx = callnum - 4000;
- if (m5_sys_idx < 0 || m5_sys_idx > Num_Syscall_Descs)
+ if (m5_sys_idx < 0 || m5_sys_idx >= Num_Syscall_Descs)
return NULL;
return &syscallDescs[m5_sys_idx];