mem,scons: Changed assert to panic_if in MessageBuffer
authorBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 27 Oct 2020 22:47:01 +0000 (15:47 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Fri, 6 Nov 2020 01:40:00 +0000 (01:40 +0000)
commit432c54f05128b500d2fdcba1b93bf4d5686fa5de
tree65b3258c2778e0d30a069f3e7b475eed86c32ff3
parent46125206ec59f049fca7e72c1b0c550b138c8e19
mem,scons: Changed assert to panic_if in MessageBuffer

The variable 'm_allow_zero_latency' was only used in an assert message in
`src/mem/ruby/network/MessageBuffer.cc`. This assert is stripped when
compiling to gem5.fast, resulting in the compilation failing with an
unused variable error.

This assert is better as a panic_if, which will not be stripped out
during the .fast compilation.

Change-Id: I5de74982fa42b3291899ddcf73f7140079e1ec3f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36697
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
src/mem/ruby/network/MessageBuffer.cc