base: Use M5_UNLIKELY for conditional panic, etc., macros.
authorGabe Black <gabeblack@google.com>
Fri, 18 Sep 2020 03:46:19 +0000 (20:46 -0700)
committerGabe Black <gabeblack@google.com>
Sun, 20 Sep 2020 01:03:31 +0000 (01:03 +0000)
commit89ffa84de61a084d8972d7ead7685430b4426c0e
treee7e430c04efc9a6671efc0160280948a9b706fcd
parent2f6a770ccf1b1b477cfa45253eedf57a53d58685
base: Use M5_UNLIKELY for conditional panic, etc., macros.

panic_if and fail_if should happen at most once in any given simulation,
and warn_if, etc., should still not happen most of the time.

Change-Id: Iaa6cb03c11b86d84f51cc4738efb8f203de4201c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34817
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/logging.hh