aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Norton <rmn30@cam.ac.uk>2019-09-18 11:24:06 +0100
committerGitHub <noreply@github.com>2019-09-18 11:24:06 +0100
commitf6cd5e94b527f306b639dc9ec363880cf36b4e2b (patch)
tree2155433f3f9f71ac895cf9aaa37ae7e51e32b3fe
parent86ff4e00905f1202bffb7e2be3709030d2cba1c2 (diff)
parent4c1a94e2734aed9eeab14b2c9ea105f6e5a811c7 (diff)
downloadsail-riscv-f6cd5e94b527f306b639dc9ec363880cf36b4e2b.zip
sail-riscv-f6cd5e94b527f306b639dc9ec363880cf36b4e2b.tar.gz
sail-riscv-f6cd5e94b527f306b639dc9ec363880cf36b4e2b.tar.bz2
Merge pull request #18 from scottj97/upstream-1
Expand getopt_long option string to multiple lines
-rw-r--r--c_emulator/riscv_sim.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/c_emulator/riscv_sim.c b/c_emulator/riscv_sim.c
index 6188e96..f8f0820 100644
--- a/c_emulator/riscv_sim.c
+++ b/c_emulator/riscv_sim.c
@@ -196,7 +196,25 @@ char *process_args(int argc, char **argv)
int c, idx = 1;
uint64_t ram_size = 0;
while(true) {
- c = getopt_long(argc, argv, "admCIispz:b:t:hr:T:V::v::l:", options, &idx);
+ c = getopt_long(argc, argv,
+ "a"
+ "d"
+ "m"
+ "C"
+ "I"
+ "i"
+ "s"
+ "p"
+ "z:"
+ "b:"
+ "t:"
+ "h"
+ "r:"
+ "T:"
+ "V::"
+ "v::"
+ "l:"
+ , options, &idx);
if (c == -1) break;
switch (c) {
case 'a':