mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/arm: Replace TARGET_TB_PCREL
with CF_PCREL
Signed-off-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230227135202.9710-7-anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
1fad5fce19
commit
03a648c4b8
4 changed files with 12 additions and 12 deletions
|
@ -78,8 +78,8 @@ static vaddr arm_cpu_get_pc(CPUState *cs)
|
|||
void arm_cpu_synchronize_from_tb(CPUState *cs,
|
||||
const TranslationBlock *tb)
|
||||
{
|
||||
/* The program counter is always up to date with TARGET_TB_PCREL. */
|
||||
if (!TARGET_TB_PCREL) {
|
||||
/* The program counter is always up to date with CF_PCREL. */
|
||||
if (!(tb_cflags(tb) & CF_PCREL)) {
|
||||
CPUARMState *env = cs->env_ptr;
|
||||
/*
|
||||
* It's OK to look at env for the current mode here, because it's
|
||||
|
@ -100,7 +100,7 @@ void arm_restore_state_to_opc(CPUState *cs,
|
|||
CPUARMState *env = cs->env_ptr;
|
||||
|
||||
if (is_a64(env)) {
|
||||
if (TARGET_TB_PCREL) {
|
||||
if (tb_cflags(tb) & CF_PCREL) {
|
||||
env->pc = (env->pc & TARGET_PAGE_MASK) | data[0];
|
||||
} else {
|
||||
env->pc = data[0];
|
||||
|
@ -108,7 +108,7 @@ void arm_restore_state_to_opc(CPUState *cs,
|
|||
env->condexec_bits = 0;
|
||||
env->exception.syndrome = data[2] << ARM_INSN_START_WORD2_SHIFT;
|
||||
} else {
|
||||
if (TARGET_TB_PCREL) {
|
||||
if (tb_cflags(tb) & CF_PCREL) {
|
||||
env->regs[15] = (env->regs[15] & TARGET_PAGE_MASK) | data[0];
|
||||
} else {
|
||||
env->regs[15] = data[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue