diff options
author | Thomas Huth <thuth@redhat.com> | 2023-09-14 13:33:05 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-09-18 13:24:07 +0100 |
commit | 121d4f3473e8d730570688d2c59abed84fcd31a4 (patch) | |
tree | dd91e0a03dc087114e7be5f11d38ce4442dc69a5 /risu.h | |
parent | bba09464e401e54b6b1609c7707d615e8cb51fba (diff) |
Pass siginfo_t->si_addr to the reginfo_init() function
On s390x, we need the si_addr from the siginfo_t to get to
the address of the illegal instruction (the PSW address in
the ucontext_t is already pointing to the next instruction
there). So let's prepare for that situation and pass the
si_addr to the reginfo_init() function everywhere.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-id: 20230914113311.379537-2-thuth@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risu.h')
-rw-r--r-- | risu.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -115,7 +115,7 @@ RisuOp get_risuop(struct reginfo *ri); uintptr_t get_pc(struct reginfo *ri); /* initialize structure from a ucontext */ -void reginfo_init(struct reginfo *ri, ucontext_t *uc); +void reginfo_init(struct reginfo *ri, ucontext_t *uc, void *siaddr); /* return 1 if structs are equal, 0 otherwise. */ int reginfo_is_eq(struct reginfo *r1, struct reginfo *r2); |