From patchwork Thu May 25 18:10:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 685614 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp501140wrt; Thu, 25 May 2023 11:12:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sZqKlZ/Wb8P7EXAHxm0ks/sH05TKptizrrqtgwM1j5sr4MRyDdAtPserFacHvFHaQRP3I X-Received: by 2002:a05:622a:3c6:b0:3f4:cfed:96a0 with SMTP id k6-20020a05622a03c600b003f4cfed96a0mr666313qtx.5.1685038340160; Thu, 25 May 2023 11:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685038340; cv=none; d=google.com; s=arc-20160816; b=bv0RxOOEWkiGVP5RzlY2gqg6jwCnyYceYrOSELaMsuree6KhveMOhaYjVc9VefQfUT VRTNdCEaJWSoO49DBnehKn4VkzyOd5wR6zvJp3b/POD9JGm9ONV0hafSz5ukwYe+4khr /a0yvsOgf6kKbscTsV4lBJwWTxeHaOs+KDEfAsBVK9DxAZ2NqlpqNDKvsfdZZ0METzak nxRnaeiaITp7srvRnDiVKfWnHGOkqj4FdqCeO76Qkgk34+BCYhiyKB3SWhB8wdcKN1eQ olXwh8gAyITIf0x0Q54ODxUq8fW1jSX62NeS0tgGoKmr7HtjuepfSvB7/qJtHJ0FEmXn VV/A== 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:cc:to :from:dkim-signature; bh=Pa1EeTfFR0ENE9IkClE4tlmnlEbqM1UBLr9L+Mye/pg=; b=d6PBeC2eFVABezY2f5RpaUqQXzIFhqjlX8t1y7LFW2uLD9yn8/9IX9yzF6oQWPgm+9 Pgi83MxWy4wNiIqIIUBQTcPUfbkMSa7xHsVlPV2x7F/BZL/cphLCMaiCxsQefsEQj4DO h4j1ymiozWrcqLGd8s6PS6QYdeG1HPET8bV4K48E/+K8lNpo/kF1eRXei1lA8Z3V5zz9 czBdDOB2ceCSiYLhMeO2sDNGrv0XawyzKt3U7BZ14WDue+hY9x1SnIiLFq9sNZr7HV4Z aMV67uOnnb3LSwSO7hmOBQn9IxqEOKMC/a61IfJ1lkSOAtK3hadbNixOwKU7FTUP3FJv Tknw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oGcymjk6; 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 m4-20020a05622a118400b003ef2c5fbda2si655388qtk.640.2023.05.25.11.12.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 May 2023 11:12:20 -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=oGcymjk6; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2FQC-0008LF-M2; Thu, 25 May 2023 14:10:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2FQA-0008KW-Gj for qemu-devel@nongnu.org; Thu, 25 May 2023 14:10:42 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2FQ8-0005r0-Ur for qemu-devel@nongnu.org; Thu, 25 May 2023 14:10:42 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5289cf35eeaso959762a12.1 for ; Thu, 25 May 2023 11:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685038239; x=1687630239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Pa1EeTfFR0ENE9IkClE4tlmnlEbqM1UBLr9L+Mye/pg=; b=oGcymjk6WjCFadaPZ0SMB39eqAIxQoBHewHSDNpmsXP8k3+mSKgCA1MZcxhAompG0y 86zunIWzuFXf2HepMuV8tD0XAh+wb22MQ8QUfkQdFxm9QsgcCHTzA2qrb3Jt5hli/zsW NYLiv+IPgXNMJJIvSpjycmUBt2ePl6tNb72dHvuPGZ4o39ch4zHEmm4LqwbgXvGN2nsF VX/MJDr6w1h/9XNbmvDzkuOm3MS0ZIJHwWZoT7YvJykzK1p4O9KVXpZ3xIs6sGDlaA2l KFtrJsabjhV81CvoJ/CI8ZFxRpZsrUNV/mK1Nw29WRGwgmhRtoFc8o6TDl16FPPLgVaU EFlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685038239; x=1687630239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Pa1EeTfFR0ENE9IkClE4tlmnlEbqM1UBLr9L+Mye/pg=; b=ZhhGphtrmuqWjmT0g9nKxrh+RKDWdr8oaGj8UPbAaB1ze8hz9NJoun01etmnMnMI/w dbUfKRotioq0b0fhE/P2SHS2WKS/ImNSQSOCowqohBaGgAmqMaMquYN9Xhp1DBzFotc0 4ShdYsLIF0BhbU4DuWHtYSjJmRfHBglU2Nmu8M/sn68ECLQ6QykDCuLm9nQfzlbEWkcq P/jShVWy3mcdutFZ4RdK4m0poIOysyS5yI3E0JRfUNU2AHEjuNZbDLp0Gv9n9Kjx4Uyg v/c8UsAKce0Znx9ZC3aUv6yH17+fUubvDP4oYcUQI61sVLCJAA+Pl054xUCJlrM9eIay T7WQ== X-Gm-Message-State: AC+VfDzcvk6AL2V7Nevg8ntH6W4w+q1CJIGDgasMo/bsoPqEwW4eQorj /ozh+kGVTl8iY7HTOFEu/DSwITzdpS9mtHlcqJg= X-Received: by 2002:a17:902:f551:b0:1a1:cb18:7f99 with SMTP id h17-20020a170902f55100b001a1cb187f99mr2321729plf.30.1685038239382; Thu, 25 May 2023 11:10:39 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:7ac5:31cc:3997:3a16]) by smtp.gmail.com with ESMTPSA id m18-20020a170902db1200b001aae64e9b36sm1710243plx.114.2023.05.25.11.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 11:10:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 02/23] tcg/mips: Move TCG_GUEST_BASE_REG to S7 Date: Thu, 25 May 2023 11:10:15 -0700 Message-Id: <20230525181036.1559435-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230525181036.1559435-1-richard.henderson@linaro.org> References: <20230525181036.1559435-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52a.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, T_SCC_BODY_TEXT_LINE=-0.01 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: 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 No functional change; just moving the saved reserved regs to the end. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/mips/tcg-target.c.inc b/tcg/mips/tcg-target.c.inc index ee6c2eb872..f322891797 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -86,7 +86,7 @@ static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = { #define TCG_TMP3 TCG_REG_T7 #ifndef CONFIG_SOFTMMU -#define TCG_GUEST_BASE_REG TCG_REG_S1 +#define TCG_GUEST_BASE_REG TCG_REG_S7 #endif /* check if we really need so many registers :P */ @@ -2190,7 +2190,7 @@ static const int tcg_target_callee_save_regs[] = { TCG_REG_S4, TCG_REG_S5, TCG_REG_S6, - TCG_REG_S7, + TCG_REG_S7, /* used for guest_base */ TCG_REG_S8, /* used for the global env (TCG_AREG0) */ TCG_REG_RA, /* should be last for ABI compliance */ };