diff options
author | Janosch Frank <frankja@linux.ibm.com> | 2022-04-07 09:48:24 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-22 13:36:03 +0400 |
commit | 046bc4160bc780eaacc2d702a2589f1a7a01188d (patch) | |
tree | 7deb4b3f8825aa0a13539f26040f08c22b482c72 /include | |
parent | 86a518bba4f4d7c9016fc5b104fe1e58b00ad756 (diff) |
dump: Remove the sh_info variable
There's no need to have phdr_num and sh_info at the same time. We can
make phdr_num 32 bit and set PN_XNUM when we write the header if
phdr_num >= PN_XNUM.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220407094824.5074-1-frankja@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/dump.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h index 250143cb5a..b463fc9c02 100644 --- a/include/sysemu/dump.h +++ b/include/sysemu/dump.h @@ -154,8 +154,7 @@ typedef struct DumpState { GuestPhysBlockList guest_phys_blocks; ArchDumpInfo dump_info; MemoryMappingList list; - uint16_t phdr_num; - uint32_t sh_info; + uint32_t phdr_num; bool have_section; bool resume; bool detached; |