[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v12 07/23] i386: move TCG cpu class initialization to tcg/
From: |
Richard Henderson |
Subject: |
Re: [PATCH v12 07/23] i386: move TCG cpu class initialization to tcg/ |
Date: |
Tue, 15 Dec 2020 16:08:19 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 12/12/20 9:55 AM, Claudio Fontana wrote:
> to do this, we need to take code out of cpu.c and helper.c,
> and also move some prototypes from cpu.h, for code that is
> needed in tcg/xxx_helper.c, and which in turn is part of the
> callbacks registered by the class initialization.
>
> Therefore, do some shuffling of the parts of cpu.h that
> are only relevant for tcg/, and put them in tcg/helper-tcg.h
>
> For FT0 and similar macros, put them in tcg/fpu-helper.c
> since they are used only there.
>
> Signed-off-by: Claudio Fontana <cfontana@suse.de>
> ---
> target/i386/cpu.h | 86 ---------------------------
> target/i386/tcg/helper-tcg.h | 106 ++++++++++++++++++++++++++++++++++
> target/i386/tcg/tcg-cpu.h | 15 +++++
> target/i386/cpu.c | 33 ++++-------
> target/i386/helper.c | 23 --------
> target/i386/tcg/bpt_helper.c | 1 +
> target/i386/tcg/cc_helper.c | 1 +
> target/i386/tcg/excp_helper.c | 1 +
> target/i386/tcg/fpu_helper.c | 39 +++++++------
> target/i386/tcg/int_helper.c | 1 +
> target/i386/tcg/mem_helper.c | 1 +
> target/i386/tcg/misc_helper.c | 1 +
> target/i386/tcg/mpx_helper.c | 1 +
> target/i386/tcg/seg_helper.c | 1 +
> target/i386/tcg/smm_helper.c | 2 +
> target/i386/tcg/svm_helper.c | 1 +
> target/i386/tcg/tcg-cpu.c | 71 +++++++++++++++++++++++
> target/i386/tcg/translate.c | 1 +
> target/i386/tcg/meson.build | 1 +
> 19 files changed, 238 insertions(+), 148 deletions(-)
> create mode 100644 target/i386/tcg/helper-tcg.h
> create mode 100644 target/i386/tcg/tcg-cpu.h
> create mode 100644 target/i386/tcg/tcg-cpu.c
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- Re: [PATCH v12 08/23] i386: tcg: remove inline from cpu_load_eflags, (continued)
- [PATCH v12 03/23] i386: move hax accel files into hax/, Claudio Fontana, 2020/12/12
- [PATCH v12 22/23] cpu: move cc->transaction_failed to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 18/23] cpu: Move tlb_fill to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 23/23] cpu: move do_unaligned_access to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 13/23] cpu: Introduce TCGCpuOperations struct, Claudio Fontana, 2020/12/12
- [PATCH v12 12/23] cpu: Remove unnecessary noop methods, Claudio Fontana, 2020/12/12
- [PATCH v12 02/23] i386: move whpx accel files into whpx/, Claudio Fontana, 2020/12/12
- [PATCH v12 21/23] cpu: move cc->do_interrupt to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 07/23] i386: move TCG cpu class initialization to tcg/, Claudio Fontana, 2020/12/12
- Re: [PATCH v12 07/23] i386: move TCG cpu class initialization to tcg/,
Richard Henderson <=
- Re: [PATCH v12 00/23] i386 cleanup PART 1, no-reply, 2020/12/12
- Re: [PATCH v12 00/23] i386 cleanup PART 1, Eduardo Habkost, 2020/12/14
- Re: [PATCH v12 00/23] i386 cleanup PART 1, Eduardo Habkost, 2020/12/16