From patchwork Tue Aug 25 20:59:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 248336 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6447:0:0:0:0 with SMTP id l7csp20220ejn; Tue, 25 Aug 2020 14:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6BbudlhMw7OW2mI3fG7BWV2qsvr+NIqvJqSqnKJzSSGh5bN4175z2QsShYrUxP84BAiXz X-Received: by 2002:a5b:486:: with SMTP id n6mr16467140ybp.432.1598392161132; Tue, 25 Aug 2020 14:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598392161; cv=none; d=google.com; s=arc-20160816; b=ynxiDIz8i4LAIVjES3DgEvHA5xvCDyai+xnC3w/LFivcSYMErMkp3Ek2u/kNYAQb2s /sofn6B10zf07eagdWuwClf7ZnoAwBgIqA9cXK+dIEUJwFSl5IQuhy992hjqWrVV+Gg7 I+95/fRGIO/cbvhgniugj4RgUCygvVBw3tJGbHiiWFrD6Ts98jeVMDv3XFyz0vyZuofF fqdN99FKqujS6M/TYXOWIozSsOm2O66XfAJ2Zlh/P1NH5a8u/m4MovzFu43wNuCTZrNE MWvdVOKmNi2RY2gDjWBD407/Yr9iojYcEy3XQueSvg2tHm1WnH+FNgKclQvc+3bOAmmr cFeQ== 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=XYFF+nRDeDk80M21qSEoaFQq0JFdLsE3apwlxbKB9OI=; b=dBrhD2rhQUgrGX788bFBWMPtD9nWz/lPngcPkDMCcTDnQmHY4zagtwTaCwk42h3Rzt 7jCnggJbyWYPGKaRsL7PAqZD+u6bLAfG7zKo3hMRNptn3tEnYX34ZUPzL+690ES+UMP6 GRWy6y9QtPgNfTS2Tt8jA8yOVYv/5Q3yJhAkWi0P9cgeSqeJMJJiAGFGob8xs4t5oxDT UAaBE0Rlu6K1oReFeeQQIjdYpaQ8q5Up8UIFA6yz/gyz94kspg1VPwbUyNAfbLVRbRfc 161L7sfXYBnib3UEaPFXYEIGyr9jBqpwlSi2SNwYa5uVLndMsHM2+85XlohZBpRGjvID BFsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gz82VMtP; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a200si121990ybg.184.2020.08.25.14.49.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Aug 2020 14:49:21 -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=Gz82VMtP; 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]:41674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAgoi-0004cv-I5 for patch@linaro.org; Tue, 25 Aug 2020 17:49:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAg4Y-0000kG-Gq for qemu-devel@nongnu.org; Tue, 25 Aug 2020 17:01:38 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:41496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAg4S-000259-J3 for qemu-devel@nongnu.org; Tue, 25 Aug 2020 17:01:36 -0400 Received: by mail-pf1-x442.google.com with SMTP id t9so4129329pfq.8 for ; Tue, 25 Aug 2020 14:01:31 -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=XYFF+nRDeDk80M21qSEoaFQq0JFdLsE3apwlxbKB9OI=; b=Gz82VMtPCylrr8JFVL1kGAtjMTu69kceqQ4FTzs2dJP3TU6qcK7Im7ifVq3yorhbvu 31ckriXBTjR37pcZicbjrdPk16p5KdoRI8wi3F4TVdQ7zo8paYt+SDKNAso/tiX8Mm3z 2N87IZXOdai+oavqYjD0Ejj3afyS65kb7o/QWmzz4SKq7kNy0KrKUoznXUZjhOPRKX5R zfBpzz41BP/PsRMPYPj8IjCVfsfHvO7U9DtczzDuczJ/eUVKS7DTx8qCoIa2oLXBOqtK 9LA/9rjZpEGdZAKGephIjdyJcBihrjHaBllfItLSWTTgte6tEbNLIJybcGOOQ0KFV7/2 qkkg== 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=XYFF+nRDeDk80M21qSEoaFQq0JFdLsE3apwlxbKB9OI=; b=ZVW2wVdldodynm+xAPcSS672fgRDS1LNX1Rjgf5kadh6FxppGm/DIxTkHJxLt8Up+r KAKBTsmmL5rhLYcVNWzBCvRBFl920GeOAArVOdC6qS9E1mhQOAfka/rvvFlSapF6XxTl Y/32uAxbes7s43OFIzOX2Cp7u7LCq8kUxo/xAUvmeUOlAs8hQWo77SavhvTilE+4MCrW pdFFBkFpOQMFKMWuloYaQThgX3O6KmFJjl7IumxAicE9IBjixX5/V1iA7CI+uRSiBhxA 7TB1suEhDijy1z/Kr3kvdbL0RpvFDisK4wc2YT3Tw3vrScn4D4TE+N1kZJnmDBd/FSr6 OWXQ== X-Gm-Message-State: AOAM533PinB90C8qMPltSaLooWD0rYNjBmbN7MQsp+mBPBSNw7yRoREf p3JpxybBsJHOEJTg72EJWgkkLsyKa4d68A== X-Received: by 2002:aa7:9467:: with SMTP id t7mr9245560pfq.64.1598389290523; Tue, 25 Aug 2020 14:01:30 -0700 (PDT) Received: from localhost.localdomain (h216-228-167-147.bendor.dedicated.static.tds.net. [216.228.167.147]) by smtp.gmail.com with ESMTPSA id k4sm16074pgr.87.2020.08.25.14.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 14:01:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 75/77] target/microblaze: Remove cpu_R[0] Date: Tue, 25 Aug 2020 13:59:48 -0700 Message-Id: <20200825205950.730499-76-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200825205950.730499-1-richard.henderson@linaro.org> References: <20200825205950.730499-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x442.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_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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Do not initialize cpu_R[0], as this should be totally unused. The cpu_for_read and cpu_for_write functions use a local temp. Signed-off-by: Richard Henderson --- target/microblaze/translate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 2df22e8c2a..c8eb68ce4b 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1875,7 +1875,13 @@ void mb_tcg_init(void) static const struct { TCGv_i32 *var; int ofs; char name[8]; } i32s[] = { - R(0), R(1), R(2), R(3), R(4), R(5), R(6), R(7), + /* + * Note that r0 is handled specially in reg_for_read + * and reg_for_write. Nothing should touch cpu_R[0]. + * Leave that element NULL, which will assert quickly + * inside the tcg generator functions. + */ + R(1), R(2), R(3), R(4), R(5), R(6), R(7), R(8), R(9), R(10), R(11), R(12), R(13), R(14), R(15), R(16), R(17), R(18), R(19), R(20), R(21), R(22), R(23), R(24), R(25), R(26), R(27), R(28), R(29), R(30), R(31),