diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2024-01-08 17:08:57 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-19 12:28:59 +0100 |
| commit | 3b14a555fdb627ac091559ef5931c887d06590d8 (patch) | |
| tree | 8fd41563677387b2e6a2c380dd9aea55e53ca0b9 /hw/core/cpu-common.c | |
| parent | ebd92d6de37eacd109cf320ca8ece7a0f5a243ae (diff) | |
| download | focaccia-qemu-3b14a555fdb627ac091559ef5931c887d06590d8.tar.gz focaccia-qemu-3b14a555fdb627ac091559ef5931c887d06590d8.zip | |
hw/pflash: refactor pflash_data_write()
Move the offset calculation, do it once at the start of the function and let the 'p' variable point directly to the memory location which should be updated. This makes it simpler to update other buffers than pfl->storage in an upcoming patch. No functional change. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240108160900.104835-2-kraxel@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/core/cpu-common.c')
0 files changed, 0 insertions, 0 deletions