From ef5e744d706a8aec08cd74f46868f0fac7376022 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 8 Nov 2023 18:27:34 -0800 Subject: [PATCH] add TRAP docs --- src/openpower/decoder/isa/caller.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 06d66626..735252c7 100644 --- 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 -- 2.30.2