From: Wilfred Mallawa <wilfred.mall...@wdc.com> This patch series implements a `FIELDx_1CLEAR()` macro and implements it in the `hw/ssi/ibex_spi.c` model.
*** Changelog *** Since v2: - change the macro arguments name to match the existing macros. (reg_val, reg, field) -> (storage, reg, field) - Add the use of this macro to `ibex_spi` Since v1: - Instead of needing all field bits to be set we clear the field if any are set. If the field is 0/clear then no change. Wilfred Mallawa (2): hw/registerfields: add `FIELDx_1CLEAR()` macro hw/ssi/ibex_spi: implement `FIELD32_1CLEAR` macro hw/ssi/ibex_spi_host.c | 21 +++++++++------------ include/hw/registerfields.h | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 12 deletions(-) -- 2.37.3