From patchwork Mon May 25 02:55:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 48928 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 86F852121F for ; Mon, 25 May 2015 03:00:15 +0000 (UTC) Received: by lbbqj7 with SMTP id qj7sf18219815lbb.1 for ; Sun, 24 May 2015 20:00:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding:cc :subject:precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=mMIgUrMmdhCJ1CbnLZHf5fgG4L/a7QBenAP3xtiKAIA=; b=LLS6qiNA6XzqWRpyNb9izzzGubP8RxpDaBgqaLrRJhlQCk9I/CERv5NzEFa189RZNv KoKwWQwsrAon6D1A8LRPESAL5STkoyMb059mYGavh8F8di7WYI3MFfMYb+UJUJLDHJim HY2pLq44MW2UFpMSpDEPTbKK6L5KT4MQ2VigGHqUPVsnYBamqJLJe1M20fXL0rFvzHo3 ixNEpd3GNKAx1mMDVciMYASK5pK2QlYPrJlKm0gmEZfAa3S3KP02sD4uJH3yJb3AlEbm 0K72ouZIPejVQ7YRPu2JXN1Gk5knx7Gm1b6mz2PAy8Bie2i4IUcwNlF4DdUQJerMJ7Lw lfgQ== X-Gm-Message-State: ALoCoQm06doV16FDQ2i1d4QtHMe9VmIZS90RaUtGk+pcFoKj/cdFOluzqQz1QP3o6nzkLVqwqGDu X-Received: by 10.112.189.131 with SMTP id gi3mr20335801lbc.6.1432522814178; Sun, 24 May 2015 20:00:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.200 with SMTP id yk8ls695153lab.95.gmail; Sun, 24 May 2015 20:00:14 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr16656710lad.56.1432522814070; Sun, 24 May 2015 20:00:14 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id j1si7307953lbc.15.2015.05.24.20.00.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 May 2015 20:00:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcmx3 with SMTP id mx3so43830042lbc.1 for ; Sun, 24 May 2015 20:00:14 -0700 (PDT) X-Received: by 10.112.150.100 with SMTP id uh4mr11884637lbb.112.1432522813938; Sun, 24 May 2015 20:00:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1540721lbb; Sun, 24 May 2015 20:00:12 -0700 (PDT) X-Received: by 10.140.36.137 with SMTP id p9mr24648153qgp.16.1432522812320; Sun, 24 May 2015 20:00:12 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a96si5601813qkh.14.2015.05.24.20.00.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 24 May 2015 20:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ywicd-00011P-6m for patch@linaro.org; Sun, 24 May 2015 23:00:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwiZW-0003oN-IK for qemu-devel@nongnu.org; Sun, 24 May 2015 22:57:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwiZS-0000qO-R0 for qemu-devel@nongnu.org; Sun, 24 May 2015 22:56:58 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:2509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwiZS-0000mz-8v for qemu-devel@nongnu.org; Sun, 24 May 2015 22:56:54 -0400 Received: from 172.24.2.119 (EHLO szxeml428-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id BGM69619; Mon, 25 May 2015 10:56:36 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml428-hub.china.huawei.com (10.82.67.183) with Microsoft SMTP Server id 14.3.158.1; Mon, 25 May 2015 10:56:28 +0800 From: Shannon Zhao To: , , , , , , , , , , Date: Mon, 25 May 2015 10:55:13 +0800 Message-ID: <1432522520-8068-18-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1432522520-8068-1-git-send-email-zhaoshenglong@huawei.com> References: <1432522520-8068-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.55628F64.0132, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 8d05a01dc21d96228f04db80a57b5ecf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 119.145.14.66 Cc: hangaohuai@huawei.com, zhaoshenglong@huawei.com, peter.huangpeng@huawei.com, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH v9 17/24] hw/acpi/aml-build: Add aml_lnot() term X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 8 ++++++++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 5002ad5..56cce41 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -607,6 +607,14 @@ Aml *aml_irq_no_flags(uint8_t irq) return var; } +/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefLNot */ +Aml *aml_lnot(Aml *arg) +{ + Aml *var = aml_opcode(0x92 /* LNotOp */); + aml_append(var, arg); + return var; +} + /* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefLEqual */ Aml *aml_equal(Aml *arg1, Aml *arg2) { diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index 8690aeb..41b2cdd 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -222,6 +222,7 @@ Aml *aml_named_field(const char *name, unsigned length); Aml *aml_reserved_field(unsigned length); 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_processor(uint8_t proc_id, uint32_t pblk_addr, uint8_t pblk_len, const char *name_format, ...) GCC_FMT_ATTR(4, 5);