From patchwork Fri May 29 13:10:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 49191 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 72330218E7 for ; Fri, 29 May 2015 13:20:09 +0000 (UTC) Received: by wibbk2 with SMTP id bk2sf6242696wib.2 for ; Fri, 29 May 2015 06:20:08 -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 :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=2g+faUqLCpIpTct47+bQRRYuRNgKLwJTNrJYCEPsw9U=; b=Y2ctILxhkLPCfIneXsoSnXxLEZYtyiMnjJxu/7hnMZE9cavQ1tk4SSgvAGmfMBPmYC JWN6ro3V01npqI2g4AatWE/QaREx1dG4D3sS3qzhFpH7AacauY1DFp1G9VgH/m5YKdFh 1GsxT5EKAm5XkIX/JQ3kjoTJioZ5FCy3d2EKPOqH7DeSvdnn+ZaKsDXyZqtPy7Tam3n8 zwvt1RYpppYsWYn15f7Uud/rGWEGrtmtehTrX75C4NiSTGfHS3JPG6k5lt2HZqix9fNi mHSSZmHEDHpEPSX96Y9pVSiUVcEZf5FAFZeISXX2PrTgIrc6fcYubXvFA4hVlSHpQqao z8UQ== X-Gm-Message-State: ALoCoQlNutU57A3Qz1cCGIhf87QH3T2YMnxyG+vQnIxkW74iqwgIT6xURd6vg4K9sovi7j6WLqUd X-Received: by 10.180.85.137 with SMTP id h9mr2909182wiz.7.1432905608809; Fri, 29 May 2015 06:20:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.65 with SMTP id o1ls354670laj.108.gmail; Fri, 29 May 2015 06:20:08 -0700 (PDT) X-Received: by 10.152.26.230 with SMTP id o6mr8145002lag.7.1432905608644; Fri, 29 May 2015 06:20:08 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ei7si4655401lad.156.2015.05.29.06.20.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 06:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagv1 with SMTP id v1so55528053lag.3 for ; Fri, 29 May 2015 06:20:08 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr7781464lag.112.1432905608408; Fri, 29 May 2015 06:20:08 -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 hn6csp327422lbb; Fri, 29 May 2015 06:20:07 -0700 (PDT) X-Received: by 10.140.30.166 with SMTP id d35mr9215007qgd.85.1432905607072; Fri, 29 May 2015 06:20:07 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f39si3582022qki.112.2015.05.29.06.20.06 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 29 May 2015 06:20:07 -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]:35768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyK6q-0000Dk-Gl for patch@linaro.org; Fri, 29 May 2015 09:14:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyK3v-0003sx-LF for qemu-devel@nongnu.org; Fri, 29 May 2015 09:11:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyK3r-0003XM-8l for qemu-devel@nongnu.org; Fri, 29 May 2015 09:10:59 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyK3r-0003US-20 for qemu-devel@nongnu.org; Fri, 29 May 2015 09:10:55 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1YyK3i-0005o1-TV for qemu-devel@nongnu.org; Fri, 29 May 2015 14:10:46 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 29 May 2015 14:10:37 +0100 Message-Id: <1432905045-22138-32-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1432905045-22138-1-git-send-email-peter.maydell@linaro.org> References: <1432905045-22138-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 31/39] 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: peter.maydell@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.54 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 Reviewed-by: Michael S. Tsirkin Message-id: 1432522520-8068-18-git-send-email-zhaoshenglong@huawei.com Signed-off-by: Peter Maydell --- 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);