qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] implement `FIELDx_1CLEAR() macro
@ 2022-10-17  5:49 Wilfred Mallawa
  2022-10-17  5:49 ` [PATCH v3 1/2] hw/registerfields: add `FIELDx_1CLEAR()` macro Wilfred Mallawa
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wilfred Mallawa @ 2022-10-17  5:49 UTC (permalink / raw)
  To: alistair, qemu-riscv; +Cc: qemu-devel, Wilfred Mallawa

From: Wilfred Mallawa <wilfred.mallawa@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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-24  6:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-17  5:49 [PATCH v3 0/2] implement `FIELDx_1CLEAR() macro Wilfred Mallawa
2022-10-17  5:49 ` [PATCH v3 1/2] hw/registerfields: add `FIELDx_1CLEAR()` macro Wilfred Mallawa
2022-10-24  3:26   ` Alistair Francis
2022-10-17  5:49 ` [PATCH v3 2/2] hw/ssi/ibex_spi: implement `FIELD32_1CLEAR` macro Wilfred Mallawa
2022-10-24  3:25   ` Alistair Francis
2022-10-24  5:02 ` [PATCH v3 0/2] implement `FIELDx_1CLEAR() macro Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).