aboutsummaryrefslogtreecommitdiff
path: root/gdb-xml
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-01-08 17:08:57 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2024-01-20 13:01:57 +0300
commit731783ff1e7fced41dc857a0e39deadaf8ae2477 (patch)
treefcd715a319b9c9af20f120aa9f628767b265913a /gdb-xml
parenta4daea6f9f187ab0340cd04a00fa2c4a82b68c34 (diff)
downloadqemu-731783ff1e7fced41dc857a0e39deadaf8ae2477.zip
qemu-731783ff1e7fced41dc857a0e39deadaf8ae2477.tar.gz
qemu-731783ff1e7fced41dc857a0e39deadaf8ae2477.tar.bz2
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> (cherry picked from commit 3b14a555fdb627ac091559ef5931c887d06590d8) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'gdb-xml')
0 files changed, 0 insertions, 0 deletions