mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/hppa: check CF_PARALLEL instead of parallel_cpus
Thereby decoupling the resulting translated code from the current state of the system. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
2399d4e7ce
commit
f9f46db444
3 changed files with 40 additions and 6 deletions
|
@ -2291,9 +2291,17 @@ static DisasJumpType trans_stby(DisasContext *ctx, uint32_t insn,
|
|||
val = load_gpr(ctx, rt);
|
||||
|
||||
if (a) {
|
||||
gen_helper_stby_e(cpu_env, addr, val);
|
||||
if (tb_cflags(ctx->base.tb) & CF_PARALLEL) {
|
||||
gen_helper_stby_e_parallel(cpu_env, addr, val);
|
||||
} else {
|
||||
gen_helper_stby_e(cpu_env, addr, val);
|
||||
}
|
||||
} else {
|
||||
gen_helper_stby_b(cpu_env, addr, val);
|
||||
if (tb_cflags(ctx->base.tb) & CF_PARALLEL) {
|
||||
gen_helper_stby_b_parallel(cpu_env, addr, val);
|
||||
} else {
|
||||
gen_helper_stby_b(cpu_env, addr, val);
|
||||
}
|
||||
}
|
||||
|
||||
if (m) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue