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:
3ac0e0a
)
add TRAP docs
programmerjake/bug-1177
author
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 9 Nov 2023 02:27:34 +0000
(18:27 -0800)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 14 Nov 2023 23:06:49 +0000
(15:06 -0800)
src/openpower/decoder/isa/caller.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/isa/caller.py
b/src/openpower/decoder/isa/caller.py
index 06d66626f4cbfef51f68a96ac29cca36251790db..735252c78f75d54fad9adb522e540c2fdef84ddf 100644
(file)
--- a/
src/openpower/decoder/isa/caller.py
+++ b/
src/openpower/decoder/isa/caller.py
@@
-1357,6
+1357,11
@@
class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
TRAP function is callable from inside the pseudocode itself,
hence the default arguments. when calling from inside ISACaller
it is best to use call_trap()
+
+ trap_addr: int | SelectableInt
+ the address to go to (before any modifications from `KAIVB`)
+ trap_bit: int | None
+ the bit in `SRR1` to set, `None` means don't set any bits.
"""
if isinstance(trap_addr, SelectableInt):
trap_addr = trap_addr.value