Re: [m5-dev] changeset in m5: style: clean up the Packet stuff

2008-11-12 Thread nathan binkert
binkert Sent: Wednesday, November 12, 2008 4:42 PM To: Beckmann, Brad Cc: M5 Developer List Subject: Re: [m5-dev] changeset in m5: style: clean up the Packet stuff The VALID_DST change is correct, but I don't quite understand the allocate() change. You got rid of the assertion that there is valid

Re: [m5-dev] changeset in m5: style: clean up the Packet stuff

2008-11-12 Thread Beckmann, Brad
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of nathan binkert Sent: Wednesday, November 12, 2008 4:42 PM To: Beckmann, Brad Cc: M5 Developer List Subject: Re: [m5-dev] changeset in m5: style: clean up the Packet stuff The VALID_DST change is correct, but I don't quite

Re: [m5-dev] changeset in m5: style: clean up the Packet stuff

2008-11-12 Thread nathan binkert
Isn't the assertion backwards? Looks to me that if data is nonzero you're asserting that neither STATIC_DATA nor DYNAMIC_DATA is set. Don't you need a '!' in that assertion? Or change it to flags.any() or whatever the right operator is? You're right of course. It should be flags.any().

Re: [m5-dev] changeset in m5: style: clean up the Packet stuff

2008-11-10 Thread nathan binkert
This diff went way beyond style cleanup. Unfortunately, I didn't remember to update the commit message. One of the big things I did was get rid of all of the individual boolean variable flags and create a single flags variable. I also made all of the flag values static members of their classes

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread Steve Reinhardt
I thought that we had agreed to always use braces for control structures (for, if, while, etc.) since that makes it easier to add/remove lines without worrying about adding/removing braces too. I don't see it mentioned either way on the coding style page, but I know I've developed the habit of

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread Gabe Black
Also, please make these sorts of large scale formatting changes judiciously. There's a large collection of patches out there and it can be non-trivial to keep them applying correctly. Gabe Steve Reinhardt wrote: I thought that we had agreed to always use braces for control structures (for,

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread nathan binkert
I thought that we had agreed to always use braces for control structures (for, if, while, etc.) since that makes it easier to add/remove lines without worrying about adding/removing braces too. I don't see it mentioned either way on the coding style page, but I know I've developed the habit

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread Gabe Black
I don't really have a strong opinion either way; the #1 thing is that we should agree and get it down on the wiki page so that these style updates converge rather than oscillating. Agreed. What do you think about my above statement? If the whole expression fits in two lines, no

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread nathan binkert
I think that sounds fine. Does no braces required also mean no braces allowed, or is that something left up to the implementers discretion? I think it should be optional rather than forbidden. I'd agree with optional. ___ m5-dev mailing list

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread Steve Reinhardt
On Sat, Sep 27, 2008 at 9:35 PM, nathan binkert [EMAIL PROTECTED] wrote: I think that sounds fine. Does no braces required also mean no braces allowed, or is that something left up to the implementers discretion? I think it should be optional rather than forbidden. I'd agree with

Re: [m5-dev] changeset in m5: style: Make a style pass over the whole arch/al...

2008-09-27 Thread nathan binkert
Optional is OK with me, but in that case it's not something that should be fixed in a style update. True, my bad. I was just going really fast. Nate ___ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev

Re: [m5-dev] changeset in m5: style: These files didn't even come close to fo...

2008-09-26 Thread nathan binkert
yeah, I just did this quickly and I guess I missed switch in my regexp. I just committed fix. I've been toying around with an emacs script to go through and fix up some of the basics. It might be worth spending some effort to get a beautifier working. There's one that seems to still be getting

Re: [m5-dev] changeset in m5: style: Remove non-leading tabs everywhere they ...

2008-09-10 Thread gblack
I really hope this isn't going to make applying all my patches significantly harder... Gabe Quoting Ali Saidi [EMAIL PROTECTED]: changeset 3af77710f397 in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=3af77710f397 description: style: Remove non-leading tabs

Re: [m5-dev] changeset in m5: style: Remove non-leading tabs everywhere they ...

2008-09-10 Thread Ali Saidi
run expand on the patch files before trying to apply them... Everything should work fine. Ali On Sep 10, 2008, at 4:44 PM, [EMAIL PROTECTED] wrote: I really hope this isn't going to make applying all my patches significantly harder... Gabe Quoting Ali Saidi [EMAIL PROTECTED]:

Re: [m5-dev] changeset in m5: style: Remove non-leading tabs everywhere they ...

2008-09-10 Thread Ali Saidi
we've hacked on remote_gdb so much that preserving the tabs wouldn't really help. Ali On Sep 10, 2008, at 4:48 PM, [EMAIL PROTECTED] wrote: Also I notice some of these are changes to the *bsd copyrights on some files, for instance the remote_gdbs. We probably shouldn't change those.

Re: [m5-dev] changeset in m5: style

2008-08-12 Thread Steve Reinhardt
On the topic of style violations, I've seen an increasing number of 'if(' and 'for(' (with no space) creeping in (see below). Another thing I've seen that irritates me (but isn't officially banned by the style code ... yet ...) is C++-style comments with no space between the // and the comment:

Re: [m5-dev] changeset in m5: style

2008-08-12 Thread nathan binkert
On the topic of style violations, I've seen an increasing number of 'if(' and 'for(' (with no space) creeping in (see below). Another thing I've seen that irritates me (but isn't officially banned by the style code ... yet ...) is C++-style comments with no space between the // and the