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_reginfo_i386.c | |
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_reginfo_i386.c')
-rw-r--r-- | risu_reginfo_i386.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/risu_reginfo_i386.c b/risu_reginfo_i386.c index e9730be..834b2ed 100644 --- a/risu_reginfo_i386.c +++ b/risu_reginfo_i386.c @@ -102,7 +102,7 @@ static void *xsave_feature_buf(struct _xstate *xs, int feature) } /* reginfo_init: initialize with a ucontext */ -void reginfo_init(struct reginfo *ri, ucontext_t *uc) +void reginfo_init(struct reginfo *ri, ucontext_t *uc, void *siaddr) { int i, nvecregs; struct _fpstate *fp; |