diff options
author | David Reiss <dreiss@meta.com> | 2023-01-09 15:05:19 -0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-01-23 13:00:11 +0000 |
commit | 0ec69c460ef7a02596afbe4bd46c9fa954a5f992 (patch) | |
tree | ae024c920a2ba69feb99d3cf8e4b5171b5ad65ae /include/hw/i2c | |
parent | bb461330a1ca4d90c67054b493ed408fb7852d74 (diff) |
target/arm: Unify checking for M Main Extension in MRS/MSR
BASEPRI, FAULTMASK, and their _NS equivalents only exist on devices with
the Main Extension. However, the MRS instruction did not check this,
and the MSR instruction handled it inconsistently (warning BASEPRI, but
silently ignoring writes to BASEPRI_NS). Unify this behavior and always
warn when reading or writing any of these registers if the extension is
not present.
Signed-off-by: David Reiss <dreiss@meta.com>
Message-id: 167330628518.10497.13100425787268927786-0@git.sr.ht
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/i2c')
0 files changed, 0 insertions, 0 deletions