You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/misc
Peter Maydell a29a977640 hw/misc/nrf51_rng: Don't use BIT_MASK() when we mean BIT()
The BIT_MASK() macro from bitops.h provides the mask of a bit
within a particular word of a multi-word bit array; it is intended
to be used with its counterpart BIT_WORD() that gives the index
of the word in the array.

In nrf51_rng we are using it for cases where we have a bit number
that we know is the index of a bit within a single word (in fact, it
happens that all the bit numbers we pass to it are zero). This
happens to give the right answer, but the macro that actually
does the job we want here is BIT().

Use BIT() instead of BIT_MASK().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241108135644.4007151-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2 weeks ago
..
macio hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
Kconfig hw/block: Remove ecc 2 months ago
a9scu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-a10-ccm.c hw/misc: Constify VMState 11 months ago
allwinner-a10-dramc.c hw/misc: Constify VMState 11 months ago
allwinner-cpucfg.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-h3-ccu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-h3-dramc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-h3-sysctrl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-r40-ccu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-r40-dramc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-sid.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
allwinner-sramc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
applesmc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
arm11scu.c qdev: set properties with device_class_set_props() 5 years ago
arm_integrator_debug.c arm: Update infocenter.arm.com URLs 4 years ago
arm_l2x0.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
arm_sysctl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
armsse-cpu-pwrctrl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
armsse-cpuid.c hw/arm/mps2: Update old infocenter.arm.com URLs 4 years ago
armsse-mhu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
armv7m_ras.c arm: Move M-profile RAS register block into its own device 3 years ago
aspeed_hace.c hw/misc/aspeed_hace: Fix SG Accumulative hashing 1 month ago
aspeed_i3c.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
aspeed_lpc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
aspeed_peci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
aspeed_sbc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
aspeed_scu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
aspeed_sdmc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
aspeed_sli.c aspeed/sli: Add AST2700 support 6 months ago
aspeed_xdma.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
auxbus.c bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx 2 years ago
avr_power.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
axp2xx.c hw/misc: Constify VMState 11 months ago
bcm2835_cprman.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
bcm2835_mbox.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
bcm2835_mphi.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
bcm2835_powermgt.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
bcm2835_property.c hw/misc/bcm2835_property: Reduce scope of variables in mbox push function 4 months ago
bcm2835_rng.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
bcm2835_thermal.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
debugexit.c hw/misc/debugexit: use runstate API instead of plain exit() 6 months ago
djmemc.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
eccmemctl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
edu.c Remove inclusion of hw/hw.h from files that don't need it 5 months ago
empty_slot.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
exynos4210_clk.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
exynos4210_pmu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
exynos4210_rng.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
grlib_ahb_apb_pnp.c hw/misc/grlib_ahb_apb_pnp: Support 8 and 16 bit accesses 2 years ago
i2c-echo.c hw/misc/i2c-echo: add copyright/license note 1 year ago
imx6_ccm.c hw/misc: remove break after g_assert_not_reached() 3 months ago
imx6_src.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx6ul_ccm.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx7_ccm.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx7_gpr.c Clean up inclusion of sysemu/sysemu.h 5 years ago
imx7_snvs.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx7_src.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx25_ccm.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx31_ccm.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
imx_ccm.c hw: Do not include qemu/log.h if it is not necessary 4 years ago
imx_rngc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
iosb.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
iotkit-secctl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
iotkit-sysctl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
iotkit-sysinfo.c hw/misc/iotkit-sysinfo.c: Implement SYS_CONFIG1 and IIDR 4 years ago
ivshmem.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
lasi.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
led.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
mac_via.c hw/misc: remove break after g_assert_not_reached() 3 months ago
mchp_pfsoc_dmc.c hw: Remove superfluous includes of hw/hw.h 4 years ago
mchp_pfsoc_ioscb.c hw/{misc, riscv}: pfsoc: add system controller as unimplemented 2 years ago
mchp_pfsoc_sysreg.c hw/{misc, riscv}: pfsoc: add system controller as unimplemented 2 years ago
meson.build hw/misc/stm32_rcc: Implement RCC device for STM32F4 SoCs 2 months ago
mips_cmgcr.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
mips_cpc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
mips_itu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
mos6522.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
mps2-fpgaio.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
mps2-scc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
msf2-sysreg.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
npcm7xx_clk.c hw/misc: Don't special case RESET_TYPE_COLD in npcm7xx_clk, gcr 7 months ago
npcm7xx_gcr.c hw/misc: Don't special case RESET_TYPE_COLD in npcm7xx_clk, gcr 7 months ago
npcm7xx_mft.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
npcm7xx_pwm.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
npcm7xx_rng.c hw/misc: Constify VMState 11 months ago
nrf51_rng.c hw/misc/nrf51_rng: Don't use BIT_MASK() when we mean BIT() 2 weeks ago
omap_clk.c hw/misc/omap_clk: Remove OMAP2-specifics 2 months ago
pc-testdev.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
pci-testdev.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
pvpanic-isa.c hw/misc/pvpanic: centralize definition of supported events 5 months ago
pvpanic-pci.c hw/misc/pvpanic: centralize definition of supported events 5 months ago
pvpanic.c hw/misc/pvpanic: add support for normal shutdowns 5 months ago
sbsa_ec.c hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2 years ago
sifive_e_aon.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
sifive_e_prci.c hw: Remove superfluous includes of hw/hw.h 4 years ago
sifive_test.c hw/misc/sifive_test.c: replace exit calls with proper shutdown 1 year ago
sifive_u_otp.c hw/misc/sifive_u_otp: Remove the deprecated OTP config with '-drive if=none' 2 years ago
sifive_u_prci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
slavio_misc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
stm32_rcc.c hw/misc/stm32_rcc: Implement RCC device for STM32F4 SoCs 2 months ago
stm32f2xx_syscfg.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
stm32f4xx_exti.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
stm32f4xx_syscfg.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
stm32l4x5_exti.c hw/misc: In STM32L4x5 EXTI, handle direct interrupts 5 months ago
stm32l4x5_rcc.c hw/misc/stm32l4x5_rcc: Add validation for MCOPRE and MCOSEL values 4 months ago
stm32l4x5_syscfg.c hw/misc: Create STM32L4x5 SYSCFG clock 2 months ago
trace-events hw/misc/stm32_rcc: Implement RCC device for STM32F4 SoCs 2 months ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
tz-mpc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
tz-msc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
tz-ppc.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
unimp.c hw/misc/unimp: Display the offset with width of the region size 4 years ago
virt_ctrl.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
vmcoreinfo.c hw/misc: Constify VMState 11 months ago
xlnx-cfi-if.c hw/misc: Introduce the Xilinx CFI interface 1 year ago
xlnx-versal-cframe-reg.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
xlnx-versal-cfu.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
xlnx-versal-crl.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
xlnx-versal-pmc-iou-slcr.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
xlnx-versal-trng.c hw/misc/xlnx-versal-trng: Call register_finalize_block 3 months ago
xlnx-versal-xramc.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
xlnx-zynqmp-apu-ctrl.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
xlnx-zynqmp-crf.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
zynq_slcr.c hw/misc/zynq_slcr: Add boot-mode property 5 months ago