Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1tNs3O-00037f-Bv for mharc-qemu-rust@gnu.org; Wed, 18 Dec 2024 06:17:22 -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 1tNs3N-00033B-3a for qemu-rust@nongnu.org; Wed, 18 Dec 2024 06:17:21 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNs3K-00086Q-62 for qemu-rust@nongnu.org; Wed, 18 Dec 2024 06:17:20 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-385e2880606so5719347f8f.3 for ; Wed, 18 Dec 2024 03:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734520635; x=1735125435; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=S+DB6N73yHGvsAXmUommk/ZUinIeBiSObIv3EDMmrBc=; b=DvgxtCf8qbud83AuklimUURy8pEUd4rDBSqpoYQgu5J2I/uwdrgA+wq2pSbjwQtBuM 05SfkgO4hccdUYcGTru5/djL0A/U8R+SFvfOX5IdGbi0IMiRUawD/68Zjh3yNdt0dv6o g62YlW+huFOEf5sPTx5P1J7iPeHcmc2RqecdHi+oRDWxMvdsBOvhqsCrk9ng/0xK7EWu F07j7aiJcdzxuDDskzN2yd2opqw8SML20L6gd0/no+VJfTuuW9ohhEu+upBWSDpJJ69Q tzV3/TjgMz4AEd/djy6a9znSK617cdJ7etOtMGVvZ70J4vawMw5j8XAxACgaWcBKlMR9 Vdkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734520635; x=1735125435; h=content-transfer-encoding:in-reply-to:from:content-language :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=S+DB6N73yHGvsAXmUommk/ZUinIeBiSObIv3EDMmrBc=; b=qXYuEh0vObLsb+6GgrrVBoEzRU3A/nT+/sl4bqs1c94H9NyX2lv7kRlhr8W/araWES /QfDfK19LuptX4Eq3FTtDFw6vuaxAJIGy3ZWhHgc5GbeAaNKG7s40KEmdaiPtW7nnI7/ BPtSHGlSh+O/3MBFc8zGPQsB+M6/pP2T8wIDzSkm/5Nrfm8uUsevpaW3VzYt06cvdlk0 2udVwRVcFxIfKYS3cBYBGv2URHuVy0IljJb+YDih2r278AuN+34u1SBpml3U5ma4CMoT aZ2n1beJ3nqd/3MRHHyRYfBzEKTt2K+7+qzs1Xi5PgRM3Xs2nFMDBk+/hWpy74sdCo5a aBlg== X-Gm-Message-State: AOJu0YzXBRfVvRh9Vi5Yxcedk7OtDQtYaxFyl0q+G2w5puWZ2xfyXh2n gtcDy5Np0Ezv/v1JqN5Ld1N3snsVBZHZLUDXHuNstG7VgnVHd2n+FB7K4bvAhQs= X-Gm-Gg: ASbGncttXuLxP6dU3apt9kj36CqN+rZzOsuIsKe5cmsUYx6nM81mIjiK69DORG+t7Wz nhAxzP5ckQrupztcsvfSji8+tpNc8kLYy6JnCStfe3/wz85UbmcxC7NBzETKPUX9Za78uaiXALT 1bxbgGSCc9QKbVcC6xF06ZbdJd1IHIiapL4XPR6Nh+iYdWUdp4RQk7Tv/MSU4wvJglibG2sVqpu 2Yyr1KIDeHGjRVJTiMgpd/fdvDEVNea3+7fN9m5heV7PRlDjJvuYBRPsF27RV1dBv8r7/Le X-Google-Smtp-Source: AGHT+IGbWE0XttpHCE/SxeKtb2o43ZYzjwwHRxUlBlCCjHUwO3Qcs+aRXoJ+9uhRfvcCUGr4NB/K8Q== X-Received: by 2002:a05:6000:2a4:b0:385:f66a:4271 with SMTP id ffacd0b85a97d-388e4d6a338mr1994183f8f.4.1734520634899; Wed, 18 Dec 2024 03:17:14 -0800 (PST) Received: from [192.168.1.117] ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c801a487sm14070763f8f.45.2024.12.18.03.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Dec 2024 03:17:14 -0800 (PST) Message-ID: Date: Wed, 18 Dec 2024 12:17:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/7] rust: pl011: bug fixes To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org, Zhao Liu References: <20241212172209.533779-1-pbonzini@redhat.com> Content-Language: en-US From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20241212172209.533779-1-pbonzini@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-rust@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: QEMU Rust-related patches and discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2024 11:17:21 -0000 On 12/12/24 18:21, Paolo Bonzini wrote: > While preparing the comparison at > https://lists.nongnu.org/archive/html/qemu-rust/2024-12/msg00006.html, > I noticed some bugs in the code. These are the corresponding fixes. > > CCing Philippe because he expressed interest in bringing the Rust > version on par with the C version of the pl011 device. Also cc'ing Zhao. > Paolo Bonzini (7): > rust: pl011: fix declaration of LineControl bits > rust: pl011: match break logic of C version > rust: pl011: always use reset() method on registers > rust: pl011: fix break errors and definition of Data struct > rust: pl011: extend registers to 32 bits > rust: pl011: fix migration stream > rust: pl011: simplify handling of the FIFO enabled bit in LCR > > rust/hw/char/pl011/src/device.rs | 119 +++++++++++------- > rust/hw/char/pl011/src/device_class.rs | 8 +- > rust/hw/char/pl011/src/lib.rs | 161 +++++++++++++------------ > rust/qemu-api/src/vmstate.rs | 22 ---- > 4 files changed, 160 insertions(+), 150 deletions(-) >