qemu/hw/nvram
BALATON Zoltan 15571873d7 hw/nvram/eeprom_at24c: Reorganise init to avoid overwriting values
The init_rom[] can write values to the beginning of the memory but
these are overwritten by values from a backing file that covers the
whole memory.

init_rom[] is used only if there's no backing file (provides default
content) but should not overwrite backing file content (especially
leaving the file unchanged and only change it in memory).
Do the init_rom[] handling only if it would not be overwritten.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <fd8e0478febd60d5f48c58bc77c60e043d1c3cdc.1740839457.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-03-05 02:13:38 +01:00
..
bcm2835_otp.c hw/nvram: Add BCM2835 OTP device 2024-07-01 12:48:55 +01:00
chrp_nvram.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
ds1225y.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
eeprom93xx.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
eeprom_at24c.c hw/nvram/eeprom_at24c: Reorganise init to avoid overwriting values 2025-03-05 02:13:38 +01:00
fw_cfg-acpi.c license: Update deprecated SPDX tag GPL-2.0+ to GPL-2.0-or-later 2024-09-20 10:11:59 +03:00
fw_cfg-interface.c hw/nvram: Always register FW_CFG_DATA_GENERATOR_INTERFACE 2020-10-12 11:50:20 -04:00
fw_cfg.c fw_cfg: Don't set callback_opaque NULL in fw_cfg_modify_bytes_read() 2024-12-31 21:21:34 +01:00
Kconfig hw/nvram: Introduce Xilinx battery-backed ram 2021-09-30 13:42:10 +01:00
mac_nvram.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
meson.build hw/nvram: Add BCM2835 OTP device 2024-07-01 12:48:55 +01:00
npcm7xx_otp.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
nrf51_nvm.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
spapr_nvram.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xlnx-bbram.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
xlnx-efuse-crc.c hw/nvram: Introduce Xilinx eFuse QOM 2021-09-30 13:42:09 +01:00
xlnx-efuse.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
xlnx-versal-efuse-cache.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
xlnx-versal-efuse-ctrl.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
xlnx-zynqmp-efuse.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00