diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-07-08 21:16:49 +0530 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-07-18 13:14:07 +0100 |
commit | c91d0fc985eeafd61d7062b25ec94fa09f574954 (patch) | |
tree | 3bb98ba9dabacf3d55879967f9b6d86aa7640e35 /risu_reginfo_i386.c | |
parent | 3133e343194fb24e3252f182096d5083779f8d18 (diff) |
Compute reginfo_size based on the reginfo
This will allow dumping of SVE frames without having
to know the SVE vector length beforehand.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220708154700.18682-19-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risu_reginfo_i386.c')
-rw-r--r-- | risu_reginfo_i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/risu_reginfo_i386.c b/risu_reginfo_i386.c index 60fc239..50505ab 100644 --- a/risu_reginfo_i386.c +++ b/risu_reginfo_i386.c @@ -74,9 +74,9 @@ void process_arch_opt(int opt, const char *arg) } } -const int reginfo_size(void) +int reginfo_size(struct reginfo *ri) { - return sizeof(struct reginfo); + return sizeof(*ri); } static void *xsave_feature_buf(struct _xstate *xs, int feature) |