diff options
author | Richard Henderson | 2020-08-20 17:08:19 +0200 |
---|---|---|
committer | Richard Henderson | 2020-09-01 16:41:38 +0200 |
commit | 7b34f45f9fe0c9fed16cfef74d0b39f890b87d4f (patch) | |
tree | b858e7d7d1b6316e7090b505829cb90848aef568 /target/microblaze/helper.c | |
parent | target/microblaze: Assert no overlap in flags making up tb_flags (diff) | |
download | qemu-7b34f45f9fe0c9fed16cfef74d0b39f890b87d4f.tar.gz qemu-7b34f45f9fe0c9fed16cfef74d0b39f890b87d4f.tar.xz qemu-7b34f45f9fe0c9fed16cfef74d0b39f890b87d4f.zip |
target/microblaze: Move bimm to BIMM_FLAG
It makes sense to keep BIMM with D_FLAG, as they can be written
back to iflags at the same time. BIMM_FLAG does not need to be
added to IFLAGS_TB_MASK because it does not affect the next TB,
only the exception path out of the current TB. Renumber IMM_FLAG,
as the value 4 holds no particular significance; pack these two
flags at the bottom of the bitfield.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/microblaze/helper.c')
-rw-r--r-- | target/microblaze/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/microblaze/helper.c b/target/microblaze/helper.c index f8e2ca12a9..06f4322e09 100644 --- a/target/microblaze/helper.c +++ b/target/microblaze/helper.c @@ -166,7 +166,7 @@ void mb_cpu_do_interrupt(CPUState *cs) /* Reexecute the branch. */ env->regs[17] -= 4; /* was the branch immprefixed?. */ - if (env->bimm) { + if (env->iflags & BIMM_FLAG) { env->regs[17] -= 4; log_cpu_state_mask(CPU_LOG_INT, cs, 0); } |