From: Luke Kenneth Casson Leighton Date: Fri, 9 Sep 2022 15:25:03 +0000 (+0100) Subject: add "short" argument (TODO pick better name) to pysvp64dis X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df6d493e239b81d005d6d9785b94e3659596df9d;p=openpower-isa.git add "short" argument (TODO pick better name) to pysvp64dis --- diff --git a/src/openpower/sv/trans/pysvp64dis.py b/src/openpower/sv/trans/pysvp64dis.py index 54dc16b5..38b4017d 100644 --- a/src/openpower/sv/trans/pysvp64dis.py +++ b/src/openpower/sv/trans/pysvp64dis.py @@ -50,10 +50,10 @@ def load(ifile, byteorder=ByteOrder.LITTLE, **_): yield insn -def dump(insns, verbose, **_): +def dump(insns, verbose, short=False, **_): db = _Database(_find_wiki_dir()) for insn in insns: - yield from insn.disassemble(db=db, verbose=verbose) + yield from insn.disassemble(db=db, verbose=verbose, short=short) # this is the entry-point for the console-script pysvp64dis @@ -67,6 +67,8 @@ def main(): type=ByteOrder, default=ByteOrder.LITTLE) parser.add_argument("-v", "--verbose", action="store_true", default=False) + parser.add_argument("-s", "--short", + action="store_true", default=False) parser.add_argument("-l", "--log", action="store_true", default=False)