summaryrefslogtreecommitdiff
path: root/target-unicore32
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-23 12:01:00 +0100
committerAndreas Färber <afaerber@suse.de>2013-01-28 16:57:56 +0100
commit87fb5811e631e79c24adab1f62bee01987cf1606 (patch)
tree9e252a883adb98d4a451ee23446d20317183eddc /target-unicore32
parenta1ebd6ce3396954185bda6e94ada60c583f6cbea (diff)
downloadqemu-87fb5811e631e79c24adab1f62bee01987cf1606.tar.gz
target-unicore32: 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-unicore32')
-rw-r--r--target-unicore32/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c
index 6735b253c2..c120440653 100644
--- a/target-unicore32/cpu.c
+++ b/target-unicore32/cpu.c
@@ -111,7 +111,7 @@ static void uc32_register_cpu_type(const UniCore32CPUInfo *info)
.instance_init = info->instance_init,
};
- type_register_static(&type_info);
+ type_register(&type_info);
}
static const TypeInfo uc32_cpu_type_info = {