exec/cpu: Make address_space_init/reloading_memory_map target agnostic
commit1f649fe088fc6ac119ebdffa9a7691f25a02e937
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 16 May 2021 17:01:31 +0000 (16 19:01 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 6 Mar 2022 12:15:42 +0000 (6 13:15 +0100)
tree3bb4d9464b3e3387660ff6746a602579575ce9d9
parente52fc5e15606a270f5961a231b3806b1bba689d5
exec/cpu: Make address_space_init/reloading_memory_map target agnostic

cpu_address_space_init() and cpu_reloading_memory_map() are
target-agnostic, but are declared in "exec/exec-all.h" which
contains target-specific declarations. Any target-agnostic
source including "exec/exec-all.h" becomes target-specific and
we have to compile it N times for the N targets built.  In order
to avoid that, move the declarations to "exec/cpu-common.h" which
only contains target-agnostic declarations.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220207075426.81934-20-f4bug@amsat.org>
include/exec/cpu-common.h
include/exec/exec-all.h