summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorPeter Maydell2020-03-22 20:22:58 +0100
committerDavid Gibson2020-03-24 01:56:37 +0100
commit235352ee6e73d7716d20e706d484fd45c232ec09 (patch)
tree6e01bce45ae899e50252816c76267dd3b07d2c35 /include/exec
parentspapr: Fix memory leak in h_client_architecture_support() (diff)
downloadqemu-235352ee6e73d7716d20e706d484fd45c232ec09.tar.gz
qemu-235352ee6e73d7716d20e706d484fd45c232ec09.tar.xz
qemu-235352ee6e73d7716d20e706d484fd45c232ec09.zip
hw/ppc: Take QEMU lock when calling ppc_dcr_read/write()
The ppc_dcr_read() and ppc_dcr_write() functions call into callbacks in device code, so we need to hold the QEMU iothread lock while calling them. This is the case already for the callsites in kvmppc_handle_dcr_read/write(), but we must also take the lock when calling the helpers from TCG. This fixes a bug where attempting to initialise the PPC405EP SDRAM will cause an assertion when sdram_map_bcr() attempts to remap memory regions. Reported-by: Amit Lazar <abasarlaz@hotmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20200322192258.14039-1-peter.maydell@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions