From patchwork Thu May 14 09:19:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 48504 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 747AF2121F for ; Thu, 14 May 2015 09:36:16 +0000 (UTC) Received: by wiz9 with SMTP id 9sf20133235wiz.3 for ; Thu, 14 May 2015 02:36:15 -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=8jQscMd49ZD9BFRqY8mHrlE+IISMguULZMoGZfnVx20=; b=A2lOMDruwKrneilKtrW5VmiV6O98KM42Tx2P36qXn4wlU8utDpbTNvZQZusEIYvr4I VMyY7XgvA0L+WPjq/RHCc+QFVlAZruaJ5LbBrWkAFvSeeudnipODf4vA5oBPOObF14mg 2E7aNTC11FJ9IhADoQ2xDG7/KPFbF61bKjJs9Ay6kGbZRadrZMMZCXc/NaNz6iB/VTFI URmESHiYA1N35QJLsulqv/9M63r9VLInyFbvEk67ZGjf9p0/DXt/mo6gQNlbU2ZTw2l2 IMyNe2HTJAkEFIdy9Ie4fGb8Kee9CZT2UN3uQI6nOzuCMrUXfYdasxma2siD03nr9dKK 3PNg== X-Gm-Message-State: ALoCoQkXkaa1k207/aWY8bP2sDS79f76dk55sbQAtOyxTacj2wntuyF62g9xXzlPnJJYwE4Tz1Pv X-Received: by 10.112.130.71 with SMTP id oc7mr2419377lbb.23.1431596175734; Thu, 14 May 2015 02:36:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.195 with SMTP id da3ls387373lac.43.gmail; Thu, 14 May 2015 02:36:15 -0700 (PDT) X-Received: by 10.152.7.97 with SMTP id i1mr2378132laa.49.1431596175552; Thu, 14 May 2015 02:36:15 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id yg6si14129770lbb.137.2015.05.14.02.36.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2015 02:36:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagv1 with SMTP id v1so59309678lag.3 for ; Thu, 14 May 2015 02:36:15 -0700 (PDT) X-Received: by 10.152.36.2 with SMTP id m2mr2440729laj.72.1431596175290; Thu, 14 May 2015 02:36:15 -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 hn6csp1121803lbb; Thu, 14 May 2015 02:36:14 -0700 (PDT) X-Received: by 10.55.41.195 with SMTP id p64mr6655874qkp.107.1431596173791; Thu, 14 May 2015 02:36:13 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h30si22404829qgh.17.2015.05.14.02.36.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 May 2015 02:36:13 -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]:53393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YspYq-0007HW-VC for patch@linaro.org; Thu, 14 May 2015 05:36:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YspNk-0005eh-J1 for qemu-devel@nongnu.org; Thu, 14 May 2015 05:24:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YspNg-0001U7-Gn for qemu-devel@nongnu.org; Thu, 14 May 2015 05:24:44 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:32548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YspNf-0001RJ-SU for qemu-devel@nongnu.org; Thu, 14 May 2015 05:24:40 -0400 Received: from 172.24.2.119 (EHLO szxeml430-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CLJ60793; Thu, 14 May 2015 17:21:14 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml430-hub.china.huawei.com (10.82.67.185) with Microsoft SMTP Server id 14.3.158.1; Thu, 14 May 2015 17:21:02 +0800 From: Shannon Zhao To: , , , , , , , , , , Date: Thu, 14 May 2015 17:19:35 +0800 Message-ID: <1431595182-7552-17-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1431595182-7552-1-git-send-email-zhaoshenglong@huawei.com> References: <1431595182-7552-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 119.145.14.65 Cc: hangaohuai@huawei.com, zhaoshenglong@huawei.com, peter.huangpeng@huawei.com, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH v7 16/23] 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.215.45 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 --- 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 e4ec938..7945918 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -600,6 +600,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 91a9e64..a87622b 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -230,6 +230,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);