util: Enable using different call types in the gem5 ops java wrapper.
authorGabe Black <gabe.black@gmail.com>
Fri, 23 Oct 2020 03:01:05 +0000 (20:01 -0700)
committerGabe Black <gabe.black@gmail.com>
Mon, 21 Dec 2020 23:47:22 +0000 (23:47 +0000)
commit48f7ee9244bbf317c3240de840a48bf3959b5353
tree401bdcb96f64e07918c2d8f18894a33982b39bf8
parent40deabcc48a8c5448ac310a4586127af50f60dcf
util: Enable using different call types in the gem5 ops java wrapper.

Convert the native implementation from C to C++. Also expand the test to
cycle through the different call mechanisms and call "sum" using each
one. This test should primarily be run on a gem5 native CPU which will
support all call types.

To access a particular call type, get an instance of the gem5.Ops class
from the callTypes static map, using the name of the call type you want
as the key. If you just want whatever the default is, use the additional
key "default".

Change-Id: If4ef812c9746fbf974e54cc9fe515e2b581e9939
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28182
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/README.md
util/m5/SConstruct
util/m5/src/SConscript
util/m5/src/java/gem5/Ops.java
util/m5/src/java/gem5/OpsTest.java
util/m5/src/java/gem5/ops.c [deleted file]
util/m5/src/java/gem5/ops.cc [new file with mode: 0644]