Re: [m5-dev] [PATCH 1/7] hook up various x86 syscalls

2009-09-23 Thread Gabe Black
It looks like you've set a lot of these to ignoreFunc. Could you please walk me through why those system calls are ignorable? Also, with the stat64 syscall, did you verify that the alignment, etc, of the structure came out right in the simulated memory? Those have historically been very

Re: [m5-dev] [PATCH 2/7] move mmap start down

2009-09-23 Thread Gabe Black
This value was actually based off how Linux set up an actual process on a real machine. We have a tool that runs processes on a real machine and compares their execution with M5. I calibrated those constants to make the execution match exactly all the way through. That said, there might be

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Gabe Black
I never messed around with the ioctl stuff. What do other M5 devs think? Nate? Steve? Ali? Gabe Vince Weaver wrote: The current ioctl implementation is somewhat BSD-centric. The few IOCTL values being checked have no Linux equivelant. This changes things to just assume that most ioctl's

Re: [m5-dev] [PATCH 5/7] update open() flags

2009-09-23 Thread Gabe Black
This looks fine other than the fact that you didn't put comments in there like the existing flags. Those are for doxygen, I think. The mapping happens in the openFunc on these lines: // translate open flags for (int i = 0; i OS::NUM_OPEN_FLAGS; i++) { if (tgtFlags

[m5-dev] Cron m5t...@zizzer /z/m5/regression/do-regression quick

2009-09-23 Thread Cron Daemon
* build/ALPHA_SE/tests/fast/quick/00.hello/alpha/tru64/simple-timing passed. * build/ALPHA_SE/tests/fast/quick/20.eio-short/alpha/eio/simple-timing passed. * build/ALPHA_SE/tests/fast/quick/00.hello/alpha/linux/simple-atomic passed. *

Re: [m5-dev] [PATCH 7/7] sparc rlimit/rusage

2009-09-23 Thread Gabe Black
This generally looks ok, as long as the constant values check out. What was the binary trying to accomplish with setrlimit? Or in other words is it 100% safe (in that case at least) to ignore it? Gabe Vince Weaver wrote: Just a re-send of my sparc rlimit/rusage patch. diff -r 03c418c51f80

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 3/7] x86 ioctl changes

2009-09-23 Thread nathan binkert
In general, I'm fine with ignoring things and hoping it works. I think we should probably change the warn to warn_once. Similarly, some of the syscalls that we're ignoring should probably have a warning. Maybe unimplementedFunc should really just be warn_once plus return error? Any other

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 0/7] x86_se system call updates

2009-09-23 Thread Steve Reinhardt
On Tue, Sep 22, 2009 at 11:38 PM, Gabe Black gbl...@eecs.umich.edu wrote: I think there's been at least a superficial effort to factor out the common parts and template on, say, an ISA's definition of a particular data structure as necessary, but pulling the whole thing into a common spot for

[m5-dev] patch/bug tracking

2009-09-23 Thread nathan binkert
Hi everyone, It seems that we're getting more and more contributions from people and we need a better way to manage patches so they don't get dropped on the floor. The biggest problem is probably that a contributor often doesn't seem to hook up with a specific developer to get a given patch into

[m5-dev] changeset in m5: arch: nuke arch/isa_specific.hh and move stuff ...

2009-09-23 Thread Nathan Binkert
changeset f4de76601762 in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=f4de76601762 description: arch: nuke arch/isa_specific.hh and move stuff to generated config/the_isa.hh diffstat: 125 files changed, 208 insertions(+), 163 deletions(-) SConstruct

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

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Ali Saidi
We don't do anything with the ioctl's at the moment, so picking certain ones to do nothing with doesn't have much value. A warning is good as this and the other functions that we're ignoring could be hiding bugs and it would be nice to have the print statement to remind us it could be a problem.

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Steve Reinhardt
For TTY-related ioctls, returning ENOTTY is the right behavior, so there's no need to print a warning. To me it's a step backward to start printing a warning for something that we're actually handling correctly. If we're not properly identifying which ioctls are TTY-related, I'd rather try and

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Steve Reinhardt
I meant to add that changing the default behavior for unrecognized ioctls from a fatal error to a warning is fine by me though. Steve On Wed, Sep 23, 2009 at 9:13 AM, Steve Reinhardt ste...@gmail.com wrote: For TTY-related ioctls, returning ENOTTY is the right behavior, so there's no need to

