qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 for-2.3 01/25] acpi: fix aml_equal term imple


From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH v4 for-2.3 01/25] acpi: fix aml_equal term implementation
Date: Mon, 9 Mar 2015 12:04:51 +0100

On Mon, Mar 09, 2015 at 11:28:22AM +0100, Igor Mammedov wrote:
> On Sun,  8 Mar 2015 13:16:03 +0200
> Marcel Apfelbaum <address@hidden> wrote:
> 
> > The DefLEqual op does not have a target operand. Remove it.
> > 
> > Signed-off-by: Marcel Apfelbaum <address@hidden>
> Reviewed-by: Igor Mammedov <address@hidden>
> 
> > ---
> >  hw/acpi/aml-build.c | 1 -
> >  1 file changed, 1 deletion(-)
> > 
> > diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
> > index 876cada..0d14561 100644
> > --- a/hw/acpi/aml-build.c
> > +++ b/hw/acpi/aml-build.c
> > @@ -542,7 +542,6 @@ Aml *aml_equal(Aml *arg1, Aml *arg2)
> >      Aml *var = aml_opcode(0x93 /* LequalOp */);
> >      aml_append(var, arg1);
> >      aml_append(var, arg2);
> > -    build_append_int(var->buf, 0x00); /* NullNameOp */
> It's just happens to work in case CPU and PCI hotplug because
> it LEqual was the only predicate in if block and NullNameOp
> was considered as part of inner code-block, like:
> if (LEqual(a, b)) {
>    NullName; // nop
>    ...
> }

So - maybe aml_if should get 3rd parameter - the command?

> >      return var;
> >  }
> >  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]