target/mips: hold BQL in mips_vpe_wake()
authorGoran Ferenc <goran.ferenc@imgtec.com>
Mon, 11 Feb 2019 15:48:39 +0000 (16:48 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 14 Feb 2019 16:47:28 +0000 (17:47 +0100)
commit41931c0137eeeff1303f254ed610217c0fa00313
tree67dbd7e237b7b5894bcff45ab88938b28c852925
parent215581bdf1659c80645125df56cd2daa40de3d97
target/mips: hold BQL in mips_vpe_wake()

Hold BQL whenever mips_vpe_wake() is invoked.

Without this patch, MIPS MT with MTTCG enabled triggers an abort in
tcg_handle_interrupt() due to an unlocked access to cpu_interrupt().
This patch makes sure that the BQL is held in this case.

Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
target/mips/op_helper.c