Deleted Added
sdiff udiff text old ( 13571:a320800ceccf ) new ( 13572:14ddf44aaebc )
full compact
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2015 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

1526 if (result < 0)
1527 return -errno;
1528
1529 copyOutStatfsBuf<OS>(tc->getMemProxy(), bufPtr, &hostBuf);
1530
1531 return 0;
1532}
1533
1534
1535/// Target writev() handler.
1536template <class OS>
1537SyscallReturn
1538writevFunc(SyscallDesc *desc, int callnum, Process *p, ThreadContext *tc)
1539{
1540 int index = 0;
1541 int tgt_fd = p->getSyscallArg(tc, index);
1542

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

1560 hiov[i].iov_len);
1561 }
1562
1563 int result = writev(sim_fd, hiov, count);
1564
1565 for (size_t i = 0; i < count; ++i)
1566 delete [] (char *)hiov[i].iov_base;
1567
1568 if (result < 0)
1569 return -errno;
1570
1571 return result;
1572}
1573
1574/// Real mmap handler.
1575template <class OS>
1576SyscallReturn
1577mmapImpl(SyscallDesc *desc, int num, Process *p, ThreadContext *tc,
1578 bool is_mmap2)
1579{

--- 1062 unchanged lines hidden ---