summaryrefslogtreecommitdiff
path: root/ext/googletest
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-02-13 22:30:02 -0800
committerGabe Black <gabeblack@google.com>2019-02-21 22:34:15 +0000
commita0c0ab8c0776902945e03299e14fdca74404cf39 (patch)
tree6face98339ff7d23439eea1f866be0b72a086b19 /ext/googletest
parent53cbc6b9e3b90e5ca902a7da17b5d35f73f8f5d4 (diff)
downloadgem5-a0c0ab8c0776902945e03299e14fdca74404cf39.tar.xz
systemc: Handle exceptions "correctly" even if sc_main hasn't been run.
If sc_main hasn't run, for instance if there isn't an sc_main and gem5 is orchestrating the simulation directly, then exceptions shouldn't be thrown to the sc_main fiber since it isn't running and may not be able to run since sc_main may not even exist. Instead, we need to check whether it makes sense to throw to sc_main, and if not pass the exception directly to the report handler since there likely won't be anyone to catch it if we just throw it from the scheduler or into general purpose gem5. Since the name throwToScMain is no longer a complete description for what that function does, this change renames it to throwUp, since it will now throw exceptions up the stack, either to sc_main or to the conceptual top level by going directly to the report handler. Change-Id: Ibdc92c9cf213ec6aa15ad654862057b7bf2e1c8e Reviewed-on: https://gem5-review.googlesource.com/c/16442 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'ext/googletest')
0 files changed, 0 insertions, 0 deletions