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:
6778313
)
power_fields: avoid unknown attributes
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 20 Nov 2022 13:56:33 +0000
(16:56 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 15 Jan 2023 19:47:22 +0000
(22:47 +0300)
src/openpower/decoder/power_fields.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/power_fields.py
b/src/openpower/decoder/power_fields.py
index 21de9b74ecd839266550a58e963fefe4b5fd5b7d..856182f36de8e918c92418196d5a129a2869d5ef 100644
(file)
--- a/
src/openpower/decoder/power_fields.py
+++ b/
src/openpower/decoder/power_fields.py
@@
-301,6
+301,9
@@
class Mapping(Reference, metaclass=MappingMeta):
return self.assign(value=value, bits=key)
+ def __getattr__(self, key):
+ raise AttributeError(key)
+
@classmethod
def traverse(cls, path):
for (name, member) in cls.__members__.items():