util: Eliminate the sw99param m5 utility command.
authorGabe Black <gabeblack@google.com>
Thu, 26 Mar 2020 00:49:05 +0000 (17:49 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 28 Apr 2020 01:07:43 +0000 (01:07 +0000)
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>
util/m5/src/m5.c

index eeaf621e9bb07a8666bfd46fe9e11479ce48dbc7..de382d08860ce5dd328ec4563dc8aa45f3e5c992 100644 (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 "