|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v2 01/21] hw/block: Rename TYPE_PFLASH_CFI02 'width' property as 'device-width' |
Date: | Mon, 16 Jan 2023 09:41:46 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 |
On 16/1/23 07:40, Markus Armbruster wrote:
Peter Maydell <peter.maydell@linaro.org> writes:On Mon, 9 Jan 2023 at 14:19, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:On 9/1/23 14:33, BALATON Zoltan wrote:On Mon, 9 Jan 2023, Philippe Mathieu-Daudé wrote:Use the same property name than the TYPE_PFLASH_CFI01 model.Nothing uses it? Can this break command lines and if so do we need deprecation or some compatibility function until everybody changed their usage?Good point... I missed that :/That should not be possible, because the cfi02 device is a sysbus device that must be mapped into memory. There's no useful way to use it on the QEMU commandline; the only users are those creating it from C code within QEMU.I'd say beware of -global, but "fortunately" cfi.pflash01 cannot work with it, since its '.' sabotages the -global's syntax.
But we use it in tests...: $ git grep global.*cfi.pflash tests/qtest/pflash-cfi02-test.c:266: " -global driver=cfi.pflash02," tests/qtest/pflash-cfi02-test.c:268: " -global driver=cfi.pflash02," ...
Related prior discussion in the cover letter of "[PATCH RFC 0/1] QOM type names and QAPI" and the replies to it: Message-Id: <20210129081519.3848145-1-armbru@redhat.com> https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg07541.html The patch there became commit e178113ff6 "hw: Replace anti-social QOM type names". [...]
[Prev in Thread] | Current Thread | [Next in Thread] |