1/* 2 * Copyright (c) 2016 Advanced Micro Devices, Inc. 3 * Copyright (c) 2003-2005 The Regents of The University of Michigan 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 --- 35 unchanged lines hidden (view full) --- 44#include "sim/process.hh" 45#include "sim/syscall_debug_macros.hh" 46#include "sim/syscall_return.hh" 47 48void 49SyscallDesc::doSyscall(int callnum, Process *process, ThreadContext *tc, 50 Fault *fault) 51{ |
52 RegVal arg[6] M5_VAR_USED; |
53 54 /** 55 * Step through the first six parameters for the system call and 56 * retrieve their values. Note that index is incremented as a 57 * side-effect of the getSyscallArg method. 58 */ 59 int index = 0; 60 for (int i = 0; i < 6; i++) --- 35 unchanged lines hidden --- |