process.cc (5958:2d9737bf3c2f) process.cc (5981:5e7899a2692f)
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 411 unchanged lines hidden (view full) ---

420}
421
422SyscallDesc*
423MipsLinuxProcess::getDesc(int callnum)
424{
425 //MIPS32 syscalls are in the range of 4000 - 4999
426 int m5_sys_idx = callnum - 4000;
427
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 411 unchanged lines hidden (view full) ---

420}
421
422SyscallDesc*
423MipsLinuxProcess::getDesc(int callnum)
424{
425 //MIPS32 syscalls are in the range of 4000 - 4999
426 int m5_sys_idx = callnum - 4000;
427
428 if (m5_sys_idx < 0 || m5_sys_idx > Num_Syscall_Descs)
428 if (m5_sys_idx < 0 || m5_sys_idx >= Num_Syscall_Descs)
429 return NULL;
430
431 return &syscallDescs[m5_sys_idx];
432}
433
434
435
436
437
429 return NULL;
430
431 return &syscallDescs[m5_sys_idx];
432}
433
434
435
436
437