summaryrefslogtreecommitdiffstats
path: root/target/sh4
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2022-02-14 17:15:16 +0100
committerPhilippe Mathieu-Daudé2022-03-06 22:23:09 +0100
commitb36e239e08a031025e52c4191198ee8381e2e6de (patch)
treef3eae7db229ea7442517a5a785a5559dbc824be9 /target/sh4
parenttarget: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro (diff)
downloadqemu-b36e239e08a031025e52c4191198ee8381e2e6de.tar.gz
qemu-b36e239e08a031025e52c4191198ee8381e2e6de.tar.xz
qemu-b36e239e08a031025e52c4191198ee8381e2e6de.zip
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>
Diffstat (limited to 'target/sh4')
-rw-r--r--target/sh4/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sh4/cpu.h b/target/sh4/cpu.h
index dd477ba577..c72a30edfd 100644
--- a/target/sh4/cpu.h
+++ b/target/sh4/cpu.h
@@ -195,7 +195,7 @@ typedef struct CPUArchState {
*
* A SuperH CPU.
*/
-struct SuperHCPU {
+struct ArchCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/