Message ID | 20241004163042.85922-12-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp869591wra; Fri, 4 Oct 2024 09:34:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXd5EoXpnRMofDxO0vxDot9qfpyQj4EEQGbdrQ5sUgbRnGRdTBd4IVjApysBvW95ni6Er7Zhg==@linaro.org X-Google-Smtp-Source: AGHT+IE9cCfSFzZiZuxxBxP3DzFBKtUlrZg2DVP8bKSTNEpSQJY/61bdhchG2DcXIJ6GrAviRTz5 X-Received: by 2002:a05:6102:3912:b0:4a3:b744:7bfa with SMTP id ada2fe7eead31-4a4058f71f7mr2237365137.26.1728059656173; Fri, 04 Oct 2024 09:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728059656; cv=none; d=google.com; s=arc-20240605; b=fswvpEVxaEm8Ql43PCTgFHWHmKSdwxqO0ppkefvMzdmKT3pW6TLVBHizdIdLBYsqQq pgUutrd+nJ+96zrlCWoHZ1g+3HEvCzijAtRNXWG4uAYkcIWgn6jKCznkIOOGATN6XzHR KUPfLjQ4Wa85OePmFxQK8uYKQ9oc6bPDnwkEZMkxWyc2KZk1KKkausMRAFcAuxN+hehh gy2edfWYSN+2TXhBPhM70lyWoFQHADwHdNBVch0MTtd0x8IhK2MUKECChh/+CakT4nV7 eGmrNssovUt2sE0SFK185YCzf22v0zHCThe09P3M8JAC0WUG0gYUeXJZNOXcLBtLokKH sEcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=A2b2LwHBDDNlQ4lpraog9QbauHHDsoDaj9FTLQzChw4=; fh=Cyx8393Oz+CWhBBtvLnsw/Ha6TQ3OyuB9akIVJXTJlY=; b=jUZinYMOy5T9l1mISRClRJQlD55Ot4yNS41XBA0bzDjgrEcuNeU0VlLVpJG0rP/r/x tSBCLuBH6X4mFnObOt+GzU/8gNxWpJxqMvWh5i2eGV2COJAiSebHIT9nKVFIzj0DlaL4 RI8Dn/aNtCehS37PdosWzSONhalgl5Wsr3RCAEJ+R4fqx+LNdwNVW/apaziqBKCRzH/+ UkcFppy5j4yVnskcKa5/YkrFVqM5FWVruvQK0AiU06ewwsflUWah3wDbLhaqrSqzD6wh /oZPpw7GIOpAU2Sf4nUS5Ox7I1WlLIpuWngtRsHeggyNwwgQHkw3+XfVy78MN/aJzXl1 Upww==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SUWGMhS8; 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; dara=neutral header.i=@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 ada2fe7eead31-4a412ef79f4si46663137.723.2024.10.04.09.34.15 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Oct 2024 09:34:16 -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=SUWGMhS8; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1swlFd-0000iO-U7; Fri, 04 Oct 2024 12:33:58 -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 <philmd@linaro.org>) id 1swlFK-00084J-3b for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:33:38 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1swlFH-0005un-Uq for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:33:37 -0400 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-5399651d21aso2263894e87.3 for <qemu-devel@nongnu.org>; Fri, 04 Oct 2024 09:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728059613; x=1728664413; darn=nongnu.org; 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=A2b2LwHBDDNlQ4lpraog9QbauHHDsoDaj9FTLQzChw4=; b=SUWGMhS8Rb1Z8N6M5Ui0gGXejRg6XVT7CurNAYKpuy+W/qKzQKmt8s04pFlA21fb99 9C5YvEm7CU2XWbBI569KpEPOohBPZM/TRHDNVkIwGYO9dq9Cjwgclt5bLko8f2B8prkM D5fNDzTUC2EM4xDnFQO/b2WjYG8T5OLKEokukRLXj0h22AQFr6TAFvZUFJHqxjdn+Cfm 2oSGpX1M0uRKOYyJ8c9Lb7FwRsormh4gKd/47kKgiBv+Cpx3WpLTEH73HAm53oRLt7RT 58PPFhsHAFpq9LCCJdTohWN73WyHlyPVGsrygEnX+J6jVdcB6ovwA12LUa4qaNj/9qRv rUsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728059613; x=1728664413; 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=A2b2LwHBDDNlQ4lpraog9QbauHHDsoDaj9FTLQzChw4=; b=v9xTIGrSYvKslgheDuwVU/R7H7M2WefUo/75FugOvjePdG4unR4WQWwYlT9KpnbrfU WTMjox/97+CyDECwmpJjf8jtWePwTMNwJ5asmG1DWD2HBAQLEdciEe10iZ4NcLkOeuOg Gf0KtQwDCJpyZlj3bp1palqlTO7z+gZZS9WzwNEad2nG8LjmwVS/4/D9DaIpcapfPVqf 3QV5RMDf5uloV/rUtPyJN6onsfMVDhhqNYWZ/qHnU+edx8Ug4EwrtF7MhLHCKRoKsF3Y jefMga4bFuByu+iT/EEevfOuZRgb96D943W6ei8179FYio7nIawzkR/yGAYCKaA25+OO PP2A== X-Gm-Message-State: AOJu0YyXOJ5lZ3Cw26ZzXyxFlkVV+YqW3svYDrOQwDKQhDvCUC/CmQMp rPBI2Kg3jFFRiQ26uzyEB6gJJLUhgf0qieB421u5lk5ZrysikEkgRcP9hyRZtvJ34U8I2D/fw3d N23e/LA== X-Received: by 2002:a05:6512:692:b0:533:c9d:a01b with SMTP id 2adb3069b0e04-539ab88a4a7mr2428184e87.29.1728059612608; Fri, 04 Oct 2024 09:33:32 -0700 (PDT) Received: from localhost.localdomain ([91.223.100.150]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539aff234d7sm718e87.188.2024.10.04.09.33.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Oct 2024 09:33:32 -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, Thomas Huth <thuth@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v2 11/25] linux-user/i386: Use explicit little-endian LD/ST API Date: Fri, 4 Oct 2024 13:30:27 -0300 Message-ID: <20241004163042.85922-12-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::12c; envelope-from=philmd@linaro.org; helo=mail-lf1-x12c.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=unavailable 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-bounces+patch=linaro.org@nongnu.org |
Series |
misc: Use explicit endian LD/ST API
|
expand
|
On 10/4/24 09:30, Philippe Mathieu-Daudé wrote: > The x86 architecture uses little endianness. Directly use > the little-endian LD/ST API. > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > linux-user/i386/signal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/linux-user/i386/signal.c b/linux-user/i386/signal.c index cb90711834f..0f11dba831f 100644 --- a/linux-user/i386/signal.c +++ b/linux-user/i386/signal.c @@ -754,8 +754,8 @@ static bool restore_sigcontext(CPUX86State *env, struct target_sigcontext *sc) env->eip = tswapl(sc->rip); #endif - cpu_x86_load_seg(env, R_CS, lduw_p(&sc->cs) | 3); - cpu_x86_load_seg(env, R_SS, lduw_p(&sc->ss) | 3); + cpu_x86_load_seg(env, R_CS, lduw_le_p(&sc->cs) | 3); + cpu_x86_load_seg(env, R_SS, lduw_le_p(&sc->ss) | 3); tmpflags = tswapl(sc->eflags); env->eflags = (env->eflags & ~0x40DD5) | (tmpflags & 0x40DD5);
The x86 architecture uses little endianness. Directly use the little-endian LD/ST API. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- linux-user/i386/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)