Message ID | 20221020115242.2301066-15-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp304106pvb; Thu, 20 Oct 2022 07:34:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rI9QurmVJccUk/UQRHCKz2TlzyuKATRKueAU+qqAKYBq9pie/aMXiWdp0igQORNxrJqZX X-Received: by 2002:ac8:7f54:0:b0:39c:bb57:a1aa with SMTP id g20-20020ac87f54000000b0039cbb57a1aamr11332034qtk.382.1666276474133; Thu, 20 Oct 2022 07:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666276474; cv=none; d=google.com; s=arc-20160816; b=L/68cVEPVL/i+lXwOj+o4lXUVGB9uCexf0k6z608Uk7tgL4QYjxgNbLREWOC+Wa1kR f3zqyypmlUfiD0FVTfs9GPj23kJmQAseM2EbHtkZr6qfFm0TRdUResld/PaghurRnp3I +XifQUiJR175fWjYe3ipSbtqgc49Ad3oWabHn7rx0cjW2/xTfFX4BjDP7FFCkr2l1Qxi khga8GH7skwj0HMY1vlz81RIADU/ObsSeH29Diq2iyB7HlJlG6YcX4wUbpEyz88XNrls Y9TBLdj8413iaONjBN1HNF9NZb6wNDE2yQQrKYQb3PmsuPTLDRNWUrrqeT9tgTJy8m0/ iLtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=5vQArXkcT1RDMZRTO1vvTA3LiXCIJpRLbh9UK0Nx/ps=; b=slGuN2mP57C9B40lUuilqmWdFPZks7zOIkWRqDNm+Rlple006/7ClUD4scgWYHYqM9 +Q6xyzO+vmWPP/oy3ZsabkJGUYCJBxAP9L4UUrSJnDqAV0eN4Ipt13PY/fiWuZCe36w8 xuY4kcOyOSlr4H625Dhdmm8MFm4Zzeq4HGd06O8WuJIURnTsvCsFBsAn3YMT1NKbhGgw fvCJDS7KwC3EFMWu2Tp8UeF+OveNI+6YVSqs2aJnme8SeiryLcWO819+fJJNqvpME7ja TZySIkimS4lteXMCQYXqAxs5AuhwV4UDB0sGwXLvxstgsWOlvlmZM0mD6xgNvOPlJCWu STKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PwzN2oEj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id de6-20020a05620a370600b006eeb25a258bsi3654650qkb.564.2022.10.20.07.34.33 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2022 07:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PwzN2oEj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1olWcx-0005x5-Qg for patch@linaro.org; Thu, 20 Oct 2022 10:34:31 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1olWYP-0004gG-Mn for patch@linaro.org; Thu, 20 Oct 2022 10:29:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1olU7c-0004zX-Kc for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:54:07 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:35709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1olU7a-00012B-H3 for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:54:00 -0400 Received: by mail-pl1-x634.google.com with SMTP id y4so1219182plb.2 for <qemu-devel@nongnu.org>; Thu, 20 Oct 2022 04:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5vQArXkcT1RDMZRTO1vvTA3LiXCIJpRLbh9UK0Nx/ps=; b=PwzN2oEjJ6ZCCBg1eBrS0el6pn6MNkWb0t6fQvc29aUC4M471+SJE5zwL/cdRbhxC0 Iaei/8yIOKzEcUFFsJK9lo9dEhmlSegZ7acgOmpnuCK7wUyMSD4yUecQlFHfho0v/ase oM1GN8baFC9+X/zQ8qhVcBLC1981d1IYZyh7rI7XGQgy9DOAC92pUmFQ3ioNdRH/AZE1 ue6KylKRlKWbQBBENdM26MW2s1gMLNPD9MNlzv4+4Na+yff2MY7VXcCc65Bwo/9cq6/b Dep6LwagbRCK201ozOfS6oBqiNWy5Q6CjNQuweRglT5l5fqx0But6Bzotj6l+zhUgU12 eJ3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5vQArXkcT1RDMZRTO1vvTA3LiXCIJpRLbh9UK0Nx/ps=; b=ioIpYzUX2s20YWGD9VUz+Qv6x97+1nmtdXRJ++5gyQHBI7fLfTlNb9TNEYTLF2b47J c6BoZKvWE82OgoHo7G/oOQ0DWnzberifiI2vuhjTH301QLVE7merZXEGMbC8Qu79rK4n GEVnE4y9fP3lS1RhfhF3i11UlzD6yra8qauxoy2zvG0WQ8uwHkhEH1yqlAIHJn1GPBt0 hQ/WzltPrHFyVX5lvQ1NMjZPq8ygQK4/RMYY30Mxi6jh8YpbTQaif/cxMPF9K762OVfR ep7YhkiKKLNYH036zLnJz40C67E2iwUDNZAC/YLiAr/SrwcxreOh/BaMnFLp0MdwyGLe 1+iw== X-Gm-Message-State: ACrzQf0j9ayy1aSfVeoYxlTQRP22/dA8TXbd6Vpd9XWbBTZezq0RbXYX eB2PqruIxnrdp90sBfF1n9Cc+jxsk9Q4cvhC X-Received: by 2002:a17:90b:e0e:b0:20d:ac00:d261 with SMTP id ge14-20020a17090b0e0e00b0020dac00d261mr14950454pjb.214.1666266836081; Thu, 20 Oct 2022 04:53:56 -0700 (PDT) Received: from localhost.localdomain ([149.135.10.35]) by smtp.gmail.com with ESMTPSA id w206-20020a627bd7000000b0056109e15638sm13065464pfc.54.2022.10.20.04.53.54 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 04:53:55 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 14/31] tcg: Introduce TCGCallReturnKind and TCGCallArgumentKind Date: Thu, 20 Oct 2022 21:52:25 +1000 Message-Id: <20221020115242.2301066-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020115242.2301066-1-richard.henderson@linaro.org> References: <20221020115242.2301066-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg: Support for Int128 with helpers
|
expand
|
diff --git a/tcg/tcg-internal.h b/tcg/tcg-internal.h index 2c06b5116a..f574743ff8 100644 --- a/tcg/tcg-internal.h +++ b/tcg/tcg-internal.h @@ -27,6 +27,21 @@ #define TCG_HIGHWATER 1024 +/* + * Describe the calling convention of a given argument type. + */ +typedef enum { + TCG_CALL_RET_NORMAL, /* by registers */ +} TCGCallReturnKind; + +typedef enum { + TCG_CALL_ARG_NORMAL, /* by registers (continuing onto stack) */ + TCG_CALL_ARG_EVEN, /* like normal, but skipping odd slots */ + TCG_CALL_ARG_EXTEND, /* for i32, as a sign/zero-extended i64 */ + TCG_CALL_ARG_EXTEND_U, /* ... as a zero-extended i64 */ + TCG_CALL_ARG_EXTEND_S, /* ... as a sign-extended i64 */ +} TCGCallArgumentKind; + typedef struct TCGHelperInfo { void *func; const char *name;
Prepare to replace a bunch of separate ifdefs with a consistent way to describe the abi of a function call. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tcg-internal.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)