From df6d493e239b81d005d6d9785b94e3659596df9d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 9 Sep 2022 16:25:03 +0100 Subject: [PATCH] add "short" argument (TODO pick better name) to pysvp64dis --- src/openpower/sv/trans/pysvp64dis.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.30.2