target-openrisc: Use type_register() instead of type_register_static()