From patchwork Fri May 8 15:57:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 186417 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp120896ill; Fri, 8 May 2020 09:10:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLVEx0qhPFk2LfPb07MNePjCUq5DPxBxQeOvax1zPWY/+6jabtiYZy27VvUYUXBHjRe1PLE X-Received: by 2002:ac8:60d2:: with SMTP id i18mr3739153qtm.244.1588954207380; Fri, 08 May 2020 09:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588954207; cv=none; d=google.com; s=arc-20160816; b=v8WpZ4lUil0UGwIlJ7kJk0MjHLo0po44NisWlCiMXQLDyxSHOAJZJhpm9evaWflHCF h0GSXzEp/edJaOgvkYFozXH0QjS2J8ICa6VBucQVQazrlAvi7Cu56qHiVWKbQreLya/t uYmtN5vi9oPvVd2uAYFcaNMsxjdyJGw3q73QWEyQarxoF/AnhrFrHWa2M28rm9b3MPiE iFAZaR1fN4y3QlvMgfLurxqrni5jykNHgAsxG8X47oGKACYJhqNpl01c0YXZb9rkB0lM 9XnN2/v6U1EROrN/bK2G7x8fCGPrWQ9j682+sEBsAK5b/xhcA0gllqoFRxn8Wf8m0Ssu nEwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=6vhGh9XtmB1p78XgXCc3Kr/K2kEi/74lOsVOL6OroQc=; b=jQhInYLgjCOpITttifcDz/yTrGbW/TttKSReF263pujYEo+LI91258sjkIhYyH0nBX JWjqm6uVmJZbO4mbOrbfZe/iLWWQDPUr58XEF9eb5ztU+A4eEJ/SR3Q/YdRjxxTPABGx yV38Szx2cO1BJSfK2OFBFnNrEU72j5z4Ia/OuNcDZGBXjMS4BTO2hJKYAEOEOuVqiOn4 g8mdYo6ORlw4i3rDQ+6tKaVYnhpX1X8MZvQMQW44LAMh8EGp5L5CRFDVrSf3WR3pvBRA MiOfXB0356v59600PoBlakez2GTaE936+NbMxP7skOPW2U5IQIZe2aPFccLlUVIXymHe Bacg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O24MOHpH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::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: Received: from lists.gnu.org (lists.gnu.org. [2001:470:142::17]) by mx.google.com with ESMTPS id r2si1410081qvp.138.2020.05.08.09.10.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 May 2020 09:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::17 as permitted sender) client-ip=2001:470:142::17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O24MOHpH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::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]:56600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jX5Ze-0001MO-U8 for patch@linaro.org; Fri, 08 May 2020 12:10:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jX5No-0000Rl-LI for qemu-devel@nongnu.org; Fri, 08 May 2020 11:57:52 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:37181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jX5Nn-0008Ln-Ox for qemu-devel@nongnu.org; Fri, 08 May 2020 11:57:52 -0400 Received: by mail-pl1-x642.google.com with SMTP id x10so918493plr.4 for ; Fri, 08 May 2020 08:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6vhGh9XtmB1p78XgXCc3Kr/K2kEi/74lOsVOL6OroQc=; b=O24MOHpHx0p/YP80bpGOSA4YV4mmpeVL5CzJHAq6mP9FLR9lghE0ZwxvyQTDhu/MNv YNwiUimeeu4C54t5PajhNRZzx/WzSXu2Osx8zE2pyUkZmcz6pZy2bjXuGAUDLMvDFbiW 6I2iIBAUBgyLEN0/+2qepI6UBKizBQ+NoQROOmBpjg5i7f2qTPudt91KOGBsx7iPq9Jx a2TJQnX+kjf0fcbJMM5K698AQmBpf6HQlZygJREu8FJrR6i2PBjkIxSTOF2Jq7IUVHXt edhuRsPNCK2Rdsy8leHad63kitiL/gRYqBbDgFlXY3sm7/8WrJdQc5iJIdbTHUxl97Kn TgGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6vhGh9XtmB1p78XgXCc3Kr/K2kEi/74lOsVOL6OroQc=; b=XWvjJU4LbaSkCgvvLy+2rK6vpfCFDQjFK9Ubg9dmcS4uoq/psTmOyephiDjOfgu24i ycUANKFro2h6kqQFIBdKJxRL6du9gSsqmewrKncUpgzDnmZZjmSe1rBGajjG4qFEFwSl RfxnYPe9pTHV19YtvBRHyhYwa44kVUkEWyJx+bL99dtd4WL2F453+ACytLJOOwvt3AOC LBxa7Wy+EPrgkHaFhbN1AfvFO/v7ORm3jLCZ+YIVohZiETiUHYNt8Dzhl5AvLXGDvHLB GqzXNujvd2G3LbJBdLqhKGXyzGnvxwaL1opJkhEkWiPFStVZUSAPaTAg9Ga+fj0P4V8M E8sw== X-Gm-Message-State: AGi0PubY/lMEkDLi0G+rHuEOrHR1pVQnLiFPenOpIs6EjWc+aVl07y4r QuxhXhWYysYYR53CMWJ1GxmWnGk2shE= X-Received: by 2002:a17:90b:3843:: with SMTP id nl3mr7004143pjb.72.1588953469961; Fri, 08 May 2020 08:57:49 -0700 (PDT) Received: from localhost.localdomain (174-21-149-226.tukw.qwest.net. [174.21.149.226]) by smtp.gmail.com with ESMTPSA id z7sm2141601pff.47.2020.05.08.08.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 08:57:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/3] tcg/s390: Merge TCG_AREG0 and TCG_REG_CALL_STACK into TCGReg Date: Fri, 8 May 2020 08:57:44 -0700 Message-Id: <20200508155745.8223-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200508155745.8223-1-richard.henderson@linaro.org> References: <20200508155745.8223-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::642; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" They are rightly values in the same enumeration. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.h | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) -- 2.20.1 Reviewed-by: David Hildenbrand diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h index 7ca48457ff..1e67c90ed2 100644 --- a/tcg/s390/tcg-target.h +++ b/tcg/s390/tcg-target.h @@ -29,22 +29,13 @@ #define TCG_TARGET_TLB_DISPLACEMENT_BITS 19 typedef enum TCGReg { - TCG_REG_R0 = 0, - TCG_REG_R1, - TCG_REG_R2, - TCG_REG_R3, - TCG_REG_R4, - TCG_REG_R5, - TCG_REG_R6, - TCG_REG_R7, - TCG_REG_R8, - TCG_REG_R9, - TCG_REG_R10, - TCG_REG_R11, - TCG_REG_R12, - TCG_REG_R13, - TCG_REG_R14, - TCG_REG_R15 + TCG_REG_R0, TCG_REG_R1, TCG_REG_R2, TCG_REG_R3, + TCG_REG_R4, TCG_REG_R5, TCG_REG_R6, TCG_REG_R7, + TCG_REG_R8, TCG_REG_R9, TCG_REG_R10, TCG_REG_R11, + TCG_REG_R12, TCG_REG_R13, TCG_REG_R14, TCG_REG_R15, + + TCG_AREG0 = TCG_REG_R10, + TCG_REG_CALL_STACK = TCG_REG_R15 } TCGReg; #define TCG_TARGET_NB_REGS 16 @@ -135,7 +126,6 @@ extern uint64_t s390_facilities[1]; #define TCG_TARGET_HAS_mulsh_i64 0 /* used for function call generation */ -#define TCG_REG_CALL_STACK TCG_REG_R15 #define TCG_TARGET_STACK_ALIGN 8 #define TCG_TARGET_CALL_STACK_OFFSET 160 @@ -144,10 +134,6 @@ extern uint64_t s390_facilities[1]; #define TCG_TARGET_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD) -enum { - TCG_AREG0 = TCG_REG_R10, -}; - static inline void flush_icache_range(uintptr_t start, uintptr_t stop) { }