For Verilator, rename +start to +dump-start to match VCS
This commit is contained in:
parent
2faf8ea239
commit
458d80cb18
@ -52,12 +52,12 @@ Mandatory arguments to long options are mandatory for short options too.\n\
|
|||||||
#if VM_TRACE
|
#if VM_TRACE
|
||||||
fputs("\
|
fputs("\
|
||||||
-v, --vcd=FILE, write vcd trace to FILE (or '-' for stdout)\n\
|
-v, --vcd=FILE, write vcd trace to FILE (or '-' for stdout)\n\
|
||||||
-x, --start=CYCLE start VCD tracing at CYCLE\n\
|
-x, --dump-start=CYCLE start VCD tracing at CYCLE\n\
|
||||||
+start\n\
|
+dump-start\n\
|
||||||
", stdout);
|
", stdout);
|
||||||
#else
|
#else
|
||||||
fputs("\
|
fputs("\
|
||||||
VCD options (e.g., -v, +start) require a debug-enabled emulator.\n\
|
VCD options (e.g., -v, +dump-start) require a debug-enabled emulator.\n\
|
||||||
Try `make debug`.\n\
|
Try `make debug`.\n\
|
||||||
", stdout);
|
", stdout);
|
||||||
#endif
|
#endif
|
||||||
@ -84,7 +84,7 @@ int main(int argc, char** argv)
|
|||||||
{"verbose", no_argument, 0, 'V' },
|
{"verbose", no_argument, 0, 'V' },
|
||||||
#if VM_TRACE
|
#if VM_TRACE
|
||||||
{"vcd", required_argument, 0, 'v' },
|
{"vcd", required_argument, 0, 'v' },
|
||||||
{"start", required_argument, 0, 'x' },
|
{"dump-start", required_argument, 0, 'x' },
|
||||||
#endif
|
#endif
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
@ -124,8 +124,8 @@ int main(int argc, char** argv)
|
|||||||
else if (arg.substr(0, 12) == "+max-cycles=")
|
else if (arg.substr(0, 12) == "+max-cycles=")
|
||||||
max_cycles = atoll(optarg+12);
|
max_cycles = atoll(optarg+12);
|
||||||
#if VM_TRACE
|
#if VM_TRACE
|
||||||
else if (arg.substr(0, 7) == "+start=")
|
else if (arg.substr(0, 12) == "+dump-start=")
|
||||||
start = atoll(optarg+7);
|
start = atoll(optarg+12);
|
||||||
#endif
|
#endif
|
||||||
else if (arg.substr(0, 12) == "+cycle-count")
|
else if (arg.substr(0, 12) == "+cycle-count")
|
||||||
print_cycles = true;
|
print_cycles = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user