From 458d80cb189eca90dd9ef7f79c7f22525d223d27 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 31 Mar 2017 11:38:29 -0700 Subject: [PATCH] For Verilator, rename +start to +dump-start to match VCS --- csrc/emulator.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csrc/emulator.cc b/csrc/emulator.cc index 2c8bea71..04c4fedb 100644 --- a/csrc/emulator.cc +++ b/csrc/emulator.cc @@ -52,12 +52,12 @@ Mandatory arguments to long options are mandatory for short options too.\n\ #if VM_TRACE fputs("\ -v, --vcd=FILE, write vcd trace to FILE (or '-' for stdout)\n\ - -x, --start=CYCLE start VCD tracing at CYCLE\n\ - +start\n\ + -x, --dump-start=CYCLE start VCD tracing at CYCLE\n\ + +dump-start\n\ ", stdout); #else 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\ ", stdout); #endif @@ -84,7 +84,7 @@ int main(int argc, char** argv) {"verbose", no_argument, 0, 'V' }, #if VM_TRACE {"vcd", required_argument, 0, 'v' }, - {"start", required_argument, 0, 'x' }, + {"dump-start", required_argument, 0, 'x' }, #endif {0, 0, 0, 0} }; @@ -124,8 +124,8 @@ int main(int argc, char** argv) else if (arg.substr(0, 12) == "+max-cycles=") max_cycles = atoll(optarg+12); #if VM_TRACE - else if (arg.substr(0, 7) == "+start=") - start = atoll(optarg+7); + else if (arg.substr(0, 12) == "+dump-start=") + start = atoll(optarg+12); #endif else if (arg.substr(0, 12) == "+cycle-count") print_cycles = true;