target: Use ArchCPU as interface to target CPU

ArchCPU is our interface with target-specific code. Use it as
a forward-declared opaque pointer (abstract type), having its
structure defined by each target.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220214183144.27402-15-f4bug@amsat.org>
This commit is contained in:
Philippe Mathieu-Daudé 2022-02-14 17:15:16 +01:00
parent 9295b1aa92
commit b36e239e08
22 changed files with 23 additions and 22 deletions

View file

@ -143,7 +143,7 @@ typedef struct CPUArchState {
*
* A AVR CPU.
*/
struct AVRCPU {
struct ArchCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/