aboutsummaryrefslogtreecommitdiff
path: root/target/avr
diff options
context:
space:
mode:
Diffstat (limited to 'target/avr')
-rw-r--r--target/avr/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/avr/cpu.c b/target/avr/cpu.c
index 6900444..0d28611 100644
--- a/target/avr/cpu.c
+++ b/target/avr/cpu.c
@@ -54,7 +54,7 @@ static void avr_cpu_synchronize_from_tb(CPUState *cs,
AVRCPU *cpu = AVR_CPU(cs);
CPUAVRState *env = &cpu->env;
- env->pc_w = tb->pc / 2; /* internally PC points to words */
+ env->pc_w = tb_pc(tb) / 2; /* internally PC points to words */
}
static void avr_cpu_reset(DeviceState *ds)