Skip to content

Commit

Permalink
target-unicore32: Use type_register() instead of type_register_static()
Browse files Browse the repository at this point in the history
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. 918fd08 for arm.

Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Jan 28, 2013
1 parent a1ebd6c commit 87fb581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-unicore32/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 87fb581

Please sign in to comment.