IMHO, things like this shouldn't be comments, but should rather use
hack() or warn() to notify the user that something fishy might be
going on.

  Nate

On Mon, Mar 22, 2010 at 11:22 AM, Brad Beckmann <[email protected]> wrote:
> changeset b78b3a9e205f in /z/repo/m5
> details: http://repo.m5sim.org/m5?cmd=changeset;node=b78b3a9e205f
> description:
>        ruby: improved isReadWrite fix me comment
>
> diffstat:
>
> 1 file changed, 4 insertions(+), 2 deletions(-)
> src/mem/ruby/system/RubyPort.cc |    6 ++++--
>
> diffs (16 lines):
>
> diff -r 6bf327b128c6 -r b78b3a9e205f src/mem/ruby/system/RubyPort.cc
> --- a/src/mem/ruby/system/RubyPort.cc   Sun Mar 21 21:22:22 2010 -0700
> +++ b/src/mem/ruby/system/RubyPort.cc   Mon Mar 22 11:19:17 2010 -0700
> @@ -230,8 +230,10 @@
>             type = RubyRequestType_ST;
>         } else if (pkt->isReadWrite()) {
>             //
> -            // Fix me. Just because the packet is a read/write request does 
> not
> -            // necessary mean it is a read-modify-write atomic operation.
> +            // Fix me.  This conditional will never be executed because
> +            // isReadWrite() is just an OR of isRead() and isWrite().
> +            // Furthermore, just because the packet is a read/write request 
> does
> +            // not necessary mean it is a read-modify-write atomic operation.
>             //
>             type = RubyRequestType_RMW_Write;
>         } else {
> _______________________________________________
> m5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/m5-dev
>
>
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to