From patchwork Mon Feb 6 22:34:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 650962 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp2531386pva; Mon, 6 Feb 2023 14:39:00 -0800 (PST) X-Google-Smtp-Source: AK7set+BJbGhkH0SmVFrCJ1nI2YdkQPfF8hcOb//ezcHG5k6+h+QZ5FwV9WMzPx8l168uw7EisGl X-Received: by 2002:a05:600c:18a6:b0:3dd:1a8b:7374 with SMTP id x38-20020a05600c18a600b003dd1a8b7374mr1176856wmp.5.1675723140804; Mon, 06 Feb 2023 14:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675723140; cv=none; d=google.com; s=arc-20160816; b=HZ5cgZwbroKKRMn6fu/z5ipn/9225/HNIpiZZc4Tl7AWzph/QHwEc5HUTVBZstqGms 10OyNt4XjFfRIqkZ4zBPTLSRTiiMB6NRGhkV4vVkQCVhAfHVbxsYXg64Nm9zpjkLsiAR lVUQknrYwNLS/Zn02ge258V5fpHcpotY9UDPXq0bJ0E+jUN4PwYVZ0/3Rq3f1Dg+U5th SeLk4OKBYYyJU9wzyELQ0SqLaMRegKfJzmSUzEfLZCcVBnruZMExVf8HX5y2MLyvj8z/ G/vmwUpXBkCZ5GzA0e1miIu+V+R6xGssHe745T1yfmXFB1rtuoDUCJ41ZHkI+sS/FMqq 5JrQ== 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=blxTJd5Tx9NIUQZO/x0aKGGdE7GU/DbRJ0PEKLke2ts=; b=hXD+XvKMf1dUhOnhCtP4/H1uZ5hdbSXJtQIhrhD/HV+i4ws1or9JlnYHvjCGECBlaQ v4kvKdrRHJvxted9oKZ9XqDnRC4pwgoqO6CEAaj63PZujNEyoVNjdhhM4y/yY4cKKq/1 QgFFBAnUqE3WHEqAR/437h7Ey4KLGGfjxrvJefMyvKDHssT0xdor1utMzyk2oZj3a375 azN0hdsVvEJoH7oPFqpl1JwVK6fYM8UzUSunva+QD5FvzYoiFXpafpz5xMj54gtKHN2q T9DA8CrXEyWnYrAI2IQCN/0z2vNDHtlcmBfAzIPm18py7lwV9Z2pefau19l0ZPugDtYx C1qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O0v/mntk"; 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 l8-20020a05600c4f0800b003da10b4a918si13985810wmq.58.2023.02.06.14.39.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Feb 2023 14:39:00 -0800 (PST) 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="O0v/mntk"; 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 1pPA5L-0001pI-6V; Mon, 06 Feb 2023 17:35:39 -0500 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 1pPA5H-0001lk-Qt for qemu-devel@nongnu.org; Mon, 06 Feb 2023 17:35:36 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPA5F-0004Tu-Ha for qemu-devel@nongnu.org; Mon, 06 Feb 2023 17:35:35 -0500 Received: by mail-wr1-x436.google.com with SMTP id i5so4715920wrc.0 for ; Mon, 06 Feb 2023 14:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=blxTJd5Tx9NIUQZO/x0aKGGdE7GU/DbRJ0PEKLke2ts=; b=O0v/mntkLzsAwHjb/nhX4yl/zVm8bN+5Pa5mzJVvu642xpmgEbfXxmO5QktMbPnwTa FDdLZKmL5u+PUBRidLc/slaVJ/YWNFQlH68bsLYuiF9ZP+My18MhDM64zcVakMJddaAS tS3/WInDY8JAspYoDznqDPbiutDScMJ5NpuOtC6LSgiI7214SDRINdzC4kWMXB7v5LJm DAMR5yGMmECHelSHznGjsbG8bD3yovzHm76Q7EiqN84H0P+Cbe0iUCYAizx3WG2TSAqY AHa+BpdwL6XpnWm2HwUXb1zXaoGCqgKTDk6jdGt/PBle8ssh80HXkl0WHYnawdeL4gPt 37TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=blxTJd5Tx9NIUQZO/x0aKGGdE7GU/DbRJ0PEKLke2ts=; b=TMLAIquybA9E0UVqj6InY7M4yhm3QMZg8yETcZie1P5NfMujHSiDKRvR7nShFWjPLl ujhNk5VNPakfB+Dg2P/iVGM/chx2ooB+dnlXyom/8K+q5nzPuDeFBdTSAUhy+2S2EWeL CLnYjBmpezMQhP61VSCfHm9WQUlR/FGy0VbL3Rz8D+XGFv5HhHp0tJKQA0oiQM+8E6nQ 2029cHis5qePWDf/225qsMWEFngLhK39+16XzSDvjgX/OnfmrDgTnHGhbliqsF/HSR1N QOxUdWYtm6iVQSvBNOm1NQpwjWffrtUjMbxvlDX3GkZ/xOxG4ayY3jM87dK0L0BLN7We r6Kg== X-Gm-Message-State: AO0yUKWLSLSoMM+R5drLMz+r6aZsuKNlBKgOTDTM8RPVyd+83m2J2OyE Xtc4AKFlovoQCMoT2k4vWFyP+gBPNZ+l0d8R X-Received: by 2002:a05:6000:1287:b0:2bf:bb71:dc55 with SMTP id f7-20020a056000128700b002bfbb71dc55mr422119wrx.52.1675722932088; Mon, 06 Feb 2023 14:35:32 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id s7-20020adfeb07000000b002bff1de8d4bsm9769030wrn.49.2023.02.06.14.35.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 06 Feb 2023 14:35:31 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Laurent Vivier , Richard Henderson , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 05/11] target/arm: Convert CPUARMState::eabi to boolean Date: Mon, 6 Feb 2023 23:34:56 +0100 Message-Id: <20230206223502.25122-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230206223502.25122-1-philmd@linaro.org> References: <20230206223502.25122-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.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: 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 Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- linux-user/arm/cpu_loop.c | 4 ++-- linux-user/user-internals.h | 2 +- target/arm/cpu.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index c0790f3246..a992423257 100644 --- a/linux-user/arm/cpu_loop.c +++ b/linux-user/arm/cpu_loop.c @@ -356,7 +356,7 @@ void cpu_loop(CPUARMState *env) break; case EXCP_SWI: { - env->eabi = 1; + env->eabi = true; /* system call */ if (env->thumb) { /* Thumb is always EABI style with syscall number in r7 */ @@ -382,7 +382,7 @@ void cpu_loop(CPUARMState *env) * > 0xfffff and are handled below as out-of-range. */ n ^= ARM_SYSCALL_BASE; - env->eabi = 0; + env->eabi = false; } } diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h index 0280e76add..3576da413f 100644 --- a/linux-user/user-internals.h +++ b/linux-user/user-internals.h @@ -135,7 +135,7 @@ void print_termios(void *arg); #ifdef TARGET_ARM static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { - return cpu_env->eabi == 1; + return cpu_env->eabi; } #elif defined(TARGET_MIPS) && defined(TARGET_ABI_MIPSO32) static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; } diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 7bc97fece9..05b9012cee 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -723,7 +723,7 @@ typedef struct CPUArchState { #if defined(CONFIG_USER_ONLY) /* For usermode syscall translation. */ - int eabi; + bool eabi; #endif struct CPUBreakpoint *cpu_breakpoint[16];