diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-27 19:31:00 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-28 16:57:56 +0100 |
commit | 2dddbc2123681f0cc37a891fa61d97a88d5e641c (patch) | |
tree | 78ec36adf0a4e27bf24586ef7d2de29107968b3e /target-m68k/cpu.c | |
parent | 87fb5811e631e79c24adab1f62bee01987cf1606 (diff) | |
download | hqemu-2dddbc2123681f0cc37a891fa61d97a88d5e641c.zip hqemu-2dddbc2123681f0cc37a891fa61d97a88d5e641c.tar.gz |
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>
Diffstat (limited to 'target-m68k/cpu.c')
-rw-r--r-- | target-m68k/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c index e6df1ee..5c78031 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 = { |