Re: [m5-dev] [PATCH 2/7] move mmap start down

2009-09-23 Thread Vince Weaver
On Tue, 22 Sep 2009, Gabe Black wrote: This value was actually based off how Linux set up an actual process on a real machine. We have a tool that runs processes on a real machine and compares their execution with M5. I calibrated those constants to make the execution match exactly all the

Re: [m5-dev] [PATCH 0/7] x86_se system call updates

2009-09-23 Thread Vince Weaver
On Tue, 22 Sep 2009, Gabe Black wrote: We actually support SSE better than x87 as of fairly recently, so you might want to get gcc to use that for floating point to get things working. I have fleshing out x87 on my hypothetical to do list, but I don't know how long it'll take to get done.

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Vince Weaver
On Wed, 23 Sep 2009, nathan binkert wrote: In general, I'm fine with ignoring things and hoping it works. I think we should probably change the warn to warn_once. I think that's a good idea. Similarly, some of the syscalls that we're ignoring should probably have a warning. Maybe

Re: [m5-dev] [PATCH 2/7] move mmap start down

2009-09-23 Thread Gabriel Michael Black
Quoting Vince Weaver vi...@csl.cornell.edu: On Tue, 22 Sep 2009, Gabe Black wrote: This value was actually based off how Linux set up an actual process on a real machine. We have a tool that runs processes on a real machine and compares their execution with M5. I calibrated those constants to

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Vince Weaver
On Wed, 23 Sep 2009, Steve Reinhardt wrote: For TTY-related ioctls, returning ENOTTY is the right behavior, so there's no need to print a warning. To me it's a step backward to start printing a warning for something that we're actually handling correctly. If we're not properly identifying

Re: [m5-dev] [PATCH 0/7] x86_se system call updates

2009-09-23 Thread Steve Reinhardt
On Wed, Sep 23, 2009 at 2:49 PM, Vince Weaver vi...@csl.cornell.edu wrote: In most cases the Linux syscalls are fairly similar across ISA's.  The biggest outlier is Alpha, which unfortunately seems to be the original version that the rest of m5 cut-and-pasted from. Worse yet, the original

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Steve Reinhardt
On Wed, Sep 23, 2009 at 2:53 PM, Vince Weaver vi...@csl.cornell.edu wrote: On Wed, 23 Sep 2009, Steve Reinhardt wrote: For TTY-related ioctls, returning ENOTTY is the right behavior, so there's no need to print a warning.  To me it's a step backward to start printing a warning for something

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread nathan binkert
For TTY-related ioctls, returning ENOTTY is the right behavior, so there's no need to print a warning.  To me it's a step backward to start printing a warning for something that we're actually handling correctly.  If we're not properly identifying which ioctls are TTY-related, I'd rather try

Re: [m5-dev] [PATCH 3/7] x86 ioctl changes

2009-09-23 Thread Gabriel Michael Black
Quoting nathan binkert n...@binkert.org: For TTY-related ioctls, returning ENOTTY is the right behavior, so there's no need to print a warning.  To me it's a step backward to start printing a warning for something that we're actually handling correctly.  If we're not properly identifying

[m5-dev] changeset in m5: ruby: Disable all debug output by default

2009-09-23 Thread Nathan Binkert
changeset 60e8bbcae401 in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=60e8bbcae401 description: ruby: Disable all debug output by default diffstat: 1 file changed, 2 insertions(+), 2 deletions(-) src/mem/ruby/config/defaults.rb |4 ++-- diffs (21 lines): diff -r

[m5-dev] changeset in m5: isa_parser: Turn the ISA Parser into a subclass...

2009-09-23 Thread Nathan Binkert
changeset 9bc3e4611009 in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=9bc3e4611009 description: isa_parser: Turn the ISA Parser into a subclass of Grammar. This is to prepare for future cleanup where we allow SCons to create a separate grammar class for

[m5-dev] changeset in m5: ply grammar: Fixup Tokenizer class so you can g...

2009-09-23 Thread Nathan Binkert
changeset a886774d5ae1 in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=a886774d5ae1 description: ply grammar: Fixup Tokenizer class so you can get lexer arguments diffstat: 1 file changed, 4 insertions(+) src/python/m5/util/grammar.py |4 diffs (21 lines):