
31 Jan
2019
31 Jan
'19
7:05 a.m.
Peter Maydell <peter.maydell@linaro.org> writes:
On Thu, 31 Jan 2019 at 10:24, Markus Armbruster <armbru@redhat.com> wrote:
1. Make the device model default to some "correct" configuration, even if that setting is kind of arbitrary. That way, any code using new style gets an "incorrect" configuration only if it actively selects one.
I don't think that's much better, because it will still probably be wrong for the board. People writing board models should define what their pflash device is, not plug in something that's not what the hardware is.
If you want to force people to select a sane configuration, set the default to some suitable nonsense the realize() method rejects.