qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/2] implement `FIELDx_1CLEAR() macro


From: Wilfred Mallawa
Subject: [PATCH v3 0/2] implement `FIELDx_1CLEAR() macro
Date: Mon, 17 Oct 2022 15:49:49 +1000

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]