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 <cfont...@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.hender...@linaro.org> r~