util: Eliminate the sw99param m5 utility command.

This is a small additional layer on top of the initparam command and
just breaks the returned value into 12 bit chunks. It presumes that
there is some particular meaning to the default initparam value which
may or may not be true. It's not entirely clear what the 12 bit chunks
that this command returns are actually good for, and it's been around
long enough that there isn't really any good documentation about what
it's intended purpose was.

Change-Id: I21af0e0cf7501f47026a6dd31920d46cfccff167
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27232
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
This commit is contained in:
Gabe Black
2020-03-25 17:49:05 -07:00
parent 21eba2a6fa
commit 5e888d44fe

View File

@@ -283,21 +283,6 @@ do_initparam(int argc, char *argv[])
printf("%"PRIu64, val);
}
void
do_sw99param(int argc, char *argv[])
{
if (argc != 0)
usage();
uint64_t param = m5_init_param(0, 0);
// run-time, rampup-time, rampdown-time, warmup-time, connections
printf("%"PRId64" %"PRId64" %"PRId64" %"PRId64" %"PRId64,
(param >> 48) & 0xfff,
(param >> 36) & 0xfff, (param >> 24) & 0xfff,
(param >> 12) & 0xfff, (param >> 0) & 0xfff);
}
struct MainFunc
{
char *name;
@@ -340,8 +325,6 @@ struct MainFunc mainfuncs[] = {
"delay (default 0) reset the "
"stats, and then optionally "
"every period after" },
{ "sw99param", do_sw99param, "read the default initparam and "
"display it in 12 bit chunks"}
{ "writefile", do_write_file, "<filename> [host filename] // "
"Write a file to the host, "
"optionally with a different "