[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH v2 10/15] cpu-model/s390: Add cpu class init
From: |
Michael Mueller |
Subject: |
Re: [Qemu-devel] [RFC PATCH v2 10/15] cpu-model/s390: Add cpu class initialization routines |
Date: |
Fri, 20 Feb 2015 17:12:49 +0100 |
On Fri, 20 Feb 2015 08:02:42 -0800
Richard Henderson <address@hidden> wrote:
> > +/**
> > + * s390_test_facility - test if given facility bit is set facility list
> > + * of given cpu class
> > + * @class: address of cpu class to test
> > + * @nr: bit number to test
> > + *
> > + * Returns: true in case it is set
> > + * false in case it is not set
> > + */
> > +bool s390_test_facility(S390CPUClass *cc, unsigned long nr)
> > +{
> > + if (cc) {
> > + return test_facility(nr, cc->fac_list) ? true : false;
> > + }
> > + return false;
> > +}
>
> Where do you see this being used?
Good spot, it's not being used yet. It's planned to be used with a patch that
implements zPCI
related instructions on QEMU side. Maybe you have seen the discussion from
Frank Blaschka in this
e-mail list in regard to that.
Michael
- [Qemu-devel] [RFC PATCH v2 12/15] cpu-model/s390: Extend QMP command query-cpu-definitions, (continued)
- [Qemu-devel] [RFC PATCH v2 12/15] cpu-model/s390: Extend QMP command query-cpu-definitions, Michael Mueller, 2015/02/17
- [Qemu-devel] [RFC PATCH v2 05/15] cpu-model/s390: Introduce S390 CPU facilities, Michael Mueller, 2015/02/17
- [Qemu-devel] [RFC PATCH v2 14/15] cpu-model/s390: Add cpu model selection routine, Michael Mueller, 2015/02/17
- [Qemu-devel] [RFC PATCH v2 02/15] cpu-model: Introduce option --probe to switch into probe mode, Michael Mueller, 2015/02/17
- [Qemu-devel] [RFC PATCH v2 10/15] cpu-model/s390: Add cpu class initialization routines, Michael Mueller, 2015/02/17
- Re: [Qemu-devel] [RFC PATCH v2 10/15] cpu-model/s390: Add cpu class initialization routines, Richard Henderson, 2015/02/20
[Qemu-devel] [RFC PATCH v2 13/15] cpu-model/s390: Add processor property routines, Michael Mueller, 2015/02/17