lkml.org 
[lkml]   [2015]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines
Am 13.04.2015 um 15:56 schrieb Michael Mueller:
> --- a/target-s390x/cpu-models.c
> +++ b/target-s390x/cpu-models.c
> @@ -88,3 +88,85 @@ S390_PROC_DEF("2827-ga2", CPU_S390_2827_GA2, "IBM zEnterprise EC12 GA2")
[...]
> +int set_s390_cpu_alias(const char *name, const char *model)
> +{
> + S390CPUAlias *alias;
> +
> + if (!name || !model) {
> + return -EINVAL;
> + }
> + if (!strcmp(name, model)) {
> + return -EINVAL;
> + }
> + if (!s390_cpu_class_by_name(model)) {
> + return -EINVAL;
> + }
> + alias = g_try_malloc0(sizeof(S390CPUAlias));
> + if (!alias) {
> + return -ENOMEM;
> + }
> + alias->name = g_strdup(name);
> + alias->model = g_strdup(model);
> + s390_cpu_aliases = g_slist_append(s390_cpu_aliases, alias);
> + return 0;
> +}
> +

Applying: target-s390x: Add S390 CPU model alias definition routines
/home/cborntra/REPOS/qemu/.git/rebase-apply/patch:96: new blank line at EOF.
+
warning: 1 line adds whitespace errors.



\
 
 \ /
  Last update: 2015-04-27 10:41    [W:0.124 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site