summaryrefslogtreecommitdiff
path: root/util/m5/m5.c
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-02-24 22:05:01 -0500
committerAli Saidi <saidi@eecs.umich.edu>2007-02-24 22:05:01 -0500
commitcf0e202cbad9823bdd3361164f4b2ee41c4c1501 (patch)
tree2aaf194ba788e1a370970c8bb1e4c80f29d8cee6 /util/m5/m5.c
parentf01f8f1be6a536580371428aa3e8e654d97fb868 (diff)
downloadgem5-cf0e202cbad9823bdd3361164f4b2ee41c4c1501.tar.xz
make m5 readfile work on solaris... we can have a solaris regression soon!
src/arch/sparc/isa/decoder.isa: add readfile and break to sparc decoder src/arch/sparc/isa/operands.isa: fix O0-O5 operands registers util/m5/Makefile.sparc: Make sparc makefile compile a 64bit binary util/m5/m5.c: readfile was in here twice, once will be sufficient I think util/m5/m5op_sparc.S: implement readfile and debugbreak --HG-- extra : convert_revision : 139b3f480ee6342b37b5642e072c8486d91a3944
Diffstat (limited to 'util/m5/m5.c')
-rw-r--r--util/m5/m5.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/util/m5/m5.c b/util/m5/m5.c
index 190289f06..b103796a8 100644
--- a/util/m5/m5.c
+++ b/util/m5/m5.c
@@ -186,21 +186,5 @@ main(int argc, char *argv[])
m5_loadsymbol(arg1);
return 0;
}
- if (COMPARE("readfile")) {
- char buf[256*1024];
- int offset = 0;
- int len;
-
- if (argc != 2)
- usage();
-
- while ((len = m5_readfile(buf, sizeof(buf), offset)) > 0) {
- write(STDOUT_FILENO, buf, len);
- offset += len;
- }
-
- return 0;
- }
-
usage();
}