Skip to content

Commit

Permalink
target-openrisc: 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 27, 2013
1 parent eb0705e commit d5d6035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-openrisc/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static void cpu_register(const OpenRISCCPUInfo *info)
.class_size = sizeof(OpenRISCCPUClass),
};

type_register_static(&type_info);
type_register(&type_info);
}

static const TypeInfo openrisc_cpu_type_info = {
Expand Down

0 comments on commit d5d6035

Please sign in to comment.