exec: Move translation declarations to 'translate-all.h'
Subsystems (2)
cover exec: Move translation declarations to 'translate-all.h'
This series move translation declarations from the generic 'cpu-all.h' to the TCG specific 'translate-all.h'. It is part of a bigger exec/ refactor which I'm splitting in multiple parts.
Based-on: <[email protected]> "exec: Remove 'qemu/log.h' from 'exec-all.h'"
Philippe Mathieu-Daudé (13):
meson: Display libfdt as disabled when system emulation is disabled exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition
accel: Elide kvm_update_guest_debug by checking
kvm_supports_guest_debug
target/i386/cpu: Ensure accelerators set CPU addressble physical bits target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header
cpu: Add missing 'exec/exec-all.h' and ''exec/exec-all.h'' headers
cpu: Move common code to cpu-common
target: Include missing 'cpu.h'
target: Use forward declared type instead of structure type
target: Use CPUArchState as interface to target-specific CPU state exec/cpu_ldst: Restrict TCG-specific code
exec/cpu-all: Restrict cpu_copy() to user emulation
exec: Move translation declarations to 'translate-all.h'
accel/stubs/kvm-stub.c | 5 - accel/stubs/tcg-stub.c | 1 + accel/tcg/cpu-exec-common.c | 1 + accel/tcg/cpu-exec.c | 1 + accel/tcg/cputlb.c | 1 + accel/tcg/hmp.c | 2 +- accel/tcg/internal.h | 2 +- accel/tcg/plugin-gen.c | 2 +- accel/tcg/tb-hash.h | 2 +- accel/tcg/tcg-accel-ops-icount.c | 2 +- accel/tcg/tcg-accel-ops-mttcg.c | 2 +- accel/tcg/tcg-accel-ops-rr.c | 2 +- accel/tcg/tcg-accel-ops.c | 2 +- accel/tcg/tcg-runtime.c | 1 + accel/tcg/translate-all.c | 1 + accel/tcg/translator.c | 2 +- accel/tcg/user-exec.c | 2 +- bsd-user/main.c | 2 +- bsd-user/qemu.h | 2 +- cpu.c | 113 +------ cpus-common.c | 112 +++++++ gdbstub.c | 1 + hw/ppc/spapr_hcall.c | 1 + include/exec/cpu-all.h | 8 +- include/exec/cpu_ldst.h | 55 ++-- include/exec/exec-all.h | 350 ---------------------- include/exec/poison.h | 2 - include/exec/ram_addr.h | 2 - include/exec/translate-all.h | 372 +++++++++++++++++++++++- include/hw/core/cpu.h | 2 +- include/qemu/typedefs.h | 1 + linux-user/main.c | 2 +- linux-user/user-internals.h | 2 +- meson.build | 4 +- plugins/api.c | 2 +- plugins/core.c | 2 +- plugins/loader.c | 2 +- semihosting/console.c | 1 + target/alpha/cpu.c | 2 +- target/alpha/cpu.h | 6 +- target/alpha/fpu_helper.c | 2 +- target/alpha/helper.c | 1 + target/alpha/int_helper.c | 2 +- target/alpha/mem_helper.c | 1 + target/alpha/sys_helper.c | 1 + target/alpha/translate.c | 2 +- target/alpha/vax_helper.c | 2 +- target/arm/cpu.c | 2 +- target/arm/cpu.h | 2 +- target/arm/debug_helper.c | 2 +- target/arm/helper-a64.c | 2 +- target/arm/helper.c | 2 +- target/arm/m_helper.c | 2 +- target/arm/mte_helper.c | 2 +- target/arm/mve_helper.c | 2 +- target/arm/op_helper.c | 1 + target/arm/pauth_helper.c | 2 +- target/arm/sve_helper.c | 2 +- target/arm/tlb_helper.c | 1 + target/arm/translate-a64.c | 2 +- target/arm/translate-mve.c | 2 +- target/arm/translate-neon.c | 2 +- target/arm/translate-sve.c | 2 +- target/arm/translate-vfp.c | 2 +- target/arm/translate.c | 2 +- target/avr/cpu.c | 2 +- target/avr/cpu.h | 6 +- target/avr/helper.c | 1 + target/avr/translate.c | 2 +- target/cris/cpu.h | 2 +- target/cris/helper.c | 1 + target/cris/mmu.c | 1 + target/cris/op_helper.c | 1 + target/cris/translate.c | 2 +- target/hexagon/cpu.c | 2 +- target/hexagon/cpu.h | 5 +- target/hexagon/op_helper.c | 1 + target/hppa/cpu.c | 1 + target/hppa/cpu.h | 6 +- target/hppa/helper.c | 1 + target/hppa/mem_helper.c | 1 + target/hppa/op_helper.c | 1 + target/hppa/translate.c | 2 +- target/i386/cpu.c | 1 + target/i386/cpu.h | 2 +- target/i386/helper.c | 1 + target/i386/machine.c | 1 + target/i386/tcg/excp_helper.c | 1 + target/i386/tcg/fpu_helper.c | 2 + target/i386/tcg/helper-tcg.h | 2 +- target/i386/tcg/int_helper.c | 2 +- target/i386/tcg/mem_helper.c | 1 + target/i386/tcg/misc_helper.c | 1 + target/i386/tcg/mpx_helper.c | 2 +- target/i386/tcg/seg_helper.c | 1 + target/i386/tcg/sysemu/bpt_helper.c | 1 + target/i386/tcg/sysemu/excp_helper.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/svm_helper.c | 1 + target/i386/tcg/translate.c | 2 +- target/i386/tcg/user/excp_helper.c | 1 + target/i386/tcg/user/seg_helper.c | 1 + target/m68k/cpu.h | 2 +- target/m68k/fpu_helper.c | 2 +- target/m68k/helper.c | 1 + target/m68k/op_helper.c | 1 + target/m68k/translate.c | 2 +- target/microblaze/cpu.c | 2 +- target/microblaze/cpu.h | 4 +- target/microblaze/helper.c | 1 + target/microblaze/mmu.c | 1 + target/microblaze/mmu.h | 2 + target/microblaze/op_helper.c | 1 + target/microblaze/translate.c | 2 +- target/mips/cpu.c | 2 +- target/mips/cpu.h | 5 +- target/mips/internal.h | 15 +- target/mips/sysemu/cp0.c | 1 + target/mips/sysemu/physaddr.c | 2 +- target/mips/tcg/exception.c | 1 + target/mips/tcg/fpu_helper.c | 2 +- target/mips/tcg/ldst_helper.c | 2 +- target/mips/tcg/msa_helper.c | 2 +- target/mips/tcg/op_helper.c | 2 +- target/mips/tcg/sysemu/cp0_helper.c | 1 + target/mips/tcg/sysemu/special_helper.c | 2 +- target/mips/tcg/sysemu/tlb_helper.c | 1 + target/nios2/cpu.h | 4 +- target/nios2/helper.c | 1 + target/nios2/mmu.c | 1 + target/nios2/mmu.h | 2 + target/nios2/op_helper.c | 1 + target/nios2/translate.c | 2 +- target/openrisc/cpu.h | 2 +- target/openrisc/exception.c | 1 + target/openrisc/exception_helper.c | 1 + target/openrisc/interrupt.c | 2 +- target/openrisc/interrupt_helper.c | 2 +- target/openrisc/mmu.c | 1 + target/openrisc/sys_helper.c | 1 + target/openrisc/translate.c | 2 +- target/ppc/cpu-qom.h | 2 +- target/ppc/cpu.h | 3 +- target/ppc/excp_helper.c | 1 + target/ppc/fpu_helper.c | 2 +- target/ppc/helper_regs.c | 1 + target/ppc/machine.c | 2 +- target/ppc/mem_helper.c | 2 +- target/ppc/misc_helper.c | 1 + target/ppc/mmu-hash32.c | 2 +- target/ppc/mmu-hash64.c | 2 +- target/ppc/mmu-radix64.c | 2 +- target/ppc/mmu_common.c | 2 +- target/ppc/mmu_helper.c | 1 + target/ppc/power8-pmu.c | 2 +- target/ppc/timebase_helper.c | 2 +- target/ppc/translate.c | 2 +- target/ppc/user_only_helper.c | 1 + target/riscv/bitmanip_helper.c | 2 +- target/riscv/cpu.c | 2 +- target/riscv/cpu.h | 4 +- target/riscv/cpu_helper.c | 1 + target/riscv/csr.c | 1 + target/riscv/fpu_helper.c | 2 +- target/riscv/m128_helper.c | 2 +- target/riscv/op_helper.c | 1 + target/riscv/pmp.c | 1 + target/riscv/pmp.h | 2 + target/riscv/translate.c | 2 +- target/riscv/vector_helper.c | 2 +- target/rx/cpu-qom.h | 2 - target/rx/cpu.c | 1 + target/rx/cpu.h | 2 +- target/rx/op_helper.c | 1 + target/rx/translate.c | 2 +- target/s390x/cpu-qom.h | 2 +- target/s390x/cpu.h | 2 +- target/s390x/gdbstub.c | 1 + target/s390x/interrupt.c | 2 +- target/s390x/mmu_helper.c | 1 + target/s390x/sigp.c | 1 + target/s390x/tcg/cc_helper.c | 1 + target/s390x/tcg/crypto_helper.c | 2 +- target/s390x/tcg/excp_helper.c | 1 + target/s390x/tcg/fpu_helper.c | 2 +- target/s390x/tcg/int_helper.c | 2 +- target/s390x/tcg/mem_helper.c | 1 + target/s390x/tcg/misc_helper.c | 1 + target/s390x/tcg/translate.c | 2 +- target/s390x/tcg/vec_fpu_helper.c | 2 +- target/s390x/tcg/vec_helper.c | 2 +- target/sh4/cpu.c | 2 +- target/sh4/cpu.h | 2 +- target/sh4/helper.c | 1 + target/sh4/op_helper.c | 1 + target/sh4/translate.c | 2 +- target/sparc/cpu.c | 2 +- target/sparc/cpu.h | 4 +- target/sparc/fop_helper.c | 1 + target/sparc/helper.c | 1 + target/sparc/ldst_helper.c | 1 + target/sparc/machine.c | 2 +- target/sparc/mmu_helper.c | 1 + target/sparc/translate.c | 2 +- target/sparc/win_helper.c | 2 +- target/tricore/cpu.c | 2 +- target/tricore/cpu.h | 5 +- target/tricore/helper.c | 1 + target/tricore/op_helper.c | 1 + target/tricore/translate.c | 2 +- target/xtensa/cpu.h | 8 +- target/xtensa/dbg_helper.c | 2 +- target/xtensa/exc_helper.c | 1 + target/xtensa/fpu_helper.c | 2 +- target/xtensa/helper.c | 1 + target/xtensa/mmu_helper.c | 1 + target/xtensa/op_helper.c | 2 +- target/xtensa/translate.c | 2 +- target/xtensa/win_helper.c | 2 +- tcg/region.c | 2 +- tcg/tcg-op.c | 2 +- tcg/tcg.c | 2 +- 222 files changed, 756 insertions(+), 658 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/13 meson: Display libfdt as disabled when system emulation is disabled
When configuring QEMU with --disable-system, meson keeps showing libfdt as "auto". Mark it as disabled instead.
--- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meson.build +3 -1
@@ -2271,8 +2271,8 @@ if get_option('cfi') and slirp_opt == 'system' endif fdt = not_found -fdt_opt = get_option('fdt') if have_system + fdt_opt = get_option('fdt') if fdt_opt in ['enabled', 'auto', 'system'] have_internal = fs.exists(meson.current_source_dir() / 'dtc/libfdt/Makefile.libfdt') fdt = cc.find_library('fdt', kwargs: static_kwargs,
@@ -2315,6 +2315,8 @@ if have_system fdt = declare_dependency(link_with: libfdt, include_directories: fdt_inc) endif +else + fdt_opt = 'disabled' endif if not fdt.found() and fdt_required.length() > 0 error('fdt not available but required by targets ' + ', '.join(fdt_required))
Signature · 1 line
2.34.1
Re: [PATCH 01/13] meson: Display libfdt as disabled when system emulation is disabled
Quoted 23 lines · Philippe Mathieu-Daudé
When configuring QEMU with --disable-system, meson keeps showing libfdt as "auto". Mark it as disabled instead.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meson.build +1
-1@@ -2271,8 +2271,8 @@ if get_option('cfi') and slirp_opt == 'system' endif fdt = not_found -fdt_opt = get_option('fdt') if have_system + fdt_opt = get_option('fdt') if fdt_opt in ['enabled', 'auto', 'system'] have_internal = fs.exists(meson.current_source_dir() / 'dtc/libfdt/Makefile.libfdt') fdt = cc.find_library('fdt', kwargs: static_kwargs,
meson.build if have_system · line 2322
Quoted 8 lines
meson.build +2
-0@@ -2315,6 +2315,8 @@ if have_system fdt = declare_dependency(link_with: libfdt, include_directories: fdt_inc) endif +else + fdt_opt = 'disabled' endif if not fdt.found() and fdt_required.length() > 0 error('fdt not available but required by targets ' + ', '.join(fdt_required))
Another possibility might be (for all submodules)
-summary_info += {'fdt support': fdt_opt == 'disabled' ? false : fdt_opt}
+summary_info += {'fdt support': fdt_opt == 'internal' ? fdt_opt : fdt}
Paolo
PATCH 2/13 exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition
In reply to Philippe Mathieu-Daudé via--- include/exec/cpu_ldst.h | 1 + 1 file changed, 1 insertion(+)
include/exec/cpu_ldst.h +1 -0
@@ -64,6 +64,7 @@#include "exec/memopidx.h" #include "qemu/int128.h" +#include "cpu.h" #if defined(CONFIG_USER_ONLY )/* sparc32plus has 64bit long but 32bit space address
Signature · 1 line
2.34.1
Re: [PATCH 02/13] exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition
Quoted 10 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/exec/cpu_ldst.h | 1 + 1 file changed, 1 insertion(+)include/exec/cpu_ldst.h +0
-0
include/exec/cpu_ldst.h line 67
Quoted 4 lines
include/exec/cpu_ldst.h +1
-0@@ -64,6 +64,7 @@#include "exec/memopidx.h" #include "qemu/int128.h" +#include "cpu.h"
I guess this is about as good as we can do for now.
r~
PATCH 3/13 accel: Elide kvm_update_guest_debug by checking kvm_supports_guest_debug
In reply to Philippe Mathieu-Daudé via--- accel/stubs/kvm-stub.c | 5 ----- cpu.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-)
accel/stubs/kvm-stub.c +0 -5
@@ -46,11 +46,6 @@ int kvm_has_many_ioeventfds(void)return 0 ; } -int kvm_update_guest_debug (CPUState *cpu,unsigned long reinject_trap) -{ -return -ENOSYS ; -} -int kvm_insert_breakpoint (CPUState *cpu,target_ulong addr,target_ulong len,int type) {
cpu.c +1 -1
@@ -350,7 +350,7 @@ void cpu_single_step(CPUState *cpu, int enabled) {if (cpu->singlestep_enabled != enabled) { cpu->singlestep_enabled = enabled; -if (kvm_enabled ()) { +if (kvm_enabled () &&kvm_supports_guest_debug ()) {kvm_update_guest_debug (cpu,0 ); }trace_breakpoint_singlestep (cpu->cpu_index, enabled);
Signature · 1 line
2.34.1
Re: [PATCH 03/13] accel: Elide kvm_update_guest_debug by checking kvm_supports_guest_debug
Quoted 13 lines · Philippe Mathieu-Daudé
accel/stubs/kvm-stub.c +0
-5-int kvm_update_guest_debug (CPUState *cpu,unsigned long reinject_trap) -{ -return -ENOSYS ; -} -int kvm_insert_breakpoint (CPUState *cpu,target_ulong addr,target_ulong len,int type) {cpu.c +0
-0
cpu.c void cpu_single_step(CPUState *cpu, int enabled) · line 354
Quoted 6 lines
cpu.c +1
-1@@ -350,7 +350,7 @@ void cpu_single_step(CPUState *cpu, int enabled) {if (cpu->singlestep_enabled != enabled) { cpu->singlestep_enabled = enabled; -if (kvm_enabled ()) { +if (kvm_enabled () &&kvm_supports_guest_debug ()) {kvm_update_guest_debug (cpu,0 );
Why is this second hunk required?
I would think the stub would be removable on its own, since it is protected by kvm_enabled, which will expand to false exactly like kvm_supports_guest_debug expands to false.
As an aside, I wonder about the non-checking of the update return value...
r~
PATCH 4/13 target/i386/cpu: Ensure accelerators set CPU addressble physical bits
In reply to Philippe Mathieu-Daudé viaThe only accelerator allowed to use zero as default value is TCG.
--- target/i386/cpu.c | 1 + 1 file changed, 1 insertion(+)
target/i386/cpu.c +1 -0
@@ -6384,6 +6384,7 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp)* In this case, the default is the value used by TCG (40). */ if (cpu->phys_bits ==0 ) { +assert (tcg_enabled ()); cpu->phys_bits =TCG_PHYS_ADDR_BITS ; } }else {
Signature · 1 line
2.34.1
Re: [PATCH 04/13] target/i386/cpu: Ensure accelerators set CPU addressble physical bits
Quoted 6 lines · Philippe Mathieu-Daudé
The only accelerator allowed to use zero as default value is TCG.
Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/i386/cpu.c | 1 + 1 file changed, 1 insertion(+)
r~
PATCH 5/13 target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header
In reply to Philippe Mathieu-Daudé viaexcp_helper.c requires "exec/exec-all.h" for tlb_set_page_with_attrs() and misc_helper.c for tlb_flush().
--- target/i386/tcg/sysemu/excp_helper.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + 2 files changed, 2 insertions(+)
target/i386/tcg/sysemu/excp_helper.c +1 -0
@@ -19,6 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" +#include "exec/exec-all.h" #include "tcg/helper-tcg.h" int get_pg_mode (CPUX86State *env)
target/i386/tcg/sysemu/misc_helper.c +1 -0
@@ -23,6 +23,7 @@#include "exec/helper-proto.h" #include "exec/cpu_ldst.h" #include "exec/address-spaces.h" +#include "exec/exec-all.h" #include "tcg/helper-tcg.h" void helper_outb (CPUX86State *env,uint32_t port,uint32_t data)
Signature · 1 line
2.34.1
Re: [PATCH 05/13] target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header
Quoted 8 lines · Philippe Mathieu-Daudé
excp_helper.crequires "exec/exec-all.h" fortlb_set_page_with_attrs()andmisc_helper.cfortlb_flush().Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/i386/tcg/sysemu/excp_helper.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + 2 files changed, 2 insertions(+)
r~
PATCH 6/13 cpu: Add missing 'exec/exec-all.h' and ''exec/exec-all.h'' headers
In reply to Philippe Mathieu-Daudé viacpu.c requires "exec/exec-all.h" to call tlb_flush() and "qemu/accel.h" to call accel_cpu_realizefn().
--- cpu.c | 2 ++ 1 file changed, 2 insertions(+)
cpu.c +2 -0
@@ -35,10 +35,12 @@#include "sysemu/tcg.h" #include "sysemu/kvm.h" #include "sysemu/replay.h" +#include "exec/exec-all.h" #include "exec/translate-all.h" #include "exec/log.h" #include "hw/core/accel-cpu.h" #include "trace/trace-root.h" +#include "qemu/accel.h" uintptr_t qemu_host_page_size;intptr_t qemu_host_page_mask;
Signature · 1 line
2.34.1
Re: [PATCH 06/13] cpu: Add missing 'exec/exec-all.h' and ''exec/exec-all.h'' headers
Quoted 13 lines · Philippe Mathieu-Daudé
cpu.crequires "exec/exec-all.h" to calltlb_flush()and "qemu/accel.h" to callaccel_cpu_realizefn().Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- cpu.c | 2 ++ 1 file changed, 2 insertions(+)cpu.c +0
-0
cpu.c line 43
Quoted 9 lines
cpu.c +2
-0@@ -35,10 +35,12 @@#include "sysemu/tcg.h" #include "sysemu/kvm.h" #include "sysemu/replay.h" +#include "exec/exec-all.h" #include "exec/translate-all.h" #include "exec/log.h" #include "hw/core/accel-cpu.h" #include "trace/trace-root.h" +#include "qemu/accel.h"
Duplicate exec-all.h in subject.
r~
PATCH 7/13 cpu: Move common code to cpu-common
In reply to Philippe Mathieu-Daudé viacpu_abort() and cpu_breakpoint*() don't use target-specific API.
--- cpu.c | 109 ------------------------------------------------ cpus-common.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+), 109 deletions(-)
cpu.c +0 -109
@@ -34,10 +34,8 @@#endif #include "sysemu/tcg.h" #include "sysemu/kvm.h" -#include "sysemu/replay.h" #include "exec/exec-all.h" #include "exec/translate-all.h" -#include "exec/log.h" #include "hw/core/accel-cpu.h" #include "trace/trace-root.h" #include "qemu/accel.h"
@@ -275,77 +273,6 @@ void tb_invalidate_phys_addr(AddressSpace *as, hwaddr addr, MemTxAttrs attrs) }#endif -/* Add a breakpoint. */ -int cpu_breakpoint_insert (CPUState *cpu,vaddr pc,int flags, -CPUBreakpoint **breakpoint) -{ -CPUClass *cc =CPU_GET_CLASS (cpu); -CPUBreakpoint *bp; - -if (cc->gdb_adjust_breakpoint) { - pc = cc->gdb_adjust_breakpoint (cpu, pc); - } - - bp =g_malloc (sizeof (*bp)); - - bp->pc = pc; - bp->flags = flags; - -/* keep all GDB-injected breakpoints in front */ -if (flags &BP_GDB ) { -QTAILQ_INSERT_HEAD (&cpu->breakpoints, bp, entry); - }else { -QTAILQ_INSERT_TAIL (&cpu->breakpoints, bp, entry); - } - -if (breakpoint) { - *breakpoint = bp; - } - -trace_breakpoint_insert (cpu->cpu_index, pc, flags); -return 0 ; -} - -/* Remove a specific breakpoint. */ -int cpu_breakpoint_remove (CPUState *cpu,vaddr pc,int flags) -{ -CPUClass *cc =CPU_GET_CLASS (cpu); -CPUBreakpoint *bp; - -if (cc->gdb_adjust_breakpoint) { - pc = cc->gdb_adjust_breakpoint (cpu, pc); - } - - QTAILQ_FOREACH(bp, &cpu->breakpoints, entry) { -if (bp->pc == pc && bp->flags == flags) { -cpu_breakpoint_remove_by_ref (cpu, bp); -return 0 ; - } - } -return -ENOENT ; -} - -/* Remove a specific breakpoint by reference. */ -void cpu_breakpoint_remove_by_ref (CPUState *cpu,CPUBreakpoint *bp) -{ -QTAILQ_REMOVE (&cpu->breakpoints, bp, entry); - -trace_breakpoint_remove (cpu->cpu_index, bp->pc, bp->flags); -g_free (bp); -} - -/* Remove all matching breakpoints. */ -void cpu_breakpoint_remove_all (CPUState *cpu,int mask) -{ -CPUBreakpoint *bp, *next; - - QTAILQ_FOREACH_SAFE(bp, &cpu->breakpoints, entry, next) { -if (bp->flags & mask) { -cpu_breakpoint_remove_by_ref (cpu, bp); - } - } -} -/* enable or disable single step mode. EXCP_DEBUG is returned by the CPU loop after each instruction */ void cpu_single_step (CPUState *cpu,int enabled)
@@ -359,42 +286,6 @@ void cpu_single_step(CPUState *cpu, int enabled) } } -void cpu_abort (CPUState *cpu,const char *fmt, ...) -{ -va_list ap; -va_list ap2; - -va_start (ap, fmt); -va_copy (ap2, ap); -fprintf (stderr,"qemu: fatal: " ); -vfprintf (stderr, fmt, ap); -fprintf (stderr,"\n" ); -cpu_dump_state (cpu, stderr,CPU_DUMP_FPU |CPU_DUMP_CCOP ); -if (qemu_log_separate ()) { -FILE *logfile =qemu_log_lock (); -qemu_log ("qemu: fatal: " ); -qemu_log_vprintf (fmt, ap2); -qemu_log ("\n" ); -log_cpu_state (cpu,CPU_DUMP_FPU |CPU_DUMP_CCOP ); -qemu_log_flush (); -qemu_log_unlock (logfile); -qemu_log_close (); - } -va_end (ap2); -va_end (ap); -replay_finish (); -#if defined(CONFIG_USER_ONLY ) - { -struct sigaction act; -sigfillset (&act.sa_mask); - act.sa_handler =SIG_DFL ; - act.sa_flags =0 ; -sigaction (SIGABRT , &act,NULL ); - } -#endif -abort (); -} -/* physical memory access (slow version, mainly for debug) */ #if defined(CONFIG_USER_ONLY ) int cpu_memory_rw_debug(CPUState *cpu, vaddr addr,
cpus-common.c +112 -0
124 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH 07/13] cpu: Move common code to cpu-common
Quoted 25 lines · Philippe Mathieu-Daudé
cpu.c +0
-25-void cpu_abort (CPUState *cpu,const char *fmt, ...) -{ -va_list ap; -va_list ap2; - -va_start (ap, fmt); -va_copy (ap2, ap); -fprintf (stderr,"qemu: fatal: " ); -vfprintf (stderr, fmt, ap); -fprintf (stderr,"\n" ); -cpu_dump_state (cpu, stderr,CPU_DUMP_FPU |CPU_DUMP_CCOP ); -if (qemu_log_separate ()) { -FILE *logfile =qemu_log_lock (); -qemu_log ("qemu: fatal: " ); -qemu_log_vprintf (fmt, ap2); -qemu_log ("\n" ); -log_cpu_state (cpu,CPU_DUMP_FPU |CPU_DUMP_CCOP ); -qemu_log_flush (); -qemu_log_unlock (logfile); -qemu_log_close (); - } -va_end (ap2); -va_end (ap); -replay_finish (); -#if defined(CONFIG_USER_ONLY )
cpu.c void cpu_single_step(CPUState *cpu, int enabled) · line 396
Quoted 10 lines
cpu.c +0
-10- { -struct sigaction act; -sigfillset (&act.sa_mask); - act.sa_handler =SIG_DFL ; - act.sa_flags =0 ; -sigaction (SIGABRT , &act,NULL ); - } -#endif -abort (); -}
This ifdef won't work moved to cpus-common.c.
Coincidentally, Alex and I were a bit stumped early this morning about a g_assert_not_reached() failing to kill a plugin example, and I had totally forgotten about this.
We should probably rearrange user-only to *not* trap SIGABRT in general; only SIGABRT that can be raised by the guest. Perhaps the signal number should be remapped in the guest, to one of the host rt signals? Then if the signal makes its way to the SIG_DFL handler, we remap to a host abort().
r~
PATCH 8/13 target: Include missing 'cpu.h'
In reply to Philippe Mathieu-Daudé viaThese target-specific files use the target-specific CPU state but lack to include "cpu.h"; i.e.:
../target/riscv/pmp.h:61:23: error: unknown type name 'CPURISCVState'
void pmpcfg_csr_write(CPURISCVState *env, uint32_t reg_index,
^
../target/nios2/mmu.h:43:18: error: unknown type name 'CPUNios2State'
void mmu_flip_um(CPUNios2State *env, unsigned int um);
^
../target/microblaze/mmu.h:88:19: error: unknown type name 'CPUMBState'; did you mean 'CPUState'?
uint32_t mmu_read(CPUMBState *env, bool ea, uint32_t rn);
^~~~~~~~~~
CPUState--- target/microblaze/mmu.h | 2 ++ target/mips/internal.h | 1 + target/nios2/mmu.h | 2 ++ target/riscv/pmp.h | 2 ++ 4 files changed, 7 insertions(+)
target/microblaze/mmu.h +2 -0
@@ -20,6 +20,8 @@#ifndef TARGET_MICROBLAZE_MMU_H #define TARGET_MICROBLAZE_MMU_H +#include "cpu.h" +#define MMU_R_PID 0#define MMU_R_ZPR 1#define MMU_R_TLBX 2
target/mips/internal.h +1 -0
@@ -12,6 +12,7 @@#ifdef CONFIG_TCG #include "tcg/tcg-internal.h" #endif +#include "cpu.h" /* * MMU types, the first four entries have the same layout as the
target/nios2/mmu.h +2 -0
@@ -21,6 +21,8 @@ #ifndef NIOS2_MMU_H #define NIOS2_MMU_H +#include "cpu.h" + typedef struct Nios2TLBEntry { target_ulong tag; target_ulong data;
target/riscv/pmp.h +2 -0
@@ -22,6 +22,8 @@ #ifndef RISCV_PMP_H #define RISCV_PMP_H +#include "cpu.h" + typedef enum { PMP_READ = 1 << 0, PMP_WRITE = 1 << 1,
Signature · 1 line
2.34.1
Re: [PATCH 08/13] target: Include missing 'cpu.h'
Quoted 14 lines · Philippe Mathieu-Daudé
These target-specific files use the target-specific CPU state but lack to include "
cpu.h"; i.e.:../target/riscv/pmp.h:61:23: error: unknown type name 'CPURISCVState' void pmpcfg_csr_write(CPURISCVState *env, uint32_t reg_index, ^ ../target/nios2/mmu.h:43:18: error: unknown type name 'CPUNios2State' void mmu_flip_um(CPUNios2State *env, unsigned int um); ^ ../target/microblaze/mmu.h:88:19: error: unknown type name 'CPUMBState'; did you mean 'CPUState'? uint32_t mmu_read(CPUMBState *env, bool ea, uint32_t rn); ^~~~~~~~~~ CPUState
Quoted 7 lines
Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/microblaze/mmu.h | 2 ++ target/mips/internal.h | 1 + target/nios2/mmu.h | 2 ++ target/riscv/pmp.h | 2 ++ 4 files changed, 7 insertions(+)
r~
PATCH 9/13 target: Use forward declared type instead of structure type
In reply to Philippe Mathieu-Daudé viaThe CPU state is forward declared.
--- target/mips/internal.h | 14 +++++++------- target/xtensa/cpu.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-)
target/mips/internal.h +7 -7
@@ -134,14 +134,14 @@ struct r4k_tlb_t { struct CPUMIPSTLBContext { uint32_t nb_tlb; uint32_t tlb_in_use; - int (*map_address)(struct CPUMIPSState *env, hwaddr *physical, int *prot, + int (*map_address)(CPUMIPSState *env, hwaddr *physical, int *prot, target_ulong address, MMUAccessType access_type); - void (*helper_tlbwi)(struct CPUMIPSState *env); - void (*helper_tlbwr)(struct CPUMIPSState *env); - void (*helper_tlbp)(struct CPUMIPSState *env); - void (*helper_tlbr)(struct CPUMIPSState *env); - void (*helper_tlbinv)(struct CPUMIPSState *env); - void (*helper_tlbinvf)(struct CPUMIPSState *env); + void (*helper_tlbwi)(CPUMIPSState *env); + void (*helper_tlbwr)(CPUMIPSState *env); + void (*helper_tlbp)(CPUMIPSState *env); + void (*helper_tlbr)(CPUMIPSState *env); + void (*helper_tlbinv)(CPUMIPSState *env); + void (*helper_tlbinvf)(CPUMIPSState *env); union { struct { r4k_tlb_t tlb[MIPS_TLB_MAX];
target/xtensa/cpu.h +1 -1
@@ -344,7 +344,7 @@ typedef struct XtensaGdbRegmap { } XtensaGdbRegmap;typedef struct XtensaCcompareTimer { -struct CPUXtensaState *env; +CPUXtensaState *env;QEMUTimer *timer; }XtensaCcompareTimer ;
Signature · 1 line
2.34.1
Re: [PATCH 09/13] target: Use forward declared type instead of structure type
Quoted 7 lines · Philippe Mathieu-Daudé
The CPU state is forward declared.
Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/mips/internal.h | 14 +++++++------- target/xtensa/cpu.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-)
r~
PATCH 10/13 target: Use CPUArchState as interface to target-specific CPU state
In reply to Philippe Mathieu-Daudé viaWhile CPUState is our interface with generic code, CPUArchState is our interface with target-specific code. Use CPUArchState as an abstract type, defined by each target.
--- include/exec/poison.h | 2 -- include/hw/core/cpu.h | 2 +- include/qemu/typedefs.h | 1 + target/alpha/cpu.h | 6 ++---- target/arm/cpu.h | 2 +- target/avr/cpu.h | 6 ++---- target/cris/cpu.h | 2 +- target/hexagon/cpu.h | 5 ++--- target/hppa/cpu.h | 6 ++---- target/i386/cpu.h | 2 +- target/m68k/cpu.h | 2 +- target/microblaze/cpu.h | 4 ++-- target/mips/cpu.h | 5 ++--- target/nios2/cpu.h | 4 ++-- target/openrisc/cpu.h | 2 +- target/ppc/cpu-qom.h | 2 +- target/ppc/cpu.h | 3 +-- target/riscv/cpu.h | 4 ++-- target/rx/cpu-qom.h | 2 -- target/rx/cpu.h | 2 +- target/s390x/cpu-qom.h | 2 +- target/s390x/cpu.h | 2 +- target/sh4/cpu.h | 2 +- target/sparc/cpu.h | 4 ++-- target/tricore/cpu.h | 5 ++--- target/xtensa/cpu.h | 6 +++--- 26 files changed, 36 insertions(+), 49 deletions(-)
include/exec/poison.h +0 -2
@@ -51,8 +51,6 @@#pragma GCC poison TARGET_PAGE_BITS#pragma GCC poison TARGET_PAGE_ALIGN -#pragma GCC poison CPUArchState -#pragma GCC poison CPU_INTERRUPT_HARD#pragma GCC poison CPU_INTERRUPT_EXITTB#pragma GCC poison CPU_INTERRUPT_HALT
include/hw/core/cpu.h +1 -1
@@ -340,7 +340,7 @@ struct CPUState {AddressSpace *as;MemoryRegion *memory; -void *env_ptr;/* CPUArchState */ +CPUArchState *env_ptr;IcountDecr *icount_decr_ptr;/* Accessed in parallel; all accesses must be atomic */
include/qemu/typedefs.h +1 -0
@@ -39,6 +39,7 @@ typedef struct CompatProperty CompatProperty;typedef struct CoMutex CoMutex ;typedef struct ConfidentialGuestSupport ConfidentialGuestSupport ;typedef struct CPUAddressSpace CPUAddressSpace ; +typedef struct CPUArchState CPUArchState ;typedef struct CPUState CPUState ;typedef struct DeviceListener DeviceListener ;typedef struct DeviceState DeviceState ;
target/alpha/cpu.h +2 -4
@@ -197,9 +197,7 @@ enum {#define MMU_USER_IDX 1#define MMU_PHYS_IDX 2 -typedef struct CPUAlphaState CPUAlphaState ; - -struct CPUAlphaState { +typedef struct CPUArchState { uint64_t ir[31]; float64 fir[31]; uint64_t pc;
@@ -251,7 +249,7 @@ struct CPUAlphaState {uint32_t features;uint32_t amask;int implver; -}; +} CPUAlphaState;/** * AlphaCPU:
target/arm/cpu.h +1 -1
@@ -232,7 +232,7 @@ typedef struct CPUARMTBFlags {target_ulong flags2; } CPUARMTBFlags; -typedef struct CPUARMState { +typedef struct CPUArchState { /* Regs for current mode. */ uint32_t regs[16];
target/avr/cpu.h +2 -4
@@ -108,9 +108,7 @@ typedef enum AVRFeature {AVR_FEATURE_RAMPZ , } AVRFeature; -typedef struct CPUAVRState CPUAVRState ; - -struct CPUAVRState { +typedef struct CPUArchState { uint32_t pc_w; /* 0x003fffff up to 22 bits */ uint32_t sregC; /* 0x00000001 1 bit */
@@ -137,7 +135,7 @@ struct CPUAVRState {bool fullacc;/* CPU/MEM if true MEM only otherwise */ uint64_t features; -}; +} CPUAVRState;/** * AVRCPU:
target/cris/cpu.h +1 -1
@@ -105,7 +105,7 @@ typedef struct {uint32_t lo; } TLBSet; -typedef struct CPUCRISState { +typedef struct CPUArchState { uint32_t regs[16]; /* P0 - P15 are referred to as special registers in the docs. */ uint32_t pregs[16];
target/hexagon/cpu.h +2 -3
@@ -75,7 +75,7 @@ typedef struct {/* Maximum number of vector temps in a packet */ #define VECTOR_TEMPS_MAX 4 -struct CPUHexagonState { +typedef struct CPUArchState { target_ulong gpr[TOTAL_PER_THREAD_REGS]; target_ulong pred[NUM_PREGS]; target_ulong branch_taken;
@@ -129,7 +129,7 @@ struct CPUHexagonState {target_ulong vstore_pending[VSTORES_MAX ];bool vtcm_pending;VTCMStoreLog vtcm_log; -}; +} CPUHexagonState;#define HEXAGON_CPU_CLASS (klass) \ OBJECT_CLASS_CHECK(HexagonCPUClass, (klass), TYPE_HEXAGON_CPU)
@@ -180,7 +180,6 @@ static inline int cpu_mmu_index(CPUHexagonState *env, bool ifetch)#endif } -typedef struct CPUHexagonState CPUArchState ;typedef HexagonCPU ArchCPU ;void hexagon_translate_init (void );
target/hppa/cpu.h +2 -4
@@ -138,8 +138,6 @@#define CR_IPSW 22#define CR_EIRR 23 -typedef struct CPUHPPAState CPUHPPAState ; -#if TARGET_REGISTER_BITS ==32 typedef uint32_t target_ureg ;typedef int32_t target_sreg ;
@@ -168,7 +166,7 @@ typedef struct { unsigned access_id : 16; } hppa_tlb_entry; -struct CPUHPPAState { +typedef struct CPUArchState { target_ureg gr[32]; uint64_t fr[32]; uint64_t sr[8]; /* stored shifted into place for gva */
@@ -207,7 +205,7 @@ struct CPUHPPAState {/* ??? We should use a more intelligent data structure. */ hppa_tlb_entry tlb[HPPA_TLB_ENTRIES ];uint32_t tlb_last; -}; +} CPUHPPAState;/** * HPPACPU:
target/i386/cpu.h +1 -1
@@ -1429,7 +1429,7 @@ typedef struct HVFX86LazyFlags {target_ulong auxbits; } HVFX86LazyFlags; -typedef struct CPUX86State { +typedef struct CPUArchState { /* standard registers */ target_ulong regs[CPU_NB_REGS]; target_ulong eip;
target/m68k/cpu.h +1 -1
@@ -79,7 +79,7 @@typedef CPU_LDoubleU FPReg ; -typedef struct CPUM68KState { +typedef struct CPUArchState { uint32_t dregs[8]; uint32_t aregs[8]; uint32_t pc;
target/microblaze/cpu.h +2 -2
@@ -24,7 +24,7 @@#include "exec/cpu-defs.h" #include "fpu/softfloat-types.h" -typedef struct CPUMBState CPUMBState ; +typedef struct CPUArchState CPUMBState ;#if !defined(CONFIG_USER_ONLY )#include "mmu.h" #endif
@@ -239,7 +239,7 @@ typedef struct CPUMBState CPUMBState;#define USE_NON_SECURE_M_AXI_DC_MASK 0x4#define USE_NON_SECURE_M_AXI_IC_MASK 0x8 -struct CPUMBState { +struct CPUArchState {uint32_t bvalue;/* TCG temporary, only valid during a TB */ uint32_t btarget;/* Full resolved branch destination */
target/mips/cpu.h +2 -3
@@ -524,8 +524,7 @@ struct TCState { };struct MIPSITUState ; -typedef struct CPUMIPSState CPUMIPSState ; -struct CPUMIPSState { +typedef struct CPUArchState { TCState active_tc; CPUMIPSFPUContext active_fpu;
@@ -1161,7 +1160,7 @@ struct CPUMIPSState {QEMUTimer *timer;/* Internal timer */ target_ulong exception_base;/* ExceptionBase input to the core */ uint64_t cp0_count_ns;/* CP0_Count clock period (in nanoseconds) */ -}; +} CPUMIPSState;/** * MIPSCPU:
target/nios2/cpu.h +2 -2
@@ -25,7 +25,7 @@#include "hw/core/cpu.h" #include "qom/object.h" -typedef struct CPUNios2State CPUNios2State ; +typedef struct CPUArchState CPUNios2State ;#if !defined(CONFIG_USER_ONLY )#include "mmu.h" #endif
@@ -155,7 +155,7 @@ struct Nios2CPUClass {#define CPU_INTERRUPT_NMI CPU_INTERRUPT_TGT_EXT_3 -struct CPUNios2State { +struct CPUArchState {uint32_t regs[NUM_CORE_REGS ];#if !defined(CONFIG_USER_ONLY )
target/openrisc/cpu.h +1 -1
@@ -242,7 +242,7 @@ typedef struct CPUOpenRISCTLBContext { } CPUOpenRISCTLBContext;#endif -typedef struct CPUOpenRISCState { +typedef struct CPUArchState { target_ulong shadow_gpr[16][32]; /* Shadow registers */ target_ulong pc; /* Program counter */
target/ppc/cpu-qom.h +1 -1
@@ -32,7 +32,7 @@OBJECT_DECLARE_TYPE (PowerPCCPU, PowerPCCPUClass, POWERPC_CPU) -typedef struct CPUPPCState CPUPPCState ; +typedef struct CPUArchState CPUPPCState ;typedef struct ppc_tb_t ppc_tb_t ;typedef struct ppc_dcr_t ppc_dcr_t ;
target/ppc/cpu.h +1 -2
@@ -1080,7 +1080,7 @@ struct ppc_radix_page_info {#define PPC_CPU_OPCODES_LEN 0x40#define PPC_CPU_INDIRECT_OPCODES_LEN 0x20 -struct CPUPPCState { +struct CPUArchState {/* Most commonly used resources during translated code execution first */ target_ulong gpr[32 ];/* general purpose registers */ target_ulong gprh[32 ];/* storage for GPR MSB, used by the SPE extension */
@@ -1476,7 +1476,6 @@ void ppc_compat_add_property(Object *obj, const char *name, uint32_t *compat_pvr, const char *basedesc);#endif /* defined(TARGET_PPC64) */ -typedef CPUPPCState CPUArchState ;typedef PowerPCCPU ArchCPU ;#include "exec/cpu-all.h"
target/riscv/cpu.h +2 -2
@@ -97,7 +97,7 @@ enum {#define MAX_RISCV_PMPS (16) -typedef struct CPURISCVState CPURISCVState ; +typedef struct CPUArchState CPURISCVState ;#if !defined(CONFIG_USER_ONLY )#include "pmp.h"
@@ -112,7 +112,7 @@ FIELD(VTYPE, VMA, 7, 1) FIELD(VTYPE, VEDIV, 8, 2) FIELD(VTYPE, RESERVED, 10, sizeof(target_ulong) * 8 - 11) -struct CPURISCVState { +struct CPUArchState {target_ulong gpr[32 ];target_ulong gprh[32 ];/* 64 top bits of the 128-bit registers */ uint64_t fpr[32 ];/* assume both F and D extensions */
target/rx/cpu-qom.h +0 -2
@@ -45,6 +45,4 @@ struct RXCPUClass { DeviceReset parent_reset; }; -#define CPUArchState struct CPURXState -#endif
target/rx/cpu.h +1 -1
@@ -65,7 +65,7 @@ enum { NUM_REGS = 16, }; -typedef struct CPURXState { +typedef struct CPUArchState { /* CPU registers */ uint32_t regs[NUM_REGS]; /* general registers */ uint32_t psw_o; /* O bit of status register */
target/s390x/cpu-qom.h +1 -1
@@ -63,6 +63,6 @@ struct S390CPUClass { void (*reset)(CPUState *cpu, cpu_reset_type type); }; -typedef struct CPUS390XState CPUS390XState ; +typedef struct CPUArchState CPUS390XState ;#endif
target/s390x/cpu.h +1 -1
@@ -51,7 +51,7 @@ typedef struct PSW {uint64_t addr; }PSW ; -struct CPUS390XState { +struct CPUArchState {uint64_t regs[16 ];/* GP registers */ /* * The floating point registers are part of the vector registers.
target/sh4/cpu.h +1 -1
@@ -130,7 +130,7 @@ typedef struct memory_content {struct memory_content *next; } memory_content; -typedef struct CPUSH4State { +typedef struct CPUArchState { uint32_t flags; /* general execution flags */ uint32_t gregs[24]; /* general registers */ float32 fregs[32]; /* floating point registers */
target/sparc/cpu.h +2 -2
@@ -420,7 +420,7 @@ struct CPUTimertypedef struct CPUTimer CPUTimer ; -typedef struct CPUSPARCState CPUSPARCState ; +typedef struct CPUArchState CPUSPARCState ; #if defined(TARGET_SPARC64) typedef union { uint64_t mmuregs[16];
@@ -439,7 +439,7 @@ typedef union { }; } SparcV9MMU;#endif -struct CPUSPARCState { +struct CPUArchState {target_ulong gregs[8 ];/* general registers */ target_ulong *regwptr;/* pointer to current register window */ target_ulong pc;/* program counter */
target/tricore/cpu.h +2 -3
@@ -28,8 +28,7 @@ struct tricore_boot_info;typedef struct tricore_def_t tricore_def_t ; -typedef struct CPUTriCoreState CPUTriCoreState ; -struct CPUTriCoreState { +typedef struct CPUArchState { /* GPR Register */ uint32_t gpr_a[16]; uint32_t gpr_d[16];
@@ -189,7 +188,7 @@ struct CPUTriCoreState {const tricore_def_t *cpu_model;void *irq[8 ];struct QEMUTimer *timer;/* Internal timer */ -}; +} CPUTriCoreState;/** * TriCoreCPU:
target/xtensa/cpu.h +3 -3
@@ -306,7 +306,7 @@ typedef enum {INTTYPE_MAX } interrupt_type; -struct CPUXtensaState ; +typedef struct CPUArchState CPUXtensaState ; typedef struct xtensa_tlb_entry { uint32_t vaddr;
@@ -506,7 +506,7 @@ enum { };#endif -typedef struct CPUXtensaState { +struct CPUArchState {const XtensaConfig *config;uint32_t regs[16 ];uint32_t pc;
@@ -545,7 +545,7 @@ typedef struct CPUXtensaState {/* Watchpoints for DBREAK registers */ struct CPUWatchpoint *cpu_watchpoint[MAX_NDBREAK ]; -} CPUXtensaState; +};/** * XtensaCPU:
Signature · 1 line
2.34.1
Re: [PATCH 10/13] target: Use CPUArchState as interface to target-specific CPU state
Quoted 25 lines · Philippe Mathieu-Daudé
While CPUState is our interface with generic code, CPUArchState is our interface with target-specific code. Use CPUArchState as an abstract type, defined by each target.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/exec/poison.h | 2 -- include/hw/core/cpu.h | 2 +- include/qemu/typedefs.h | 1 + target/alpha/cpu.h | 6 ++---- target/arm/cpu.h | 2 +- target/avr/cpu.h | 6 ++---- target/cris/cpu.h | 2 +- target/hexagon/cpu.h | 5 ++--- target/hppa/cpu.h | 6 ++---- target/i386/cpu.h | 2 +- target/m68k/cpu.h | 2 +- target/microblaze/cpu.h | 4 ++-- target/mips/cpu.h | 5 ++--- target/nios2/cpu.h | 4 ++-- target/openrisc/cpu.h | 2 +- target/ppc/cpu-qom.h | 2 +- target/ppc/cpu.h | 3 +-- target/riscv/cpu.h | 4 ++-- target/rx/cpu-qom.h | 2 --
Quoted 8 lines
target/rx/cpu.h | 2 +- target/s390x/cpu-qom.h | 2 +- target/s390x/cpu.h | 2 +- target/sh4/cpu.h | 2 +- target/sparc/cpu.h | 4 ++-- target/tricore/cpu.h | 5 ++--- target/xtensa/cpu.h | 6 +++--- 26 files changed, 36 insertions(+), 49 deletions(-)
Nice.
It's tempting to purge CPUFooState entirely, which would eliminate e.g. patch 8, and put the onus on having cpu.h (and thus the actual definition of CPUArchState) in scope to the C file that includes those headers.
Re: [PATCH 10/13] target: Use CPUArchState as interface to target-specific CPU state
Quoted 35 lines · Richard Henderson
Quoted 32 lines · Philippe Mathieu-Daudé
While CPUState is our interface with generic code, CPUArchState is our interface with target-specific code. Use CPUArchState as an abstract type, defined by each target.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
include/exec/poison.h | 2 --
include/hw/core/cpu.h | 2 +-
include/qemu/typedefs.h| 1 +
target/alpha/cpu.h | 6 ++----
target/arm/cpu.h | 2 +-
target/avr/cpu.h | 6 ++----
target/cris/cpu.h | 2 +-
target/hexagon/cpu.h | 5 ++---target/hppa/cpu.h | 6 ++---- target/i386/cpu.h | 2 +- target/m68k/cpu.h | 2 +-
target/microblaze/cpu.h| 4 ++--
target/mips/cpu.h | 5 ++---
target/nios2/cpu.h | 4 ++--
target/openrisc/cpu.h | 2 +-
target/ppc/cpu-qom.h | 2 +-
target/ppc/cpu.h | 3 +--
target/riscv/cpu.h | 4 ++--
target/rx/cpu-qom.h | 2 --
target/rx/cpu.h | 2 +-
target/s390x/cpu-qom.h | 2 +-
target/s390x/cpu.h | 2 +-
target/sh4/cpu.h | 2 +-
target/sparc/cpu.h | 4 ++--
target/tricore/cpu.h | 5 ++---
target/xtensa/cpu.h | 6 +++---Quoted 1 line
26 files changed, 36 insertions(+), 49 deletions(-)
Quoted 3 lines
Nice.
It's tempting to purge CPUFooState entirely, which would eliminate e.g. patch 8, and put the onus on having
cpu.h(and thus the actual definition of CPUArchState) in scope to the C file that includes those headers.
I tried but I doubt the result code will please maintainers. I went back and inverted the typedef, to keep CPUFooState. Maybe a simple aesthetic concern... I can post (on top of the respin) if you are interested.
Thanks,
Phil.
PATCH 11/13 exec/cpu_ldst: Restrict TCG-specific code
In reply to Philippe Mathieu-Daudé via--- include/exec/cpu_ldst.h | 53 ++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 25 deletions(-)
include/exec/cpu_ldst.h +28 -25
@@ -321,6 +321,8 @@ void cpu_atomic_sto_le_mmu(CPUArchState *env, target_ulong addr, Int128 val,void cpu_atomic_sto_be_mmu (CPUArchState *env,target_ulong addr,Int128 val,MemOpIdx oi,uintptr_t retaddr); +#ifdef CONFIG_TCG +#if defined(CONFIG_USER_ONLY )extern __threaduintptr_t helper_retaddr;
@@ -374,9 +376,34 @@ static inline CPUTLBEntry *tlb_entry(CPUArchState *env, uintptr_t mmu_idx, {return &env_tlb (env)->f[mmu_idx].table[tlb_index (env, mmu_idx, addr)]; } -#endif /* defined(CONFIG_USER_ONLY) */ +/** +* tlb_vaddr_to_host: +* @env: CPUArchState +* @addr: guest virtual address to look up +* @access_type: 0 for read, 1 for write, 2 for execute +* @mmu_idx: MMU index to use for lookup +* +* Look up the specified guest virtual index in the TCG softmmu TLB. +* If we can translate a host virtual address suitable for direct RAM +* access, without causing a guest exception, then return it. +* Otherwise (TLB entry is for an I/O access, guest software +* TLB fill required, etc) return NULL. +*/ +#ifdef CONFIG_USER_ONLY +static inline void *tlb_vaddr_to_host (CPUArchState *env,abi_ptr addr, +MMUAccessType access_type,int mmu_idx) +{ +return g2h (env_cpu (env), addr); +} +#else +void *tlb_vaddr_to_host (CPUArchState *env,abi_ptr addr, +MMUAccessType access_type,int mmu_idx); +#endif + +#endif /* CONFIG_TCG */ +#ifdef TARGET_WORDS_BIGENDIAN # define cpu_lduw_data cpu_lduw_be_data# define cpu_ldsw_data cpu_ldsw_be_data
@@ -450,28 +477,4 @@ static inline int cpu_ldsw_code(CPUArchState *env, abi_ptr addr) return (int16_t)cpu_lduw_code(env, addr); } -/** -* tlb_vaddr_to_host: -* @env: CPUArchState -* @addr: guest virtual address to look up -* @access_type: 0 for read, 1 for write, 2 for execute -* @mmu_idx: MMU index to use for lookup -* -* Look up the specified guest virtual index in the TCG softmmu TLB. -* If we can translate a host virtual address suitable for direct RAM -* access, without causing a guest exception, then return it. -* Otherwise (TLB entry is for an I/O access, guest software -* TLB fill required, etc) return NULL. -*/ -#ifdef CONFIG_USER_ONLY -static inline void *tlb_vaddr_to_host (CPUArchState *env,abi_ptr addr, -MMUAccessType access_type,int mmu_idx) -{ -return g2h (env_cpu (env), addr); -} -#else -void *tlb_vaddr_to_host (CPUArchState *env,abi_ptr addr, -MMUAccessType access_type,int mmu_idx); -#endif -#endif /* CPU_LDST_H */
Signature · 1 line
2.34.1
Re: [PATCH 11/13] exec/cpu_ldst: Restrict TCG-specific code
Quoted 40 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/exec/cpu_ldst.h | 53 ++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 25 deletions(-)include/exec/cpu_ldst.h +17
-1@@ -321,6 +321,8 @@ void cpu_atomic_sto_le_mmu(CPUArchState *env, target_ulong addr, Int128 val,void cpu_atomic_sto_be_mmu (CPUArchState *env,target_ulong addr,Int128 val,MemOpIdx oi,uintptr_t retaddr); +#ifdef CONFIG_TCG +#if defined(CONFIG_USER_ONLY )extern __threaduintptr_t helper_retaddr;@@ -374,9 +376,34 @@ static inline CPUTLBEntry *tlb_entry(CPUArchState *env, uintptr_t mmu_idx, {return &env_tlb (env)->f[mmu_idx].table[tlb_index (env, mmu_idx, addr)]; } -#endif /* defined(CONFIG_USER_ONLY) */ +/** +* tlb_vaddr_to_host: +* @env: CPUArchState +* @addr: guest virtual address to look up +* @access_type: 0 for read, 1 for write, 2 for execute +* @mmu_idx: MMU index to use for lookup +* +* Look up the specified guest virtual index in the TCG softmmu TLB. +* If we can translate a host virtual address suitable for direct RAM +* access, without causing a guest exception, then return it. +* Otherwise (TLB entry is for an I/O access, guest software +* TLB fill required, etc) return NULL. +*/ +#ifdef CONFIG_USER_ONLY +static inline void *tlb_vaddr_to_host(CPUArchState *env, abi_ptr addr,
include/exec/cpu_ldst.h static inline CPUTLBEntry *tlb_entry(CPUArchState *env, uintptr_t mmu_idx, · line 405
Quoted 10 lines
include/exec/cpu_ldst.h +10
-0+ MMUAccessType access_type, int mmu_idx) +{ +return g2h (env_cpu (env), addr); +} +#else +void *tlb_vaddr_to_host (CPUArchState *env,abi_ptr addr, +MMUAccessType access_type,int mmu_idx); +#endif + +#endif /* CONFIG_TCG */
Why is it just these functions you think are tcg only?
I think the entire file is tcg only, if you are considering stuff that uses the softmmu tlb.
PATCH 12/13 exec/cpu-all: Restrict cpu_copy() to user emulation
In reply to Philippe Mathieu-Daudé via--- include/exec/cpu-all.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/exec/cpu-all.h +2 -1
@@ -296,10 +296,11 @@ void *page_alloc_target_data(target_ulong address, size_t size);* at @address, as per page_alloc_target_data. */ void *page_get_target_data (target_ulong address); -#endif CPUArchState *cpu_copy (CPUArchState *env); +#endif /* CONFIG_USER_ONLY */ +/* Flags for use in ENV->INTERRUPT_PENDING. The numbers assigned here are non-sequential in order to preserve
Signature · 1 line
2.34.1
Re: [PATCH 12/13] exec/cpu-all: Restrict cpu_copy() to user emulation
Quoted 10 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/exec/cpu-all.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/exec/cpu-all.h +0
-0
include/exec/cpu-all.h void *page_alloc_target_data(target_ulong address, size_t size); · line 303
Quoted 9 lines
include/exec/cpu-all.h +2
-1@@ -296,10 +296,11 @@ void *page_alloc_target_data(target_ulong address, size_t size);* at @address, as per page_alloc_target_data. */ void *page_get_target_data (target_ulong address); -#endif CPUArchState *cpu_copy (CPUArchState *env); +#endif /* CONFIG_USER_ONLY */ +
Alternately, move it to linux-user/user-internals.h.
r~
PATCH 13/13 exec: Move translation declarations to 'translate-all.h'
In reply to Philippe Mathieu-Daudé viaTranslation declarations are only useful to TCG accelerator.
--- accel/stubs/tcg-stub.c | 1 + accel/tcg/cpu-exec-common.c | 1 + accel/tcg/cpu-exec.c | 1 + accel/tcg/cputlb.c | 1 + accel/tcg/hmp.c | 2 +- accel/tcg/internal.h | 2 +- accel/tcg/plugin-gen.c | 2 +- accel/tcg/tb-hash.h | 2 +- accel/tcg/tcg-accel-ops-icount.c | 2 +- accel/tcg/tcg-accel-ops-mttcg.c | 2 +- accel/tcg/tcg-accel-ops-rr.c | 2 +- accel/tcg/tcg-accel-ops.c | 2 +- accel/tcg/tcg-runtime.c | 1 + accel/tcg/translate-all.c | 1 + accel/tcg/translator.c | 2 +- accel/tcg/user-exec.c | 2 +- bsd-user/main.c | 2 +- bsd-user/qemu.h | 2 +- gdbstub.c | 1 + hw/ppc/spapr_hcall.c | 1 + include/exec/cpu-all.h | 5 - include/exec/cpu_ldst.h | 1 + include/exec/exec-all.h | 350 ---------------------- include/exec/ram_addr.h | 2 - include/exec/translate-all.h | 372 +++++++++++++++++++++++- linux-user/main.c | 2 +- linux-user/user-internals.h | 2 +- plugins/api.c | 2 +- plugins/core.c | 2 +- plugins/loader.c | 2 +- semihosting/console.c | 1 + target/alpha/cpu.c | 2 +- target/alpha/fpu_helper.c | 2 +- target/alpha/helper.c | 1 + target/alpha/int_helper.c | 2 +- target/alpha/mem_helper.c | 1 + target/alpha/sys_helper.c | 1 + target/alpha/translate.c | 2 +- target/alpha/vax_helper.c | 2 +- target/arm/cpu.c | 2 +- target/arm/debug_helper.c | 2 +- target/arm/helper-a64.c | 2 +- target/arm/helper.c | 2 +- target/arm/m_helper.c | 2 +- target/arm/mte_helper.c | 2 +- target/arm/mve_helper.c | 2 +- target/arm/op_helper.c | 1 + target/arm/pauth_helper.c | 2 +- target/arm/sve_helper.c | 2 +- target/arm/tlb_helper.c | 1 + target/arm/translate-a64.c | 2 +- target/arm/translate-mve.c | 2 +- target/arm/translate-neon.c | 2 +- target/arm/translate-sve.c | 2 +- target/arm/translate-vfp.c | 2 +- target/arm/translate.c | 2 +- target/avr/cpu.c | 2 +- target/avr/helper.c | 1 + target/avr/translate.c | 2 +- target/cris/helper.c | 1 + target/cris/mmu.c | 1 + target/cris/op_helper.c | 1 + target/cris/translate.c | 2 +- target/hexagon/cpu.c | 2 +- target/hexagon/op_helper.c | 1 + target/hppa/cpu.c | 1 + target/hppa/helper.c | 1 + target/hppa/mem_helper.c | 1 + target/hppa/op_helper.c | 1 + target/hppa/translate.c | 2 +- target/i386/helper.c | 1 + target/i386/machine.c | 1 + target/i386/tcg/excp_helper.c | 1 + target/i386/tcg/fpu_helper.c | 2 + target/i386/tcg/helper-tcg.h | 2 +- target/i386/tcg/int_helper.c | 2 +- target/i386/tcg/mem_helper.c | 1 + target/i386/tcg/misc_helper.c | 1 + target/i386/tcg/mpx_helper.c | 2 +- target/i386/tcg/seg_helper.c | 1 + target/i386/tcg/sysemu/bpt_helper.c | 1 + target/i386/tcg/sysemu/svm_helper.c | 1 + target/i386/tcg/translate.c | 2 +- target/i386/tcg/user/excp_helper.c | 1 + target/i386/tcg/user/seg_helper.c | 1 + target/m68k/fpu_helper.c | 2 +- target/m68k/helper.c | 1 + target/m68k/op_helper.c | 1 + target/m68k/translate.c | 2 +- target/microblaze/cpu.c | 2 +- target/microblaze/helper.c | 1 + target/microblaze/mmu.c | 1 + target/microblaze/op_helper.c | 1 + target/microblaze/translate.c | 2 +- target/mips/cpu.c | 2 +- target/mips/sysemu/cp0.c | 1 + target/mips/sysemu/physaddr.c | 2 +- target/mips/tcg/exception.c | 1 + target/mips/tcg/fpu_helper.c | 2 +- target/mips/tcg/ldst_helper.c | 2 +- target/mips/tcg/msa_helper.c | 2 +- target/mips/tcg/op_helper.c | 2 +- target/mips/tcg/sysemu/cp0_helper.c | 1 + target/mips/tcg/sysemu/special_helper.c | 2 +- target/mips/tcg/sysemu/tlb_helper.c | 1 + target/nios2/helper.c | 1 + target/nios2/mmu.c | 1 + target/nios2/op_helper.c | 1 + target/nios2/translate.c | 2 +- target/openrisc/exception.c | 1 + target/openrisc/exception_helper.c | 1 + target/openrisc/interrupt.c | 2 +- target/openrisc/interrupt_helper.c | 2 +- target/openrisc/mmu.c | 1 + target/openrisc/sys_helper.c | 1 + target/openrisc/translate.c | 2 +- target/ppc/excp_helper.c | 1 + target/ppc/fpu_helper.c | 2 +- target/ppc/helper_regs.c | 1 + target/ppc/machine.c | 2 +- target/ppc/mem_helper.c | 2 +- target/ppc/misc_helper.c | 1 + target/ppc/mmu-hash32.c | 2 +- target/ppc/mmu-hash64.c | 2 +- target/ppc/mmu-radix64.c | 2 +- target/ppc/mmu_common.c | 2 +- target/ppc/mmu_helper.c | 1 + target/ppc/power8-pmu.c | 2 +- target/ppc/timebase_helper.c | 2 +- target/ppc/translate.c | 2 +- target/ppc/user_only_helper.c | 1 + target/riscv/bitmanip_helper.c | 2 +- target/riscv/cpu.c | 2 +- target/riscv/cpu_helper.c | 1 + target/riscv/csr.c | 1 + target/riscv/fpu_helper.c | 2 +- target/riscv/m128_helper.c | 2 +- target/riscv/op_helper.c | 1 + target/riscv/pmp.c | 1 + target/riscv/translate.c | 2 +- target/riscv/vector_helper.c | 2 +- target/rx/cpu.c | 1 + target/rx/op_helper.c | 1 + target/rx/translate.c | 2 +- target/s390x/gdbstub.c | 1 + target/s390x/interrupt.c | 2 +- target/s390x/mmu_helper.c | 1 + target/s390x/sigp.c | 1 + target/s390x/tcg/cc_helper.c | 1 + target/s390x/tcg/crypto_helper.c | 2 +- target/s390x/tcg/excp_helper.c | 1 + target/s390x/tcg/fpu_helper.c | 2 +- target/s390x/tcg/int_helper.c | 2 +- target/s390x/tcg/mem_helper.c | 1 + target/s390x/tcg/misc_helper.c | 1 + target/s390x/tcg/translate.c | 2 +- target/s390x/tcg/vec_fpu_helper.c | 2 +- target/s390x/tcg/vec_helper.c | 2 +- target/sh4/cpu.c | 2 +- target/sh4/helper.c | 1 + target/sh4/op_helper.c | 1 + target/sh4/translate.c | 2 +- target/sparc/cpu.c | 2 +- target/sparc/fop_helper.c | 1 + target/sparc/helper.c | 1 + target/sparc/ldst_helper.c | 1 + target/sparc/machine.c | 2 +- target/sparc/mmu_helper.c | 1 + target/sparc/translate.c | 2 +- target/sparc/win_helper.c | 2 +- target/tricore/cpu.c | 2 +- target/tricore/helper.c | 1 + target/tricore/op_helper.c | 1 + target/tricore/translate.c | 2 +- target/xtensa/dbg_helper.c | 2 +- target/xtensa/exc_helper.c | 1 + target/xtensa/fpu_helper.c | 2 +- target/xtensa/helper.c | 1 + target/xtensa/mmu_helper.c | 1 + target/xtensa/op_helper.c | 2 +- target/xtensa/translate.c | 2 +- target/xtensa/win_helper.c | 2 +- tcg/region.c | 2 +- tcg/tcg-op.c | 2 +- tcg/tcg.c | 2 +- 185 files changed, 553 insertions(+), 459 deletions(-)
accel/stubs/tcg-stub.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" void tb_flush (CPUState *cpu) {
accel/tcg/cpu-exec-common.c +1 -0
@@ -21,6 +21,7 @@#include "sysemu/cpus.h" #include "sysemu/tcg.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" bool tcg_allowed;
accel/tcg/cpu-exec.c +1 -0
@@ -27,6 +27,7 @@#include "trace.h" #include "disas/disas.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #include "qemu/atomic.h" #include "qemu/compiler.h"
accel/tcg/cputlb.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/main-loop.h" #include "hw/core/tcg-cpu-ops.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/memory.h" #include "exec/cpu_ldst.h" #include "exec/cputlb.h"
accel/tcg/hmp.c +1 -1
@@ -2,7 +2,7 @@#include "qemu/error-report.h" #include "qapi/error.h" #include "qapi/qapi-commands-machine.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "monitor/monitor.h" #include "sysemu/tcg.h"
accel/tcg/internal.h +1 -1
@@ -9,7 +9,7 @@#ifndef ACCEL_TCG_INTERNAL_H #define ACCEL_TCG_INTERNAL_H -#include "exec/exec-all.h" +#include "exec/translate-all.h" TranslationBlock *tb_gen_code(CPUState *cpu, target_ulong pc, target_ulong cs_base, uint32_t flags,
accel/tcg/plugin-gen.c +1 -1
@@ -45,7 +45,7 @@#include "qemu/osdep.h" #include "tcg/tcg.h" #include "tcg/tcg-op.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/plugin-gen.h" #include "exec/translator.h"
accel/tcg/tb-hash.h +1 -1
@@ -21,7 +21,7 @@#define EXEC_TB_HASH_H #include "exec/cpu-defs.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/xxhash.h" #ifdef CONFIG_SOFTMMU
accel/tcg/tcg-accel-ops-icount.c +1 -1
@@ -30,7 +30,7 @@#include "sysemu/cpu-timers.h" #include "qemu/main-loop.h" #include "qemu/guest-random.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg-accel-ops.h" #include "tcg-accel-ops-icount.h"
accel/tcg/tcg-accel-ops-mttcg.c +1 -1
@@ -31,7 +31,7 @@#include "qemu/main-loop.h" #include "qemu/notify.h" #include "qemu/guest-random.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "hw/boards.h" #include "tcg-accel-ops.h"
accel/tcg/tcg-accel-ops-rr.c +1 -1
@@ -31,7 +31,7 @@#include "qemu/main-loop.h" #include "qemu/notify.h" #include "qemu/guest-random.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg-accel-ops.h" #include "tcg-accel-ops-rr.h"
accel/tcg/tcg-accel-ops.c +1 -1
@@ -32,7 +32,7 @@#include "sysemu/cpu-timers.h" #include "qemu/main-loop.h" #include "qemu/guest-random.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg-accel-ops.h" #include "tcg-accel-ops-mttcg.h"
accel/tcg/tcg-runtime.c +1 -0
@@ -27,6 +27,7 @@#include "exec/helper-proto.h" #include "exec/cpu_ldst.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "disas/disas.h" #include "exec/log.h" #include "tcg/tcg.h"
accel/tcg/translate-all.c +1 -0
@@ -24,6 +24,7 @@#include "trace.h" #include "disas/disas.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #if defined(CONFIG_USER_ONLY )#include "qemu.h"
accel/tcg/translator.c +1 -1
@@ -11,7 +11,7 @@#include "qemu/error-report.h" #include "tcg/tcg.h" #include "tcg/tcg-op.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gen-icount.h" #include "exec/log.h" #include "exec/translator.h"
accel/tcg/user-exec.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "hw/core/tcg-cpu-ops.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #include "qemu/bitops.h" #include "exec/cpu_ldst.h"
bsd-user/main.c +1 -1
@@ -38,7 +38,7 @@#include "qemu/path.h" #include "qemu/help_option.h" #include "qemu/module.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #include "qemu/timer.h" #include "qemu/envlist.h"
bsd-user/qemu.h +1 -1
@@ -21,7 +21,7 @@#include "cpu.h" #include "qemu/units.h" #include "exec/cpu_ldst.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #undef DEBUG_REMAP
gdbstub.c +1 -0
@@ -31,6 +31,7 @@#include "qemu/cutils.h" #include "qemu/module.h" #include "trace/trace-root.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #ifdef CONFIG_USER_ONLY #include "qemu.h"
hw/ppc/spapr_hcall.c +1 -0
@@ -8,6 +8,7 @@#include "qemu/module.h" #include "qemu/error-report.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "helper_regs.h" #include "hw/ppc/spapr.h" #include "hw/ppc/spapr_cpu_core.h"
include/exec/cpu-all.h +0 -5
@@ -429,11 +429,6 @@ void dump_opcount_info(GString *buf);#endif /* !CONFIG_USER_ONLY */ -/* accel/tcg/cpu-exec.c */ -int cpu_exec (CPUState *cpu); -void tcg_exec_realizefn (CPUState *cpu,Error **errp); -void tcg_exec_unrealizefn (CPUState *cpu); -/** * cpu_set_cpustate_pointers(cpu) * @cpu: The cpu object
include/exec/cpu_ldst.h +1 -0
@@ -62,6 +62,7 @@#ifndef CPU_LDST_H #define CPU_LDST_H +#include "exec/cpu-defs.h" #include "exec/memopidx.h" #include "qemu/int128.h" #include "cpu.h"
include/exec/exec-all.h +0 -350
368 lines not on this page · raw message
include/exec/ram_addr.h +0 -2
@@ -147,8 +147,6 @@ static inline void qemu_ram_block_writeback(RAMBlock *block)#define DIRTY_CLIENTS_ALL ((1 << DIRTY_MEMORY_NUM) - 1)#define DIRTY_CLIENTS_NOCODE (DIRTY_CLIENTS_ALL & ~(1 << DIRTY_MEMORY_CODE)) -void tb_invalidate_phys_range (ram_addr_t start,ram_addr_t end); -static inline bool cpu_physical_memory_get_dirty (ram_addr_t start,ram_addr_t length,unsigned client)
include/exec/translate-all.h +371 -1
383 lines not on this page · raw message
linux-user/main.c +1 -1
@@ -39,7 +39,7 @@#include "qemu/help_option.h" #include "qemu/module.h" #include "qemu/plugin.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #include "tcg/tcg.h" #include "qemu/timer.h"
linux-user/user-internals.h +1 -1
@@ -19,7 +19,7 @@#define LINUX_USER_USER_INTERNALS_H #include "exec/user/thunk.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/log.h" extern char *exec_path;
plugins/api.c +1 -1
@@ -38,7 +38,7 @@#include "qemu/plugin.h" #include "qemu/log.h" #include "tcg/tcg.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/ram_addr.h" #include "disas/disas.h" #include "plugin.h"
plugins/core.c +1 -1
@@ -23,7 +23,7 @@#include "hw/core/cpu.h" #include "exec/cpu-common.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "tcg/tcg.h" #include "tcg/tcg-op.h"
plugins/loader.c +1 -1
@@ -27,7 +27,7 @@#include "qemu/xxhash.h" #include "qemu/plugin.h" #include "hw/core/cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #ifndef CONFIG_USER_ONLY #include "hw/boards.h" #endif
semihosting/console.c +1 -0
@@ -20,6 +20,7 @@#include "semihosting/console.h" #include "exec/gdbstub.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/log.h" #include "chardev/char.h" #include "chardev/char-fe.h"
target/alpha/cpu.c +1 -1
@@ -23,7 +23,7 @@#include "qapi/error.h" #include "qemu/qemu-print.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" static void alpha_cpu_set_pc (CPUState *cs,vaddr value)
target/alpha/fpu_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/alpha/helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "fpu/softfloat-types.h" #include "exec/helper-proto.h" #include "qemu/qemu-print.h"
target/alpha/int_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target/alpha/mem_helper.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" static void do_unaligned_access (CPUAlphaState *env,vaddr addr,uintptr_t retaddr)
target/alpha/sys_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h"
target/alpha/translate.c +1 -1
@@ -22,7 +22,7 @@#include "sysemu/cpus.h" #include "disas/disas.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/alpha/vax_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/arm/cpu.c +1 -1
@@ -31,7 +31,7 @@#include "hw/core/tcg-cpu-ops.h" #endif /* CONFIG_TCG */ #include "internals.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "hw/qdev-properties.h" #if !defined(CONFIG_USER_ONLY )#include "hw/loader.h"
target/arm/debug_helper.c +1 -1
@@ -8,7 +8,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "internals.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" /* Return true if the linked breakpoint entry lbn passes its checks */
target/arm/helper-a64.c +1 -1
@@ -28,7 +28,7 @@#include "qemu/bitops.h" #include "internals.h" #include "qemu/crc32c.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "qemu/int128.h" #include "qemu/atomic128.h"
target/arm/helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/bitops.h" #include "qemu/crc32c.h" #include "qemu/qemu-print.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include <zlib.h> /* For crc32 */ #include "hw/irq.h" #include "semihosting/semihost.h"
target/arm/m_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/crc32c.h" #include "qemu/qemu-print.h" #include "qemu/log.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include <zlib.h> /* For crc32 */ #include "semihosting/semihost.h" #include "sysemu/cpus.h"
target/arm/mte_helper.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "internals.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/ram_addr.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/arm/mve_helper.c +1 -1
@@ -23,7 +23,7 @@#include "vec_internal.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #include "fpu/softfloat.h"
target/arm/op_helper.c +1 -0
@@ -22,6 +22,7 @@#include "exec/helper-proto.h" #include "internals.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #define SIGNBIT (uint32_t)0x80000000
target/arm/pauth_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "internals.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "tcg/tcg-gvec-desc.h"
target/arm/sve_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "internals.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "tcg/tcg-gvec-desc.h"
target/arm/tlb_helper.c +1 -0
@@ -9,6 +9,7 @@#include "cpu.h" #include "internals.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" static inline uint32_t merge_syn_data_abort(uint32_t template_syn,
target/arm/translate-a64.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "qemu/log.h"
target/arm/translate-mve.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gen-icount.h" #include "translate.h" #include "translate-a32.h"
target/arm/translate-neon.c +1 -1
@@ -23,7 +23,7 @@#include "qemu/osdep.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gen-icount.h" #include "translate.h" #include "translate-a32.h"
target/arm/translate-sve.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "tcg/tcg-gvec-desc.h"
target/arm/translate-vfp.c +1 -1
@@ -23,7 +23,7 @@#include "qemu/osdep.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gen-icount.h" #include "translate.h" #include "translate-a32.h"
target/arm/translate.c +1 -1
@@ -23,7 +23,7 @@#include "cpu.h" #include "internals.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "qemu/log.h"
target/avr/cpu.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/qemu-print.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "cpu.h" #include "disas/dis-asm.h"
target/avr/helper.c +1 -0
@@ -23,6 +23,7 @@#include "cpu.h" #include "hw/core/tcg-cpu-ops.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/address-spaces.h" #include "exec/helper-proto.h"
target/avr/translate.c +1 -1
@@ -22,7 +22,7 @@#include "qemu/qemu-print.h" #include "tcg/tcg.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/cris/helper.c +1 -0
@@ -25,6 +25,7 @@#include "mmu.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/cris/mmu.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "mmu.h" #ifdef DEBUG
target/cris/op_helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" //#define CRIS_OP_HELPER_DEBUG
target/cris/translate.c +1 -1
@@ -26,7 +26,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/helper-proto.h" #include "mmu.h"
target/hexagon/cpu.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/qemu-print.h" #include "cpu.h" #include "internal.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qapi/error.h" #include "hw/qdev-properties.h" #include "fpu/softfloat-helpers.h"
target/hexagon/op_helper.c +1 -0
@@ -18,6 +18,7 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/hppa/cpu.c +1 -0
@@ -25,6 +25,7 @@#include "cpu.h" #include "qemu/module.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "fpu/softfloat.h"
target/hppa/helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "fpu/softfloat.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "qemu/qemu-print.h"
target/hppa/mem_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "hw/core/cpu.h" #include "trace.h"
target/hppa/op_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" #include "qemu/timer.h"
target/hppa/translate.c +1 -1
@@ -21,7 +21,7 @@#include "cpu.h" #include "disas/disas.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/i386/helper.c +1 -0
@@ -21,6 +21,7 @@#include "qapi/qapi-events-run-state.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/runstate.h" #include "kvm/kvm_i386.h" #ifndef CONFIG_USER_ONLY
target/i386/machine.c +1 -0
@@ -1,6 +1,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "hw/isa/isa.h" #include "migration/cpu.h" #include "kvm/hyperv.h"
target/i386/tcg/excp_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/log.h" #include "sysemu/runstate.h" #include "exec/helper-proto.h"
target/i386/tcg/fpu_helper.c +2 -0
@@ -21,6 +21,8 @@#include <math.h> #include "cpu.h" #include "tcg-cpu.h" +#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "fpu/softfloat-macros.h"
target/i386/tcg/helper-tcg.h +1 -1
@@ -20,7 +20,7 @@#ifndef I386_HELPER_TCG_H #define I386_HELPER_TCG_H -#include "exec/exec-all.h" +#include "exec/translate-all.h" /* Maximum instruction code size */ #define TARGET_MAX_INSN_SIZE 16
target/i386/tcg/int_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "qapi/error.h"
target/i386/tcg/mem_helper.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "qemu/int128.h" #include "qemu/atomic128.h"
target/i386/tcg/misc_helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "helper-tcg.h" /*
target/i386/tcg/mpx_helper.c +1 -1
@@ -21,7 +21,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "helper-tcg.h"
target/i386/tcg/seg_helper.c +1 -0
@@ -23,6 +23,7 @@#include "qemu/log.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/log.h" #include "helper-tcg.h"
target/i386/tcg/sysemu/bpt_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "tcg/helper-tcg.h"
target/i386/tcg/sysemu/svm_helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "tcg/helper-tcg.h"
target/i386/tcg/translate.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/host-utils.h" #include "cpu.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "exec/translator.h"
target/i386/tcg/user/excp_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/helper-tcg.h" void x86_cpu_record_sigsegv(CPUState *cs, vaddr addr,
target/i386/tcg/user/seg_helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "tcg/helper-tcg.h" #include "tcg/seg_helper.h"
target/m68k/fpu_helper.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "softfloat.h"
target/m68k/helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/m68k/op_helper.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "semihosting/semihost.h"
target/m68k/translate.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "qemu/log.h" #include "qemu/qemu-print.h"
target/microblaze/cpu.c +1 -1
@@ -27,7 +27,7 @@#include "cpu.h" #include "qemu/module.h" #include "hw/qdev-properties.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "fpu/softfloat-helpers.h" static const struct {
target/microblaze/helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/host-utils.h" #include "exec/log.h"
target/microblaze/mmu.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" static unsigned int tlb_decode_size (unsigned int f) {
target/microblaze/op_helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "fpu/softfloat.h"
target/microblaze/translate.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h"
target/mips/cpu.c +1 -1
@@ -28,7 +28,7 @@#include "qemu/module.h" #include "sysemu/kvm.h" #include "sysemu/qtest.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "hw/qdev-properties.h" #include "hw/qdev-clock.h" #include "semihosting/semihost.h"
target/mips/sysemu/cp0.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "internal.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" /* Called for updates to CP0_Status. */ void sync_c0_status (CPUMIPSState *env,CPUMIPSState *cpu,int tc)
target/mips/sysemu/physaddr.c +1 -1
@@ -18,7 +18,7 @@*/ #include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "../internal.h" static int is_seg_am_mapped (unsigned int am,bool eu,int mmu_idx)
target/mips/tcg/exception.c +1 -0
@@ -24,6 +24,7 @@#include "internal.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" target_ulong exception_resume_pc (CPUMIPSState *env) {
target/mips/tcg/fpu_helper.c +1 -1
@@ -24,7 +24,7 @@#include "cpu.h" #include "internal.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "fpu/softfloat.h" #include "fpu_helper.h"
target/mips/tcg/ldst_helper.c +1 -1
@@ -23,7 +23,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/memop.h" #include "internal.h"
target/mips/tcg/msa_helper.c +1 -1
@@ -21,7 +21,7 @@#include "cpu.h" #include "internal.h" #include "tcg/tcg.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "exec/memop.h" #include "fpu/softfloat.h"
target/mips/tcg/op_helper.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "internal.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/memop.h" #include "fpu_helper.h"
target/mips/tcg/sysemu/cp0_helper.c +1 -0
@@ -28,6 +28,7 @@#include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" /* SMP helpers. */
target/mips/tcg/sysemu/special_helper.c +1 -1
@@ -22,7 +22,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "internal.h" /* Specials */
target/mips/tcg/sysemu/tlb_helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "internal.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/log.h" #include "hw/mips/cpudevs.h"
target/nios2/helper.c +1 -0
@@ -23,6 +23,7 @@#include "cpu.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/log.h" #include "exec/helper-proto.h"
target/nios2/mmu.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "mmu.h" #if !defined(CONFIG_USER_ONLY )
target/nios2/op_helper.c +1 -0
@@ -23,6 +23,7 @@#include "exec/helper-proto.h" #include "exec/cpu_ldst.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/main-loop.h" #if !defined(CONFIG_USER_ONLY )
target/nios2/translate.c +1 -1
@@ -24,7 +24,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "tcg/tcg-op.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "disas/disas.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h"
target/openrisc/exception.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exception.h" void QEMU_NORETURN raise_exception(OpenRISCCPU *cpu, uint32_t excp)
target/openrisc/exception_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "exception.h"
target/openrisc/interrupt.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #include "qemu/host-utils.h" #ifndef CONFIG_USER_ONLY
target/openrisc/interrupt_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" void HELPER (rfe )(CPUOpenRISCState *env)
target/openrisc/mmu.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #include "qemu/host-utils.h" #include "hw/loader.h"
target/openrisc/sys_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "exception.h" #ifndef CONFIG_USER_ONLY
target/openrisc/translate.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "disas/disas.h" #include "tcg/tcg-op.h" #include "qemu/log.h"
target/ppc/excp_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "internal.h" #include "helper_regs.h"
target/ppc/fpu_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "internal.h" #include "fpu/softfloat.h"
target/ppc/helper_regs.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/kvm.h" #include "helper_regs.h" #include "power8-pmu.h"
target/ppc/machine.c +1 -1
@@ -1,6 +1,6 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/kvm.h" #include "helper_regs.h" #include "mmu-hash64.h"
target/ppc/mem_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/host-utils.h" #include "qemu/main-loop.h" #include "exec/helper-proto.h"
target/ppc/misc_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "qemu/error-report.h" #include "qemu/main-loop.h"
target/ppc/mmu-hash32.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/kvm.h" #include "kvm_ppc.h" #include "internal.h"
target/ppc/mmu-hash64.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qemu/units.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/error-report.h" #include "qemu/qemu-print.h" #include "sysemu/hw_accel.h"
target/ppc/mmu-radix64.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/error-report.h" #include "sysemu/kvm.h" #include "kvm_ppc.h"
target/ppc/mmu_common.c +1 -1
@@ -24,7 +24,7 @@#include "kvm_ppc.h" #include "mmu-hash64.h" #include "mmu-hash32.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/log.h" #include "helper_regs.h" #include "qemu/error-report.h"
target/ppc/mmu_helper.c +1 -0
@@ -25,6 +25,7 @@#include "mmu-hash64.h" #include "mmu-hash32.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/log.h" #include "helper_regs.h" #include "qemu/error-report.h"
target/ppc/power8-pmu.c +1 -1
@@ -13,7 +13,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "helper_regs.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "qemu/error-report.h" #include "qemu/main-loop.h"
target/ppc/timebase_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/log.h" #include "qemu/main-loop.h"
target/ppc/translate.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "internal.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "qemu/host-utils.h"
target/ppc/user_only_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "internal.h" void ppc_cpu_record_sigsegv(CPUState *cs, vaddr address,
target/riscv/bitmanip_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "tcg/tcg.h"
target/riscv/cpu.c +1 -1
@@ -23,7 +23,7 @@#include "qemu/log.h" #include "cpu.h" #include "internals.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qapi/error.h" #include "qemu/error-report.h" #include "hw/qdev-properties.h"
target/riscv/cpu_helper.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/main-loop.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "trace.h" #include "semihosting/common-semi.h"
target/riscv/csr.c +1 -0
@@ -23,6 +23,7 @@#include "cpu.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/cpu-timers.h" /* CSR function table public API */
target/riscv/fpu_helper.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "internals.h"
target/riscv/m128_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "qemu/main-loop.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" target_ulong HELPER(divu_i128)(CPURISCVState *env,
target/riscv/op_helper.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" /* Exceptions processing helpers */
target/riscv/pmp.c +1 -0
@@ -25,6 +25,7 @@#include "cpu.h" #include "trace.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" static void pmp_write_cfg (CPURISCVState *env,uint32_t addr_index,uint8_t val);
target/riscv/translate.c +1 -1
@@ -22,7 +22,7 @@#include "tcg/tcg-op.h" #include "disas/disas.h" #include "exec/cpu_ldst.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h"
target/riscv/vector_helper.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/bitops.h" #include "cpu.h" #include "exec/memop.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "tcg/tcg-gvec-desc.h"
target/rx/cpu.c +1 -0
@@ -23,6 +23,7 @@#include "qemu-common.h" #include "migration/vmstate.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "hw/loader.h" #include "fpu/softfloat.h"
target/rx/op_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/bitops.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" #include "fpu/softfloat.h"
target/rx/translate.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/bswap.h" #include "qemu/qemu-print.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/s390x/gdbstub.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "s390x-internal.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #include "qemu/bitops.h" #include "sysemu/hw_accel.h"
target/s390x/interrupt.c +1 -1
@@ -11,7 +11,7 @@#include "cpu.h" #include "kvm/kvm_s390x.h" #include "s390x-internal.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/kvm.h" #include "sysemu/tcg.h" #include "hw/s390x/ioinst.h"
target/s390x/mmu_helper.c +1 -0
@@ -24,6 +24,7 @@#include "sysemu/kvm.h" #include "sysemu/tcg.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "trace.h" #include "hw/hw.h" #include "hw/s390x/storage-keys.h"
target/s390x/sigp.c +1 -0
@@ -15,6 +15,7 @@#include "sysemu/runstate.h" #include "exec/address-spaces.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "sysemu/tcg.h" #include "trace.h" #include "qapi/qapi-types-machine.h"
target/s390x/tcg/cc_helper.c +1 -0
@@ -23,6 +23,7 @@#include "s390x-internal.h" #include "tcg_s390x.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target/s390x/tcg/crypto_helper.c +1 -1
@@ -15,7 +15,7 @@#include "s390x-internal.h" #include "tcg_s390x.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" uint32_t HELPER(msa)(CPUS390XState *env, uint32_t r1, uint32_t r2, uint32_t r3,
target/s390x/tcg/excp_helper.c +1 -0
@@ -25,6 +25,7 @@#include "exec/helper-proto.h" #include "qemu/timer.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "hw/s390x/ioinst.h" #include "exec/address-spaces.h"
target/s390x/tcg/fpu_helper.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "s390x-internal.h" #include "tcg_s390x.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/s390x/tcg/int_helper.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "s390x-internal.h" #include "tcg_s390x.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target/s390x/tcg/mem_helper.c +1 -0
@@ -25,6 +25,7 @@#include "tcg_s390x.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "qemu/int128.h" #include "qemu/atomic128.h"
target/s390x/tcg/misc_helper.c +1 -0
@@ -28,6 +28,7 @@#include "exec/helper-proto.h" #include "qemu/timer.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "qapi/error.h" #include "tcg_s390x.h"
target/s390x/tcg/translate.c +1 -1
@@ -32,7 +32,7 @@#include "cpu.h" #include "s390x-internal.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "qemu/log.h"
target/s390x/tcg/vec_fpu_helper.c +1 -1
@@ -16,7 +16,7 @@#include "vec.h" #include "tcg_s390x.h" #include "tcg/tcg-gvec-desc.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/s390x/tcg/vec_helper.c +1 -1
@@ -17,7 +17,7 @@#include "tcg/tcg-gvec-desc.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" void HELPER (gvec_vbperm )(void *v1,const void *v2,const void *v3,uint32_t desc)
target/sh4/cpu.c +1 -1
@@ -24,7 +24,7 @@#include "qemu/qemu-print.h" #include "cpu.h" #include "migration/vmstate.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "fpu/softfloat-helpers.h" static void superh_cpu_set_pc (CPUState *cs,vaddr value)
target/sh4/helper.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/log.h" #if !defined(CONFIG_USER_ONLY )
target/sh4/op_helper.c +1 -0
@@ -20,6 +20,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "fpu/softfloat.h"
target/sh4/translate.c +1 -1
@@ -22,7 +22,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/sparc/cpu.c +1 -1
@@ -22,7 +22,7 @@#include "cpu.h" #include "qemu/module.h" #include "qemu/qemu-print.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "hw/qdev-properties.h" #include "qapi/visitor.h"
target/sparc/fop_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/sparc/helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/timer.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target/sparc/ldst_helper.c +1 -0
@@ -23,6 +23,7 @@#include "tcg/tcg.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "asi.h"
target/sparc/machine.c +1 -1
@@ -1,6 +1,6 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/timer.h" #include "migration/cpu.h"
target/sparc/mmu_helper.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/qemu-print.h" #include "trace.h"
target/sparc/translate.c +1 -1
@@ -23,7 +23,7 @@#include "cpu.h" #include "disas/disas.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h"
target/sparc/win_helper.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qemu/main-loop.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "trace.h"
target/tricore/cpu.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "qemu/error-report.h" static inline void set_feature (CPUTriCoreState *env,int feature)
target/tricore/helper.c +1 -0
@@ -19,6 +19,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "fpu/softfloat-helpers.h" #include "qemu/qemu-print.h"
target/tricore/op_helper.c +1 -0
@@ -19,6 +19,7 @@#include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include <zlib.h> /* for crc32 */
target/tricore/translate.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #include "exec/cpu_ldst.h" #include "qemu/qemu-print.h"
target/xtensa/dbg_helper.c +1 -1
@@ -31,7 +31,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/address-spaces.h" static void tb_invalidate_virtual_addr (CPUXtensaState *env,uint32_t vaddr)
target/xtensa/exc_helper.c +1 -0
@@ -32,6 +32,7 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" void HELPER (exception )(CPUXtensaState *env,uint32_t excp) {
target/xtensa/fpu_helper.c +1 -1
@@ -31,7 +31,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "fpu/softfloat.h" enum {
target/xtensa/helper.c +1 -0
@@ -29,6 +29,7 @@#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/gdbstub.h" #include "exec/helper-proto.h" #include "qemu/error-report.h"
target/xtensa/mmu_helper.c +1 -0
@@ -34,6 +34,7 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #define XTENSA_MPU_SEGMENT_MASK 0x0000001f
target/xtensa/op_helper.c +1 -1
@@ -30,7 +30,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "exec/cpu_ldst.h" #include "qemu/timer.h"
target/xtensa/translate.c +1 -1
@@ -31,7 +31,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "disas/disas.h" #include "tcg/tcg-op.h" #include "qemu/log.h"
target/xtensa/win_helper.c +1 -1
@@ -31,7 +31,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" static void copy_window_from_phys (CPUXtensaState *env,uint32_t window,uint32_t phys,uint32_t n)
tcg/region.c +1 -1
@@ -25,7 +25,7 @@#include "qemu/osdep.h" #include "qemu/units.h" #include "qapi/error.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #include "tcg-internal.h"
tcg/tcg-op.c +1 -1
@@ -23,7 +23,7 @@*/ #include "qemu/osdep.h" -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg.h" #include "tcg/tcg-op.h" #include "tcg/tcg-mo.h"
tcg/tcg.c +1 -1
@@ -42,7 +42,7 @@instructions */ #define NO_CPU_IO_DEFS -#include "exec/exec-all.h" +#include "exec/translate-all.h" #include "tcg/tcg-op.h" #if UINTPTR_MAX ==UINT32_MAX
Signature · 1 line
2.34.1
Quoted 3 lines · Philippe Mathieu-Daudé
Translation declarations are only useful to TCG accelerator.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Ug.
So, like, what's you vision of exec-all.h vs translate-all.h? Certainly there's not much in translate-all.h at the moment. Taking a case at random, what has gdbstub.c got to do with "translation" as opposed to "execution"?
I would expect some documetation updates to the top of these headers. I don't see why everything has to move all at once, especially since translate-all.h already includes exec-all.h.
I can see that exec-all.h is currently a garbage bag, but I strongly suspect that you're moving too much here.
r~
Quoted 5 lines · Richard Henderson
Quoted 3 lines · Philippe Mathieu-Daudé
Translation declarations are only useful to TCG accelerator.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 7 lines
Ug.
So, like, what's you vision of
exec-all.hvstranslate-all.h? Certainly there's not much intranslate-all.hat the moment. Taking a case at random, what hasgdbstub.cgot to do with "translation" as opposed to "execution"?I would expect some documetation updates to the top of these headers. I don't see why everything has to move all at once, especially since
translate-all.halready includesexec-all.h.I can see that
exec-all.his currently a garbage bag, but I strongly suspect that you're moving too much here.
I ended with an almost empty exec-all.h; IOW indeed translate-all.h and exec-all.h are the same mixed bag. What I'm pursuing is extract APIs such migration and ramblock stuff, but there are so many inter dependencies that it is hard to sort the patchset (or split it in series on the same topic but no more than 20 patches).