From 5e888d44fe9a2ac958c54ef78b381889dd203d8e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 25 Mar 2020 17:49:05 -0700 Subject: [PATCH] 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 Tested-by: kokoro Reviewed-by: Bobby R. Bruce --- util/m5/src/m5.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/util/m5/src/m5.c b/util/m5/src/m5.c index eeaf621e9..de382d088 100644 --- a/util/m5/src/m5.c +++ b/util/m5/src/m5.c @@ -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, " [host filename] // " "Write a file to the host, " "optionally with a different " -- 2.30.2