1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 10 unchanged lines hidden (view full) --- 19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 * 28 * Authors: Nathan Binkert |
29 */ 30 31#include <inttypes.h> 32#include <stdio.h> 33#include <stdlib.h> 34#include <string.h> |
35 36#include "m5op.h" 37 38char *progname; 39 40void 41usage() 42{ --- 119 unchanged lines hidden (view full) --- 162 m5_dumpreset_stats(arg1, arg2); 163 return 0; 164 165 default: 166 usage(); 167 } 168 } 169 |
170 if (COMPARE("checkpoint")) { 171 switch (argc) { 172 case 4: 173 arg2 = strtoul(argv[3], NULL, 0); 174 case 3: 175 arg1 = strtoul(argv[2], NULL, 0); 176 case 2: 177 m5_checkpoint(arg1, arg2); 178 return 0; 179 180 default: 181 usage(); 182 } 183 184 return 0; 185 } 186 |
187 usage(); 188} |