projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb1458
)
pysvp64asm: create database once
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 6 Sep 2022 13:25:23 +0000
(16:25 +0300)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 6 Sep 2022 19:13:33 +0000
(20:13 +0100)
src/openpower/sv/trans/svp64.py
patch
|
blob
|
history
diff --git
a/src/openpower/sv/trans/svp64.py
b/src/openpower/sv/trans/svp64.py
index 43c347213bebfd0afbbc955c6fff2613c40f39a5..3b7953f22a734c752ee41ed0b0f40aafa2c2151c 100644
(file)
--- a/
src/openpower/sv/trans/svp64.py
+++ b/
src/openpower/sv/trans/svp64.py
@@
-684,6
+684,9
@@
def to_number(field):
return int(field)
+db = Database(find_wiki_dir())
+
+
# decodes svp64 assembly listings and creates EXT001 svp64 prefixes
class SVP64Asm:
def __init__(self, lst, bigendian=False, macros=None):
@@
-917,7
+920,6
@@
class SVP64Asm:
log("extras", extras)
# rright. now we have all the info. start creating SVP64 instruction.
- db = Database(find_wiki_dir())
svp64_insn = SVP64Instruction.pair(prefix=0, suffix=0)
svp64_prefix = svp64_insn.prefix
svp64_rm = svp64_insn.prefix.rm