Re: [Qemu-devel] [PATCH v3 1/3] hw/nvram/nrf51_nvm: Add nRF51 non-volatile memories

2019-01-31 Thread Peter Maydell
On Wed, 30 Jan 2019 at 07:21, Stefan Hajnoczi wrote: > +static void flash_write(void *opaque, hwaddr offset, uint64_t value, > +unsigned int size) > +{ > +NRF51NVMState *s = NRF51_NVM(opaque); > + > +if (s->config & NRF51_NVMC_CONFIG_WEN) { > +uint32_t oldval; > + > +

[Qemu-devel] [PATCH v3 1/3] hw/nvram/nrf51_nvm: Add nRF51 non-volatile memories

2019-01-29 Thread Stefan Hajnoczi
From: Steffen Görtz The nRF51 contains three regions of non-volatile memory (NVM): - CODE (R/W): contains code - FICR (R): Factory information like code size, chip id etc. - UICR (R/W): Changeable configuration data. Lock bits, Code protection configuration, Bootloader address, Nordic SoftRadio