Message ID | 20250321112523.1774131-3-peter.maydell@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:5f4c:0:b0:38f:210b:807b with SMTP id cm12csp807379wrb; Fri, 21 Mar 2025 04:26:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWzV+h0OIbxBqKtAYDp+IlRZ+2Duhc91eSDd51TOcHE9T9L+fP3bMcuIApf0L3KAMQjIYUa5w==@linaro.org X-Google-Smtp-Source: AGHT+IGN7lFyn/0kWNsWTb99JH0TaqFdcZ0JRjACgF2zzSM2mJZO5yIpMXApVZVOqSv9DOO6Y5nh X-Received: by 2002:a05:622a:5914:b0:476:ac73:c3f3 with SMTP id d75a77b69052e-4771dd6230fmr48625921cf.1.1742556381870; Fri, 21 Mar 2025 04:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742556381; cv=none; d=google.com; s=arc-20240605; b=LwYZuYNH39aTHjCZoShb+4KEOw3s/61a5p6e1JBvO3u7Bi8XsROq7kB6XGHcpwiDCs iQBsYjCeKbu07FnqfXnj986SKnsdLjk54BFe9ZaHZp7p0Y5UDmtzxXDlxULma13ipZG+ Jybxk9wENthiO28TpPxWWk3oyOed60EUWtIu7XihgEwl57rYxyusf+n5L89YQArmzzsq 12u3udD2/t+t7LoFpBDVFSPaF3i06X70hldZzfY38VpCMFpssC30mbVJWmfC8PTvfUF5 cIHlDge/cyfZ0uOZEN9t8XRZxaq032Lq+nfJ41l+aKzAEQNhc4b1hH++aQNE5BIi9EyI UlAw== 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=DwalI5yLXIYOeimdWTNSfaCvh6YDdb17pOS3Ktb3jnU=; fh=HLXnNMteiPzuWkYQ6K1hv7SXDKDH1L9N99dPHN0bf7o=; b=MUtb8zoXI7Sjz0dSJ9UNjicJLhY6xsmB8cdavg1Zuv9QZHvLUQ/m00uTYp8q0FCHSV QHmIzTjh+2XKReUnvJL+9wqJSgyha1wMmN3XtC/QX5CjkF7fLVTzZIMCmrbF2c1Rgz42 2mGrYzelK17w9rMPWRtLngjDnmEXC8/O7NKC8xXPYqQeH2DYz6QZOCw5z4OXMCMOyKjb s+U01RjP5lfxPURxB6gNYwY8oEU/ISXSYciEK5kqqBBCRfAajmczs/qeGCQY9vQuz4VX dPHQ3esIAzdykeFon2JGRIEy+VIkyXvcFjSt+VlrJTNVmrHkLHebXk6VL3WO043dhxFM rWKg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMXr9FSM; 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 af79cd13be357-7c5b92af79csi180254485a.44.2025.03.21.04.26.21 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Mar 2025 04:26:21 -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=tMXr9FSM; 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 1tvaVT-00040e-0c; Fri, 21 Mar 2025 07:25:43 -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 <peter.maydell@linaro.org>) id 1tvaVJ-0003vf-4m for qemu-devel@nongnu.org; Fri, 21 Mar 2025 07:25:33 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1tvaVF-0004Oc-J4 for qemu-devel@nongnu.org; Fri, 21 Mar 2025 07:25:32 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3913cf69784so1493555f8f.1 for <qemu-devel@nongnu.org>; Fri, 21 Mar 2025 04:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742556328; x=1743161128; 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=DwalI5yLXIYOeimdWTNSfaCvh6YDdb17pOS3Ktb3jnU=; b=tMXr9FSMdIAnk+lOHR9mvLUnfSKrhGFfKvNQ5+SYCe2MxHrGhy3PMlWNuzZ99kYmua E3bbmZwKIyOrrjjeq+NFsgWEyw+BAC1lEj+MHklzJLQtlB14o6uoTNxOdkavQSt8Dgky GXypwXPPS6G1ShqPRbiYmm9FV0EQssYjtOR7fT/AC9DU8jdZMHg1Av7cp0jwi9/H7tXE Z/t/3EVgpQF8EUX8DJ/wVewqqcwYYO54ZipouRgAEvxx58xuMiQo8Q7lvzKvhm85yQVs s229yjtjFyRDXjCkoCXN/gaXbtd0WqoKFch8yfvqXExY9xM9/Js93kMOszeE45P+LDM1 IOZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742556328; x=1743161128; 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=DwalI5yLXIYOeimdWTNSfaCvh6YDdb17pOS3Ktb3jnU=; b=WMJC58KB1Ci+C0dN9AQNDQMp9+/28f16GahgDxlUQ0VZm1GJEZoD963T9AyCZl0il+ tYpVqGw2CgsF6I1tUAW9Xz9tuKi6EbgoG+CxJ7WQ5A68euLJPmK0aTnHD6TJvS/BvAXD Or1j/JKoKBsUMBg3oJT9k0IK+nPZerW1XQjzNPA+odPYzBwcsOg08+qWZhFWPeTF6FE3 I+geNPykTNLmiThl5f9L5bn4gcvOo8xfVe8140Pdaj+e1FT0WsZgvNb7AGY6wPeMyMzj N7aB7aGjRgQrygdyhrwtpCVjrINSYuLis7xjSfWSO/mIrlnbXFXkglgRbhcISK858de4 FV3Q== X-Forwarded-Encrypted: i=1; AJvYcCU3cqDGc86+dMEnOHDzSy8oZ8dy+LveFYLeJIDtIwkpoL+JWTBm/yZiV0lutl2hC3UWKSxcfJ0qtnle@nongnu.org X-Gm-Message-State: AOJu0Ywe69yj8LyrTwskc3ZzjBfbwrWeWQmbr8J6/5GRguFORYIf3t8p divNB0NPDnYNuOo6Exg2Mrp/ZE87DkAvaCeN/2CObyD73Umxmz3oc4Q0s02b5M4= X-Gm-Gg: ASbGncsrEZjwtenrYhyE2yDSIEQIz5VA000HkRTJRW24p46KE4ACOShyFWaNEev9H9F cSLy3PTNdaNHlzO5zxMK1JH5OkS1DuDXeFit6ha1sm2I3cW63+HCycokS8WQxK4Kc2PNPA2zI76 w7pPjI004GKpWIL39d8zbEN0GyTX/LWk5opgQrmk4UGCzXUH1XIYAVTfW6yZzZpu9Y+Jc+I1ar0 r+6e+4f4o8vzvFPnS7LpQNzKhvRj1FyB6v6yBoYNRxSJ27I60V19A06a5NXbupw0Q0v86AYEIuK lhkWkGMQkjJ8c1xnFq4fj+NRbaYBMMsvJONbpkow03sqnSZn6/T9Rotjvq0Xxw== X-Received: by 2002:a05:6000:188d:b0:391:3124:f287 with SMTP id ffacd0b85a97d-3997f9014a6mr3430455f8f.16.1742556327776; Fri, 21 Mar 2025 04:25:27 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3997f9e6767sm2132614f8f.66.2025.03.21.04.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 04:25:26 -0700 (PDT) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, Zhao Liu <zhao1.liu@intel.com> Subject: [PATCH v2 2/3] hw/char/pl011: Pad PL011State struct to same size as Rust impl Date: Fri, 21 Mar 2025 11:25:22 +0000 Message-ID: <20250321112523.1774131-3-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250321112523.1774131-1-peter.maydell@linaro.org> References: <20250321112523.1774131-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.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 |
rust: Fix PL011State size mismatch assert
|
expand
|
diff --git a/include/hw/char/pl011.h b/include/hw/char/pl011.h index 4fcaf3d7d30..299ca9b18bb 100644 --- a/include/hw/char/pl011.h +++ b/include/hw/char/pl011.h @@ -52,6 +52,11 @@ struct PL011State { Clock *clk; bool migrate_clk; const unsigned char *id; + /* + * Since some users embed this struct directly, we must + * ensure that the C struct is at least as big as the Rust one. + */ + uint8_t padding_for_rust[16]; }; DeviceState *pl011_create(hwaddr addr, qemu_irq irq, Chardev *chr);