util: Use a dispatch table to call ops in the m5 utility.
authorGabe Black <gabeblack@google.com>
Fri, 27 Mar 2020 00:04:29 +0000 (17:04 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 28 Apr 2020 01:07:43 +0000 (01:07 +0000)
commit6072c1ad281549d4d18050151ce9d5f674e96889
tree77530082a09db30668c304133b3938a8b89e5ae6
parent3e88a4aa011a1a6dec500ef3ddf763c3e1b43cf2
util: Use a dispatch table to call ops in the m5 utility.

This way different implementations can be substituted in depending on
how the low level ops should actually be triggered (inst, addr,
semihosting, (etc?)).

Change-Id: I7c6eab7d87cc973d0bc9c1889037a0f89ce057e8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27238
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
util/m5/src/dispatch_table.h [new file with mode: 0644]
util/m5/src/m5.c