+2005-11-16 Hans-Peter Nilsson <hp@axis.com>
+
+ * cris/cris-tmpl.c (MY (f_model_insn_before)): Make sure only the
+ low 32 bits are used after an unsigned long cast.
+
2005-05-28 Hans-Peter Nilsson <hp@axis.com>
* cris/Makefile.in (stamp-v32fmloop): Depend on stamp-v10fmloop.
char flags[7];
SIM_DESC sd = CPU_STATE (current_cpu);
- cris_trace_printf (sd, current_cpu, "%lx ", (unsigned long) (CPU (h_pc)));
+ cris_trace_printf (sd, current_cpu, "%lx ",
+ 0xffffffffUL & (unsigned long) (CPU (h_pc)));
for (i = 0; i < 15; i++)
cris_trace_printf (sd, current_cpu, "%lx ",
- (unsigned long) (XCONCAT3(crisv,BASENUM,
- f_h_gr_get) (current_cpu,
- i)));
+ 0xffffffffUL
+ & (unsigned long) (XCONCAT3(crisv,BASENUM,
+ f_h_gr_get) (current_cpu,
+ i)));
flags[0] = GET_H_IBIT () != 0 ? 'I' : 'i';
flags[1] = GET_H_XBIT () != 0 ? 'X' : 'x';
flags[2] = GET_H_NBIT () != 0 ? 'N' : 'n';
->unaligned_mem_dword_count
- CPU_CRIS_PREV_MISC_PROFILE (current_cpu)
->unaligned_mem_dword_count)),
- (unsigned long) (XCONCAT3(crisv,BASENUM,
- f_h_gr_get) (current_cpu,
- 15)));
+ 0xffffffffUL
+ & (unsigned long) (XCONCAT3(crisv,BASENUM,
+ f_h_gr_get) (current_cpu,
+ 15)));
else
cris_trace_printf (sd, current_cpu, "%s %d\n", flags,
(int)