mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 20:19:07 +00:00
The read_bar() and write_bar() functions had an open-coded equivalent of BAR lookup to find out if the access was intended for the settings BAR or one of the device-specific extra BARs. Instead, we can reuse the same BAR lookup code to find the index of the relevant BAR and compare it against the settings_bar field. BUG=b:232838930 TEST=tools/presubmit Change-Id: I2e5f3ccff47d31718e835ccb745db75dbda2e4ec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3664281 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Anton Romanov <romanton@google.com> Tested-by: kokoro <noreply+kokoro@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |