mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 04:21:50 -06:00
target/microblaze: mbar: Move LOG_DIS to before sleep
Move LOG_DIS log to before sleeping handling so that it logs for sleep instructions aswell. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
badcbf9d30
commit
6f3c458baf
1 changed files with 2 additions and 1 deletions
|
@ -1231,6 +1231,8 @@ static void dec_br(DisasContext *dc)
|
||||||
if (mbar == 2 && dc->imm == 4) {
|
if (mbar == 2 && dc->imm == 4) {
|
||||||
uint16_t mbar_imm = dc->rd;
|
uint16_t mbar_imm = dc->rd;
|
||||||
|
|
||||||
|
LOG_DIS("mbar %d\n", mbar_imm);
|
||||||
|
|
||||||
/* mbar IMM & 16 decodes to sleep. */
|
/* mbar IMM & 16 decodes to sleep. */
|
||||||
if (mbar_imm & 16) {
|
if (mbar_imm & 16) {
|
||||||
TCGv_i32 tmp_hlt = tcg_const_i32(EXCP_HLT);
|
TCGv_i32 tmp_hlt = tcg_const_i32(EXCP_HLT);
|
||||||
|
@ -1248,7 +1250,6 @@ static void dec_br(DisasContext *dc)
|
||||||
tcg_temp_free_i32(tmp_1);
|
tcg_temp_free_i32(tmp_1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG_DIS("mbar %d\n", mbar_imm);
|
|
||||||
/* Break the TB. */
|
/* Break the TB. */
|
||||||
dc->cpustate_changed = 1;
|
dc->cpustate_changed = 1;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue