summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2017-05-15 15:13:19 -0500
committerBrandon Potter <Brandon.Potter@amd.com>2017-05-15 23:12:44 +0000
commitf44ddb94a6f72fe1ef04739817ee2102cee36c0f (patch)
treed0748d3a1eb2bf00b5b3b05063a4c50af065af73 /util
parentc8c406bc305a6bf52304d5f158f5d8def0dea51f (diff)
downloadgem5-f44ddb94a6f72fe1ef04739817ee2102cee36c0f.tar.xz
style: fix line lengths and include ordering
The style checker complains about line length and ordering for these files. This fix should make these two files kosher. Change-Id: I822a0518a98d9e379a543d2017e90c4e9666a58d Reviewed-on: https://gem5-review.googlesource.com/3380 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Diffstat (limited to 'util')
-rw-r--r--util/m5/m5.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/m5/m5.c b/util/m5/m5.c
index d39098c68..bd39041d3 100644
--- a/util/m5/m5.c
+++ b/util/m5/m5.c
@@ -43,6 +43,7 @@
#ifdef linux
#define _GNU_SOURCE
#include <sched.h>
+
#endif
#include <err.h>
@@ -348,7 +349,8 @@ struct MainFunc mainfuncs[] = {
{ "checkpoint", do_checkpoint, "[delay [period]]" },
{ "addsymbol", do_addsymbol, "<address> <symbol>" },
{ "loadsymbol", do_loadsymbol, "" },
- { "initparam", do_initparam, "[key] // key must be shorter than 16 chars" },
+ { "initparam", do_initparam, "[key] // key must be shorter"
+ " than 16 chars" },
{ "sw99param", do_sw99param, "" },
#ifdef linux
{ "pin", do_pin, "<cpu> <program> [args ...]" }
@@ -384,7 +386,8 @@ map_m5_mem()
exit(1);
}
- m5_mem = mmap(NULL, 0x10000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, M5OP_ADDR);
+ m5_mem = mmap(NULL, 0x10000, PROT_READ | PROT_WRITE, MAP_SHARED, fd,
+ M5OP_ADDR);
if (!m5_mem) {
perror("Can't mmap /dev/mem");
exit(1);