From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45C04C87FCB for ; Tue, 12 Aug 2025 12:09:35 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ulnnZ-0003Ya-9U; Tue, 12 Aug 2025 08:08:13 -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 1ulnnT-0003YB-7E for qemu-devel@nongnu.org; Tue, 12 Aug 2025 08:08:08 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ulnnQ-0002hV-43 for qemu-devel@nongnu.org; Tue, 12 Aug 2025 08:08:06 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-2401248e4aaso62427605ad.0 for ; Tue, 12 Aug 2025 05:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1755000478; x=1755605278; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SbWB1iGc4be68MUaR4nnqVpn7PNG4VIGPFufJoq+xv4=; b=HBWy+J5SOXmtIoUhrtLntpPawpw3kiTpQdvxIknjynao7VA3fxDaunm/BwZ8DUGfXw MRa1jTYwf6r7aGNqsO50tLKFIs1MzeV4vfSaXvMV5u3isRRpeDqiWPqWxCu44ZUkQeE/ INZxFMojdZFA4ehiw4avvdOewYqlhNLYfzus8bk/C0BKvwqidpXY3vg5JfTolUOsQv7M b+dI8ciQPYAEonMef2G9rezRXXUnBr5THB02tA2galy3DCnaapbLdQieUwzg/amZ3zmW xOlnCL9LEfhAUGSt0pTFMZwn1rVd5ygrRVI4rb993GM8jHnR4g8QyFukThOS/gNov0eF N5kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755000478; x=1755605278; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SbWB1iGc4be68MUaR4nnqVpn7PNG4VIGPFufJoq+xv4=; b=UliRtrZffvJimDGAor2S4iORnCI985F9hkkT7u7eAZ/lk25BPVs9EEgnfPIMiyT+lK AW/l5VMhYw+9ubhINGhTuqMUqSNMWZxZWALa9z3MZr+cHPE/LxIvfpe/k/Ie0ateJLH8 MhTgIyrAKqfwL46flvUhQkNww2G+7syJ39inALGDEaOXu4J+vqhAumjEcqqxkfsp4NKT NLNMNvehVF1J0VefEWLoPOUztXglHVuJxKpDJFDZBCsRUJ1+6BE4yByOQM10TkpzraZ4 mnOZltG+/bBt9o/VP5v6WX534Rd0JCtMq+yxq0KdxFXNfqdeJwifiAFz1sUy59COesSH 2+6Q== X-Gm-Message-State: AOJu0YwyR1F2Fq1j0nj4eOW58WK17nbIwQV8+fujWpDl0FTIm3wFITPX EjoGNrF24jIhhCOg41LyMINQ6aazsrJs+J9HQCP1RNOo5HmSy5Cie/BLkqcHf5Qgcw4= X-Gm-Gg: ASbGncubRWM0d9ivU6H2s3ItWuND9MuKCoOXIHri5B43RXWD28QEHIpSI5quSRnaCfS NVC2jq19nSQqNs+ifa5nBxfoejWNRCG8OLemBw8myFXrx8O7sWj74QDk56BKBW5Lne1SigEPntB vSVIms5IA90HW8lY3x4BNZpaljuJtxjhRPF6B5ZJNc9Zs4br2RxTFoFdW44sDwRaz05Lmmf1vZZ V/nXgQ+sV+21c5p2IE7XEt9DTOhSMn2e4BfRgQKfJ5YfN0GwUKe4/adK/K/1MLVmx7qUZxH11hn aH+qi1RMgyEBUJqVwrV7SLY6s/LitsMYxxa/MShO42mQvNdpjnDNxOxMQ4DlkCSrNrLQ8hhBASk s3o6e5pZUUFckr//ZDcugqIyf0vuvjiJbCQNvIaBK X-Google-Smtp-Source: AGHT+IE9W6uSA0T3OR6c9RVEJ+xwQbH8TZPRb06BVWl8UC2GUU1drrYqiiVsATnzDD62Lbos43evtg== X-Received: by 2002:a17:902:fc50:b0:240:3c86:fe41 with SMTP id d9443c01a7336-242fc211f3fmr54226345ad.7.1755000478224; Tue, 12 Aug 2025 05:07:58 -0700 (PDT) Received: from [192.168.4.112] ([168.140.255.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-243017dd480sm14845385ad.33.2025.08.12.05.07.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Aug 2025 05:07:57 -0700 (PDT) Message-ID: <411c904c-c2c4-412f-940e-5a9782bf58e3@linaro.org> Date: Tue, 12 Aug 2025 22:07:51 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 00/85] target/arm: Implement FEAT_GCS To: Thiago Jung Bauermann Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org References: <20250802232953.413294-1-richard.henderson@linaro.org> <87jz39mcbi.fsf@linaro.org> From: Richard Henderson Content-Language: en-US In-Reply-To: <87jz39mcbi.fsf@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 8/12/25 13:46, Thiago Jung Bauermann wrote: > Most of the GDB tests pass. The only failure is in a test which sets the > GCSPR in a process to a bogus value. This causes the process to get a > SIGBUS: > > (gdb) set $gcspr = 0xbadc0ffee > (gdb) continue > Continuing. > > Program received signal SIGBUS, Bus error. > normal_function0 () at /path/to/gdb/testsuite/gdb.arch/aarch64-gcs.c:121 > 121 __asm__ volatile ("ret\n"); > > In the FVP emulator, the process gets a SIGSEGV instead, so that is what > my test expects: > > (gdb) set $gcspr = 0xbadc0ffee > (gdb) continue > Continuing. > > Program received signal SIGSEGV, Segmentation fault. > normal_function0 () at /path/to/gdb/testsuite/gdb.arch/aarch64-gcs.c:121 > 121 __asm__ volatile ("ret\n"); > > I don't know whether this is a bug or just a different permissible > behaviour, in which case I can easily adjust my test to expect either > signal. I may have forgotten to set the gcs bit in the iss2 field along the unaligned access path. I'll see if I can verify this hypothesis. r~