summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Färber2013-01-27 19:31:00 +0100
committerAndreas Färber2013-01-28 16:57:56 +0100
commit2dddbc2123681f0cc37a891fa61d97a88d5e641c (patch)
tree78ec36adf0a4e27bf24586ef7d2de29107968b3e
parenttarget-unicore32: Use type_register() instead of type_register_static() (diff)
downloadqemu-2dddbc2123681f0cc37a891fa61d97a88d5e641c.tar.gz
qemu-2dddbc2123681f0cc37a891fa61d97a88d5e641c.tar.xz
qemu-2dddbc2123681f0cc37a891fa61d97a88d5e641c.zip
target-m68k: Use type_register() instead of type_register_static()
According to its documentation, type_register_static()'s TypeInfo argument should exist for the life type of the type. Therefore use type_register() when registering the list of CPU subtypes. No functional change with the current implementation. Cf. 918fd0839eeafc83bd4984364321a947d29041fe for arm. Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r--target-m68k/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c
index e6df1eef58..5c7803181d 100644
--- a/target-m68k/cpu.c
+++ b/target-m68k/cpu.c
@@ -162,7 +162,7 @@ static void register_cpu_type(const M68kCPUInfo *info)
.instance_init = info->instance_init,
};
- type_register_static(&type_info);
+ type_register(&type_info);
}
static const TypeInfo m68k_cpu_type_info = {