syscall_emul.cc (11380:3370547fa302) syscall_emul.cc (11383:5ac090acd180)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

319 result_buf.copyOut(tc->getMemProxy());
320 return 0;
321}
322
323
324SyscallReturn
325munmapFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)
326{
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

319 result_buf.copyOut(tc->getMemProxy());
320 return 0;
321}
322
323
324SyscallReturn
325munmapFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)
326{
327 // given that we don't really implement mmap, munmap is really easy
327 // With mmap more fully implemented, it might be worthwhile to bite
328 // the bullet and implement munmap. Should allow us to reuse simulated
329 // memory.
328 return 0;
329}
330
331
332const char *hostname = "m5.eecs.umich.edu";
333
334SyscallReturn
335gethostnameFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)

--- 622 unchanged lines hidden ---
330 return 0;
331}
332
333
334const char *hostname = "m5.eecs.umich.edu";
335
336SyscallReturn
337gethostnameFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)

--- 622 unchanged lines hidden ---