From 115c29db017e4a2d1f9c78a568fd899ac4c0ee9d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 14 Jun 2021 22:49:59 +0100 Subject: [PATCH] whoops forgot format-to-format conversion --- src/openpower/sv/trans/svp64.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 7d2a7346..e3aa1d3f 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -751,21 +751,21 @@ def macro_subst(macros, txt): toreplace = '%s.s' % macro if toreplace == txt: again = True - replaced = txt.replace(toreplace, value) + replaced = txt.replace(toreplace, "%s.s" % value) print ("macro", txt, "replaced", replaced, toreplace, value) txt = replaced continue toreplace = '%s.v' % macro if toreplace == txt: again = True - replaced = txt.replace(toreplace, value) + replaced = txt.replace(toreplace, "%s.v" % value) print ("macro", txt, "replaced", replaced, toreplace, value) txt = replaced continue toreplace = '(%s)' % macro - if toreplace == txt: + if toreplace in txt: again = True - replaced = txt.replace(toreplace, value) + replaced = txt.replace(toreplace, '(%s)' % value) print ("macro", txt, "replaced", replaced, toreplace, value) txt = replaced continue -- 2.30.2