{"id":1992879,"url":"http://patchwork.ozlabs.org/api/patches/1992879/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20241004163042.85922-15-philmd@linaro.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20241004163042.85922-15-philmd@linaro.org>","list_archive_url":null,"date":"2024-10-04T16:30:30","name":"[v2,14/25] target/tricore: Use explicit little-endian LD/ST API","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ed31cd6a329cf0965bd58587a89579494157c202","submitter":{"id":85046,"url":"http://patchwork.ozlabs.org/api/people/85046/?format=json","name":"Philippe Mathieu-Daudé","email":"philmd@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20241004163042.85922-15-philmd@linaro.org/mbox/","series":[{"id":426623,"url":"http://patchwork.ozlabs.org/api/series/426623/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=426623","date":"2024-10-04T16:30:18","name":"misc: Use explicit endian LD/ST API","version":2,"mbox":"http://patchwork.ozlabs.org/series/426623/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/1992879/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/1992879/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=SzPpt6RH;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4XKvJn0V89z1xtH\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  5 Oct 2024 02:34:33 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1swlG6-0004av-G1; Fri, 04 Oct 2024 12:34:26 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1swlG1-0003qJ-7O\n for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:34:21 -0400","from mail-lj1-x231.google.com ([2a00:1450:4864:20::231])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1swlFz-00065B-EM\n for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:34:20 -0400","by mail-lj1-x231.google.com with SMTP id\n 38308e7fff4ca-2fac47f0b1aso29919201fa.1\n for <qemu-devel@nongnu.org>; Fri, 04 Oct 2024 09:34:18 -0700 (PDT)","from localhost.localdomain ([91.223.100.150])\n by smtp.gmail.com with ESMTPSA id\n 38308e7fff4ca-2faf9b339b0sm194261fa.124.2024.10.04.09.34.11\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 04 Oct 2024 09:34:15 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1728059657; x=1728664457; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=VXhl0xEMfTxY7A/pldYaZefOo2LKk36HnCJi2vt2Dc4=;\n b=SzPpt6RHFygxgf0Zop5pieCHNBIXPTQOBvuzK2gY1SvfRXzASxyhtbOif9L2LlovnS\n +oVmthXPOnKG8fD+l1szHZVtIyWMioabCayNVKK3M+cgwOQhAmdo6QgBBelOJGk3pbkF\n XoFpMQDYDtWDhhqlKrThejqewClb61RXLZsHfKkKmOenr9AGFVC17lx5tBozbI+FJcdl\n 6bhH79IIi3Sy2ADUDStrpTL93tRoil+sTlNzOSYhHBqiQloGTW6yhKKTBBWqe4T/TjW+\n RLMfzwRnYAllJkhA9qVBMvGXqKPNHWGRE7u23IBIyVLNx7wFArcdiUmPbnMhJF++CN/X\n 8LSg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1728059657; x=1728664457;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=VXhl0xEMfTxY7A/pldYaZefOo2LKk36HnCJi2vt2Dc4=;\n b=sW1i/eoj8bsk0HN/vFweaula7ctQKGa5a5lZGCsQRgRbNQGXFq3MKdv3xzqVWMsBW4\n If0PzuqfqsE2Dwej8qVfy1bzYrn5lCYCKmv8WrzWMwz++ks/4fV1tRlZMphDIbTCOnbU\n vUOArOFGKnSkUQIzZvMWIFYsIGMpIJH3/TpiSvDQPXxiXNXGhX0RvTalvy5CbtCueNzC\n 9v/2h7Eo+A8jjS7S6zAJairVWFbAtPDXC+NEQuR0RSAmNUi4p/hAe9/lCY3GTrihnr8S\n WzTwbkh08csT8eYyrwxSntKw+mv40ivDFsgWHUutloZ/JlqvxmPT3ydmzebBcHYC5Q1q\n Q+Sg==","X-Gm-Message-State":"AOJu0Ywzm/S342Gr4ZFItLcIF5XZPmn/zDHWpzanaEP9XaOpCEXJkC2z\n F0k5ZG0ljpqsKJkHpPs+MmgDVgPwILenCxgrSlqvOgxGlzTS5ZJpIWQZwJPlSGWcAyY31qhhh7s\n yM/QTAA==","X-Google-Smtp-Source":"\n AGHT+IFSTgZKlya48UFvXDektzLy1IE9Nc2pyEaM/u3ALTn2dbLHkA8CPFiR02Iydbr1v/q8arxrcw==","X-Received":"by 2002:a2e:a542:0:b0:2f7:51a2:96f2 with SMTP id\n 38308e7fff4ca-2faf3c011dbmr15140621fa.8.1728059657380;\n Fri, 04 Oct 2024 09:34:17 -0700 (PDT)","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"qemu-riscv@nongnu.org, qemu-s390x@nongnu.org,\n Thomas Huth <thuth@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-ppc@nongnu.org,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","Subject":"[PATCH v2 14/25] target/tricore: Use explicit little-endian LD/ST API","Date":"Fri,  4 Oct 2024 13:30:30 -0300","Message-ID":"<20241004163042.85922-15-philmd@linaro.org>","X-Mailer":"git-send-email 2.45.2","In-Reply-To":"<20241004163042.85922-1-philmd@linaro.org>","References":"<20241004163042.85922-1-philmd@linaro.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2a00:1450:4864:20::231;\n envelope-from=philmd@linaro.org; helo=mail-lj1-x231.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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>,\n <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>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"The TriCore architecture uses little endianness. Directly use\nthe little-endian LD/ST API.\n\nMechanical change using:\n\n  $ end=le; \\\n    for acc in uw w l q tul; do \\\n      sed -i -e \"s/ld${acc}_p(/ld${acc}_${end}_p(/\" \\\n             -e \"s/st${acc}_p(/st${acc}_${end}_p(/\" \\\n        $(git grep -wlE '(ld|st)t?u?[wlq]_p' target/tricore/); \\\n    done\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n target/tricore/gdbstub.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/target/tricore/gdbstub.c b/target/tricore/gdbstub.c\nindex 29a70051ffe..0b73b1280e0 100644\n--- a/target/tricore/gdbstub.c\n+++ b/target/tricore/gdbstub.c\n@@ -124,7 +124,7 @@ int tricore_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)\n     CPUTriCoreState *env = cpu_env(cs);\n     uint32_t tmp;\n \n-    tmp = ldl_p(mem_buf);\n+    tmp = ldl_le_p(mem_buf);\n \n     if (n < 16) { /* data registers */\n         env->gpr_d[n] = tmp;\n","prefixes":["v2","14/25"]}