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:
308db1f
)
deepcopy is really slow and actually unnecessary here
author
Jacob Lifshay
<programmerjake@gmail.com>
Wed, 14 Jun 2023 05:54:28 +0000
(22:54 -0700)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:19 +0000
(19:26 +0000)
src/openpower/fpscr.py
patch
|
blob
|
history
diff --git
a/src/openpower/fpscr.py
b/src/openpower/fpscr.py
index d4e8a1d7612a6b12f33ef8b8fe8e4e1880db5905..edfcfacacb0228a45159ebf244fff92b07af1a5c 100644
(file)
--- a/
src/openpower/fpscr.py
+++ b/
src/openpower/fpscr.py
@@
-136,9
+136,7
@@
class FPSCRState(SelectableInt):
offs = 0
# set up sub-fields from Record layout
self.fsi = {}
- l = deepcopy(FPSCRRecord.layout)
- l.reverse()
- for field, width in l:
+ for field, width in reversed(FPSCRRecord.layout):
if field == "FPRF":
v = FPSCR_FPRF(self, tuple(range(47, 52)))
end = 52