m5.c (12001:a1fd8e5dc7a6) | m5.c (12002:3f51adda9470) |
---|---|
1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 237 unchanged lines hidden (view full) --- 246 if (argc != 2) 247 usage(); 248 249 uint64_t addr = strtoul(argv[0], NULL, 0); 250 char *symbol = argv[1]; 251 m5_addsymbol(addr, symbol); 252} 253 | 1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 237 unchanged lines hidden (view full) --- 246 if (argc != 2) 247 usage(); 248 249 uint64_t addr = strtoul(argv[0], NULL, 0); 250 char *symbol = argv[1]; 251 m5_addsymbol(addr, symbol); 252} 253 |
254 |
|
254void | 255void |
256do_loadsymbol(int argc, char *argv[]) 257{ 258 if (argc > 0) 259 usage(); 260 261 m5_loadsymbol(); 262} 263 264void |
|
255do_initparam(int argc, char *argv[]) 256{ 257 if (argc > 1) 258 usage(); 259 260 uint64_t key_str[2]; 261 parse_str_args_to_regs(argc, argv, key_str, 2); 262 uint64_t val = m5_initparam(key_str[0], key_str[1]); --- 53 unchanged lines hidden (view full) --- 316 { "resetstats", do_reset_stats, "[delay [period]]" }, 317 { "dumpstats", do_dump_stats, "[delay [period]]" }, 318 { "dumpresetstats", do_dump_reset_stats, "[delay [period]]" }, 319 { "readfile", do_read_file, "" }, 320 { "writefile", do_write_file, "<filename>" }, 321 { "execfile", do_exec_file, "" }, 322 { "checkpoint", do_checkpoint, "[delay [period]]" }, 323 { "addsymbol", do_addsymbol, "<address> <symbol>" }, | 265do_initparam(int argc, char *argv[]) 266{ 267 if (argc > 1) 268 usage(); 269 270 uint64_t key_str[2]; 271 parse_str_args_to_regs(argc, argv, key_str, 2); 272 uint64_t val = m5_initparam(key_str[0], key_str[1]); --- 53 unchanged lines hidden (view full) --- 326 { "resetstats", do_reset_stats, "[delay [period]]" }, 327 { "dumpstats", do_dump_stats, "[delay [period]]" }, 328 { "dumpresetstats", do_dump_reset_stats, "[delay [period]]" }, 329 { "readfile", do_read_file, "" }, 330 { "writefile", do_write_file, "<filename>" }, 331 { "execfile", do_exec_file, "" }, 332 { "checkpoint", do_checkpoint, "[delay [period]]" }, 333 { "addsymbol", do_addsymbol, "<address> <symbol>" }, |
334 { "loadsymbol", do_loadsymbol, "" }, |
|
324 { "initparam", do_initparam, "[key] // key must be shorter than 16 chars" }, 325 { "sw99param", do_sw99param, "" }, 326#ifdef linux 327 { "pin", do_pin, "<cpu> <program> [args ...]" } 328#endif 329}; 330int numfuncs = sizeof(mainfuncs) / sizeof(mainfuncs[0]); 331 --- 61 unchanged lines hidden --- | 335 { "initparam", do_initparam, "[key] // key must be shorter than 16 chars" }, 336 { "sw99param", do_sw99param, "" }, 337#ifdef linux 338 { "pin", do_pin, "<cpu> <program> [args ...]" } 339#endif 340}; 341int numfuncs = sizeof(mainfuncs) / sizeof(mainfuncs[0]); 342 --- 61 unchanged lines hidden --- |