whoops two options "-l", rename one "-a" for "assembly listing"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 25 May 2021 13:09:05 +0000 (14:09 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 25 May 2021 13:09:05 +0000 (14:09 +0100)
src/openpower/decoder/isa/pypowersim.py

index 59f21f7cb29439a2524a4786de8f822a5f945126..9377021cc97c0ab47c5ed70588fbd746583fce58 100644 (file)
@@ -159,7 +159,7 @@ def run_tst(args, generator, initial_regs,
 
 def help():
     print ("-i --binary=   raw (non-ELF) bare metal executable, loaded at 0x0")
-    print ("-l --listing=  file containing bare-metal assembler (no macros)")
+    print ("-a --listing=  file containing bare-metal assembler (no macros)")
     print ("-g --intregs=  colon-separated file with GPR values")
     print ("-f --fpregs=   colon-separated file with FPR values")
     print ("-s --spregs=   colon-separated file with SPR values")
@@ -189,7 +189,7 @@ def run_simulation():
     write_to = []
 
     try:
-        opts, args = getopt.getopt(sys.argv[1:], "hi:l:g:f:s:l:d:",
+        opts, args = getopt.getopt(sys.argv[1:], "hi:a:g:f:s:l:d:",
                                    ["help",
                                     "binary=", "listing=",
                                     "intregs=", "fpregs=", "sprs=",
@@ -204,7 +204,7 @@ def run_simulation():
             help()
         elif opt in ['-i', '--binary']:
             binaryname = arg
-        elif opt in ['-l', '--listing']:
+        elif opt in ['-a', '--listing']:
             lst = arg
         elif opt in ['-g', '--intregs']:
             initial_regs = read_entries(arg, 32)