From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7DjB-000778-I3 for qemu-devel@nongnu.org; Thu, 10 Dec 2015 21:46:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7Dj8-0007yu-Bm for qemu-devel@nongnu.org; Thu, 10 Dec 2015 21:46:37 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:60143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Dj4-0007vu-WA for qemu-devel@nongnu.org; Thu, 10 Dec 2015 21:46:34 -0500 Message-ID: <566A3777.4020300@huawei.com> Date: Fri, 11 Dec 2015 10:39:51 +0800 From: Shannon Zhao MIME-Version: 1.0 References: <1449704528-289297-1-git-send-email-imammedo@redhat.com> <1449704528-289297-5-git-send-email-imammedo@redhat.com> In-Reply-To: <1449704528-289297-5-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 04/74] acpi: add aml_lgreater_equal() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , qemu-devel@nongnu.org On 2015/12/10 7:40, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Shannon Zhao > --- > hw/acpi/aml-build.c | 11 +++++++++++ > include/hw/acpi/aml-build.h | 1 + > 2 files changed, 12 insertions(+) > > diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c > index dc59c08..c1a30a3 100644 > --- a/hw/acpi/aml-build.c > +++ b/hw/acpi/aml-build.c > @@ -672,6 +672,17 @@ Aml *aml_equal(Aml *arg1, Aml *arg2) > return var; > } > > +/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefLGreaterEqual */ > +Aml *aml_lgreater_equal(Aml *arg1, Aml *arg2) > +{ > + /* LGreaterEqualOp := LNotOp LLessOp */ > + Aml *var = aml_opcode(0x92 /* LNotOp */); > + build_append_byte(var->buf, 0x95 /* LLessOp */); > + aml_append(var, arg1); > + aml_append(var, arg2); > + return var; > +} > + > /* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefIfElse */ > Aml *aml_if(Aml *predicate) > { > diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h > index 7296efb..2a4f815 100644 > --- a/include/hw/acpi/aml-build.h > +++ b/include/hw/acpi/aml-build.h > @@ -229,6 +229,7 @@ Aml *aml_local(int num); > Aml *aml_string(const char *name_format, ...) GCC_FMT_ATTR(1, 2); > Aml *aml_lnot(Aml *arg); > Aml *aml_equal(Aml *arg1, Aml *arg2); > +Aml *aml_lgreater_equal(Aml *arg1, Aml *arg2); > Aml *aml_processor(uint8_t proc_id, uint32_t pblk_addr, uint8_t pblk_len, > const char *name_format, ...) GCC_FMT_ATTR(4, 5); > Aml *aml_eisaid(const char *str); > -- Shannon