diff options
| author | Eduardo Habkost | 2013-01-11 16:21:22 +0100 |
|---|---|---|
| committer | Peter Maydell | 2013-01-11 16:21:22 +0100 |
| commit | 918fd0839eeafc83bd4984364321a947d29041fe (patch) | |
| tree | 1371f50f88fbf6ba24d564fa803f6add4a9db54e | |
| parent | Merge remote-tracking branch 'kraxel/build.1' into staging (diff) | |
| download | qemu-918fd0839eeafc83bd4984364321a947d29041fe.tar.gz qemu-918fd0839eeafc83bd4984364321a947d29041fe.tar.xz qemu-918fd0839eeafc83bd4984364321a947d29041fe.zip | |
target-arm: use type_register() instead of type_register_static()
The type_register_static() interface is documented as:
type_register_static:
@info: The #TypeInfo of the new type.
@info and all of the strings it points to should exist for the life
time that the type is registered.
But cpu_register() uses a stack variable for the 'info' argument, so it
has to use type_register() instead of type_register_static().
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| -rw-r--r-- | target-arm/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 17875ed0f0..94536bb0cc 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -778,7 +778,7 @@ static void cpu_register(const ARMCPUInfo *info) .class_size = sizeof(ARMCPUClass), }; - type_register_static(&type_info); + type_register(&type_info); } static const TypeInfo arm_cpu_type_info = { |
