[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for 6.2 40/49] bsd-user: Add target_arch_reg to describe a ta
From: |
Warner Losh |
Subject: |
Re: [PATCH for 6.2 40/49] bsd-user: Add target_arch_reg to describe a target's register set |
Date: |
Fri, 20 Aug 2021 17:36:19 -0600 |
> On Aug 10, 2021, at 10:44 AM, Richard Henderson
> <richard.henderson@linaro.org> wrote:
>
> On 8/7/21 11:42 AM, Warner Losh wrote:
>> From: Warner Losh<imp@FreeBSD.org>
>> target_reg_t is the normal register. target_fpreg_t is the floating
>> point registers. target_copy_regs copies the registers out of CPU
>> context for things like core dumps.
>> Signed-off-by: Stacey Son<sson@FreeBSD.org>
>> Signed-off-by: Warner Losh<imp@bsdimp.com>
>> ---
>> bsd-user/i386/target_arch_reg.h | 82 +++++++++++++++++++++++++++
>> bsd-user/x86_64/target_arch_reg.h | 92 +++++++++++++++++++++++++++++++
>> 2 files changed, 174 insertions(+)
>> create mode 100644 bsd-user/i386/target_arch_reg.h
>> create mode 100644 bsd-user/x86_64/target_arch_reg.h
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
> While this mirrors what linux-user does, I've wondered if this wasn't just
> pointless copying. If a bit of code knows enough about a target to fill in
> its core dump, why wouldn't it just copy the data straight from CPUArchState
> instead of using these intermediaries?
I believe the forthcoming core dump code copies this opaque structure into the
core dump….
However, this is an excellent todo item to see if there’s something that can be
refined.
Warner
signature.asc
Description: Message signed with OpenPGP
- Re: [PATCH for 6.2 42/49] bsd-user: add stubbed out core dump support, (continued)
- [PATCH for 6.2 38/49] bsd-user: Update mapping to handle reserved and starting conditions, Warner Losh, 2021/08/07
- [PATCH for 6.2 40/49] bsd-user: Add target_arch_reg to describe a target's register set, Warner Losh, 2021/08/07
- [PATCH for 6.2 41/49] bsd-user: Add target_os_user.h to capture the user/kernel structures, Warner Losh, 2021/08/07
- [PATCH for 6.2 45/49] bsd-user: Make guest_base an unsigned long, Warner Losh, 2021/08/07
- [PATCH for 6.2 46/49] bsd-user: move qemu_log to later in the file, Warner Losh, 2021/08/07
- [PATCH for 6.2 48/49] bsd-user: Implement cpu_copy() helper routine, Warner Losh, 2021/08/07
- [PATCH for 6.2 43/49] bsd-user: elfload.c style catch up patch, Warner Losh, 2021/08/07