On Sat, 3 Feb 2018 14:27:32 +1000 Nicholas Piggin <npig...@gmail.com> wrote:
> diff --git a/core/cpufeatures.c b/core/cpufeatures.c > new file mode 100644 > index 000000000..ca9df91f0 > --- /dev/null > +++ b/core/cpufeatures.c > @@ -0,0 +1,932 @@ > +/* Copyright 2017 IBM Corp. > + * > + * Licensed under the Apache License, Version 2.0 (the "License"); > + * you may not use this file except in compliance with the License. > + * You may obtain a copy of the License at > + * > + * http://www.apache.org/licenses/LICENSE-2.0 > + * > + * Unless required by applicable law or agreed to in writing, software > + * distributed under the License is distributed on an "AS IS" BASIS, > + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > + * implied. > + * See the License for the specific language governing permissions and > + * limitations under the License. > + */ > + > +/* > + * This file deals with setup of /cpus/ibm,powerpc-cpu-features dt > + */ > + > +#include <skiboot.h> > +#include <cpu.h> > +#include <processor.h> > +#include <ccan/str/str.h> > +#include <device.h> > + > +#define DEBUG Sorry, didn't send the right version after testing. This line should be deleted before going upstream. Thanks, Nick