mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge tag 'pull-misc-20221218' of https://gitlab.com/rth7680/qemu into staging
Fix tricore gdbstub. Fix superh_cpu_synchronize_from_tb. # gpg: Signature made Sun 18 Dec 2022 17:48:54 GMT # gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F # gpg: issuer "richard.henderson@linaro.org" # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [full] # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A 05C0 64DF 38E8 AF7E 215F * tag 'pull-misc-20221218' of https://gitlab.com/rth7680/qemu: target/tricore: Fix gdbstub write to address registers target/sh4: Mask restore of env->flags from tb->flags Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ static void superh_cpu_synchronize_from_tb(CPUState *cs,
|
||||
SuperHCPU *cpu = SUPERH_CPU(cs);
|
||||
|
||||
cpu->env.pc = tb_pc(tb);
|
||||
cpu->env.flags = tb->flags;
|
||||
cpu->env.flags = tb->flags & TB_FLAG_ENVFLAGS_MASK;
|
||||
}
|
||||
|
||||
static void superh_restore_state_to_opc(CPUState *cs,
|
||||
|
||||
@@ -130,7 +130,7 @@ int tricore_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
||||
if (n < 16) { /* data registers */
|
||||
env->gpr_d[n] = tmp;
|
||||
} else if (n < 32) { /* address registers */
|
||||
env->gpr_d[n - 16] = tmp;
|
||||
env->gpr_a[n - 16] = tmp;
|
||||
} else {
|
||||
tricore_cpu_gdb_write_csfr(env, n, tmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user