X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Futils%2Fpintos;h=88bd3adc1c12a662dff6a7e0430581f0f1d6da76;hb=fdc9df9f83b8d6676b2fef983bf72a778e04c26f;hp=2b5dad9f4e6cdbf8a8ab8e316ce68a2475d557da;hpb=7fb6b393d8b66432bbbceb75c01660d8d3d32388;p=pintos-anon diff --git a/src/utils/pintos b/src/utils/pintos index 2b5dad9..88bd3ad 100755 --- a/src/utils/pintos +++ b/src/utils/pintos @@ -46,12 +46,12 @@ sub parse_command_line { while ((my $arg = shift (@kernel_args)) ne '--') { push (@ARGV, $arg); } - GetOptions ("sim=s" => sub { set_sim (@_) }, + GetOptions ("sim=s" => sub { set_sim ($_[1]) }, "bochs" => sub { set_sim ("bochs") }, "qemu" => sub { set_sim ("qemu") }, "player" => sub { set_sim ("player") }, - "debug=s" => sub { set_debug (@_) }, + "debug=s" => sub { set_debug ($_[1]) }, "no-debug" => sub { set_debug ("none") }, "monitor" => sub { set_debug ("monitor") }, "gdb" => sub { set_debug ("gdb") }, @@ -409,8 +409,11 @@ log: bochsout.txt panic: action=fatal EOF print BOCHSRC "gdbstub: enabled=1\n" if $debug eq 'gdb'; - print BOCHSRC "clock: sync=", $realtime ? 'realtime' : 'none', - ", time0=0\n"; + if ($realtime) { + print BOCHSRC "clock: sync=realtime\n"; + } else { + print BOCHSRC "clock: sync=none, time0=0\n"; + } print_bochs_disk_line ("ata0-master", 0); print_bochs_disk_line ("ata0-slave", 1); if (defined ($disks_by_iface[2]{FILE_NAME})