sim: Reintroduce the ignoreWarnOnceFunc syscall handler.
authorGabe Black <gabeblack@google.com>
Fri, 22 Nov 2019 23:59:07 +0000 (15:59 -0800)
committerGabe Black <gabeblack@google.com>
Tue, 10 Dec 2019 23:58:14 +0000 (23:58 +0000)
commit771af751a2f96269dd66f6ec1792364705cf8329
tree31dbafd4b0cbcc28dc3794f78b23c9acc87a083b
parenta33d20ccafdca5338dbdad0659c754ea065e2bfc
sim: Reintroduce the ignoreWarnOnceFunc syscall handler.

Instead of just using warn_once, we'll gate each warning on a bool
which is associated with the syscall desc pointer. To avoid having to
keep warn once bookkeeping in every syscall desc, we put it in a map
which is looked up at runtime.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-187

Change-Id: I1dcce48de91b8a635f9f3df3bfc0ed6ba1291c4f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23168
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh