diff options
author | Steve Reinhardt <stever@gmail.com> | 2009-02-28 20:14:22 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2009-02-28 20:14:22 -0500 |
commit | 307905095caaa277e8ccbd58f095381d79b0c402 (patch) | |
tree | 3361750419c48e533b2f732834a46c92c962888d /src/arch/sparc/solaris | |
parent | 4523741c1c72ef954410ccb0aa7782b28be3441b (diff) | |
download | gem5-307905095caaa277e8ccbd58f095381d79b0c402.tar.xz |
Fix Num_Syscall_Descs check bug in non-x86 ISAs.
(See cset d35d2b28df38 for x86 fix.)
Diffstat (limited to 'src/arch/sparc/solaris')
-rw-r--r-- | src/arch/sparc/solaris/process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/sparc/solaris/process.cc b/src/arch/sparc/solaris/process.cc index 1a4940b59..22924736b 100644 --- a/src/arch/sparc/solaris/process.cc +++ b/src/arch/sparc/solaris/process.cc @@ -336,7 +336,7 @@ SparcSolarisProcess::SparcSolarisProcess(LiveProcessParams * params, SyscallDesc* SparcSolarisProcess::getDesc(int callnum) { - if (callnum < 0 || callnum > Num_Syscall_Descs) + if (callnum < 0 || callnum >= Num_Syscall_Descs) return NULL; return &syscallDescs[callnum]; } |