Re: [m5-dev] [PATCH 4/7] implement time syscall

2009-09-23 Thread Timothy M Jones
I did send in a patch for this syscall, yes. I used writeBlob to send the value back to memory. Incidentally, I saw Vince needed ftruncate64 to be implemented. I also sent in a patch for that too. Do you want me to do anything with those patches or can they just be added as they are (do I

Re: [m5-dev] [PATCH 4/7] implement time syscall

2009-09-23 Thread nathan binkert
I did send in a patch for this syscall, yes. I used writeBlob to send the value back to memory. Incidentally, I saw Vince needed ftruncate64 to be implemented. I also sent in a patch for that too. Do you want me to do anything with those patches or can they just be added as they are (do I do

Re: [m5-dev] [PATCH 4/7] implement time syscall

2009-09-23 Thread Ali Saidi
Frequently on system calls that only return one thing the return code is placed in the return register and the value is placed in another register. We call these ReturnValueReg and SyscallSuccessReg. If there are only two return values sometimes SyscallPseudoReturnReg is used. Which is a long way

[m5-dev] [PATCH 4/7] implement time syscall

2009-09-21 Thread Vince Weaver
This implements the time syscall. It should probably somehow flush the changed value back out to the memory subsystem, I wasn't sure how to do that when it's an int (and not a structure) being written out. diff -r 1cc467793e1c src/arch/x86/linux/linux.hh --- a/src/arch/x86/linux/linux.hh