syscall_desc.cc (11849:762d3c8e55f4) syscall_desc.cc (11851:824055fe6b30)
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

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

37#include "config/the_isa.hh"
38#include "cpu/base.hh"
39#include "cpu/thread_context.hh"
40#include "sim/process.hh"
41#include "sim/syscall_debug_macros.hh"
42#include "sim/syscall_return.hh"
43
44void
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

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

37#include "config/the_isa.hh"
38#include "cpu/base.hh"
39#include "cpu/thread_context.hh"
40#include "sim/process.hh"
41#include "sim/syscall_debug_macros.hh"
42#include "sim/syscall_return.hh"
43
44void
45SyscallDesc::doSyscall(int callnum, LiveProcess *process, ThreadContext *tc)
45SyscallDesc::doSyscall(int callnum, Process *process, ThreadContext *tc)
46{
47 TheISA::IntReg arg[6] M5_VAR_USED;
48
49 /**
50 * Step through the first six parameters for the system call and
51 * retrieve their values. Note that index is incremented as a
52 * side-effect of the getSyscallArg method which is why the LHS
53 * needs the "-1".

--- 36 unchanged lines hidden ---
46{
47 TheISA::IntReg arg[6] M5_VAR_USED;
48
49 /**
50 * Step through the first six parameters for the system call and
51 * retrieve their values. Note that index is incremented as a
52 * side-effect of the getSyscallArg method which is why the LHS
53 * needs the "-1".

--- 36 unchanged lines hidden ---