1 2020-08-21 Simon Marchi <simon.marchi@polymtl.ca>
3 * configure.ac: Include config/pkg.m4.
5 2020-07-29 Simon Marchi <simon.marchi@efficios.com>
7 * aclocal.m4, configure: Re-generate.
9 2017-09-06 John Baldwin <jhb@FreeBSD.org>
11 * configure: Regenerate.
13 2016-08-13 Mike Frysinger <vapier@gentoo.org>
16 * machs.h (MODEL_TYPE, MACH_ATTR, BFIN_INSN_*): Move ...
17 * arch.h: ... to this new header file.
18 * sim-main.h (SIM_CPU): Delete.
19 Include arch.h before sim-base.h, and move sim-base.h before
22 2016-01-10 Mike Frysinger <vapier@gentoo.org>
24 * config.in, configure: Regenerate.
26 2016-01-10 Mike Frysinger <vapier@gentoo.org>
28 * configure: Regenerate.
30 2016-01-10 Mike Frysinger <vapier@gentoo.org>
32 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
33 * configure: Regenerate.
35 2016-01-10 Mike Frysinger <vapier@gentoo.org>
37 * configure: Regenerate.
39 2016-01-10 Mike Frysinger <vapier@gentoo.org>
41 * configure: Regenerate.
43 2016-01-10 Mike Frysinger <vapier@gentoo.org>
45 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
46 * configure: Regenerate.
48 2016-01-10 Mike Frysinger <vapier@gentoo.org>
50 * configure: Regenerate.
52 2016-01-10 Mike Frysinger <vapier@gentoo.org>
54 * configure: Regenerate.
56 2016-01-09 Mike Frysinger <vapier@gentoo.org>
58 * config.in, configure: Regenerate.
60 2016-01-06 Mike Frysinger <vapier@gentoo.org>
62 * interp.c (bfin_syscall): Remove first const from argv.
63 (sim_open): Mark argv const.
64 (simple_env): Remove first const.
65 (bfin_user_init): Remove first const from argv and and env
66 (bfin_os_init): Remove first const from argv.
67 (sim_create_inferior): Mark argv and env const.
68 Drop casts from bfin_user_init and bfin_os_init calls.
70 2016-01-05 Mike Frysinger <vapier@gentoo.org>
72 * interp.c (step_once): Call TRACE_DISASM.
74 2016-01-04 Mike Frysinger <vapier@gentoo.org>
76 * bfin-sim.c (decode_dsp32shift_0): Change MIN to min.
77 * dv-bfin_dma.c (bfin_dma_hw_event_callback): Likewise.
78 * dv-bfin_ebiu_amc.c (bfin_ebiu_amc_write_amgctl): Likewise.
79 * dv-bfin_emac.c (bfin_emac_dma_read_buffer): Change MAX to max.
80 * dv-bfin_mmu.c (_mmu_check_addr): Change MIN to min.
81 * dv-bfin_trace.c (bfin_trace_io_read_buffer): Likewise.
82 * interp.c (bfin_fdpic_load): Change MAX to max.
83 (bfin_fdpic_load): Likewise.
84 * sim-main.h (MIN, MAX): Delete.
85 (CLAMP): Change MIN to min and MAX to max.
87 2016-01-04 Mike Frysinger <vapier@gentoo.org>
89 * configure: Regenerate.
91 2016-01-03 Mike Frysinger <vapier@gentoo.org>
93 * interp.c (sim_open): Update sim_parse_args comment.
95 2016-01-03 Mike Frysinger <vapier@gentoo.org>
99 2016-01-03 Mike Frysinger <vapier@gentoo.org>
101 * interp.c (count_argc): Delete.
102 (bfin_syscall): Change count_argc to countargv.
103 (bfin_user_init): Likewise.
105 2016-01-03 Mike Frysinger <vapier@gentoo.org>
107 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
108 * configure: Regenerate.
110 2016-01-02 Mike Frysinger <vapier@gentoo.org>
112 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
114 * configure: Regenerate.
116 2015-12-27 Mike Frysinger <vapier@gentoo.org>
118 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
120 2015-12-26 Mike Frysinger <vapier@gentoo.org>
122 * config.in, configure: Regenerate.
124 2015-12-26 Mike Frysinger <vapier@gentoo.org>
126 * devices.c (bfin_mmr_invalid): Delete cpu arg and add missing arg.
127 Add cpu, rw, and reason local vars. Rewrite error messages. Add
129 (dv_bfin_mmr_invalid): Update bfin_mmr_invalid call.
130 (dv_bfin_mmr_require): Likewise. Change return to bool. Check
131 alignment of the addr variable.
132 (bfin_mmr_check, dv_bfin_mmr_check, device_io_read_buffer,
133 device_io_write_buffer): Delete.
134 (dv_bfin_mmr_require_16_32): Define.
135 * devices.h (dv_bfin_mmr_require): Change return to bool.
136 (dv_bfin_mmr_check): Delete.
137 (dv_bfin_mmr_require_16_32): Define.
139 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Call
140 dv_bfin_mmr_require_32.
141 (bfin_cec_io_read_buffer): Likewise.
142 * dv-bfin_ctimer.c (bfin_ctimer_io_write_buffer): Likewise.
143 (bfin_ctimer_io_read_buffer): Likewise.
144 * dv-bfin_dma.c (bfin_dma_io_write_buffer): Call
145 dv_bfin_mmr_require_16_32. Return 0 in the default case.
146 (bfin_dma_io_read_buffer): Call dv_bfin_mmr_require_16_32.
147 * dv-bfin_ebiu_amc.c (bf50x_ebiu_amc_io_write_buffer): Return 0
148 when dv_bfin_mmr_require_16 fails and in the default case.
149 (bf53x_ebiu_amc_io_write_buffer): Likewise.
150 (bf54x_ebiu_amc_io_write_buffer): Likewise.
151 (bfin_ebiu_amc_io_write_buffer): Call dv_bfin_mmr_require_16_32.
152 (bf50x_ebiu_amc_io_read_buffer): Return 0 when
153 dv_bfin_mmr_require_16 fails and in the default case.
154 (bf53x_ebiu_amc_io_read_buffer): Likewise.
155 (bf54x_ebiu_amc_io_read_buffer): Likewise.
156 (bfin_ebiu_amc_io_read_buffer): Call dv_bfin_mmr_require_16_32.
157 * dv-bfin_ebiu_ddrc.c (bfin_ebiu_ddrc_io_write_buffer): Call
158 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16 or
159 dv_bfin_mmr_require_32 fails.
160 (bfin_ebiu_ddrc_io_read_buffer): Likewise.
161 * dv-bfin_ebiu_sdc.c (bfin_ebiu_sdc_io_write_buffer): Likewise.
162 (bfin_ebiu_sdc_io_read_buffer): Likewise.
163 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Return 0 when
164 dv_bfin_mmr_require_32 fails and in the default case.
165 (bfin_emac_io_read_buffer): Likewise.
166 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Call
167 dv_bfin_mmr_require_16_32 and return 0 when dv_bfin_mmr_require_16
168 or dv_bfin_mmr_require_32 fails and in the default case.
169 (bfin_eppi_io_read_buffer): Likewise.
170 * dv-bfin_evt.c (bfin_evt_io_write_buffer): Call
171 dv_bfin_mmr_require_32.
172 (bfin_evt_io_read_buffer): Likewise.
173 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Move call to
174 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
175 fails and in the default case.
176 (bfin_gpio_io_read_buffer): Likewise.
177 * dv-bfin_gpio2.c (bfin_gpio_io_write_buffer): Move call to
178 dv_bfin_mmr_require_16 and dv_bfin_mmr_require_32 to earlier in the
179 func. Return 0 when it fails and in the default case.
180 (bfin_gpio_io_read_buffer): Likewise.
181 * dv-bfin_gptimer.c (bfin_gptimer_io_write_buffer): Call
182 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16 or
183 dv_bfin_mmr_require_32 fails and in the default case.
184 (bfin_gptimer_io_read_buffer): Likewise.
185 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Call
186 dv_bfin_mmr_require_32. Return 0 in the default case.
187 (bfin_jtag_io_read_buffer): Likewise. Delete while(1) loop.
188 * dv-bfin_mmu.c (bfin_mmu_io_write_buffer): Call
189 dv_bfin_mmr_require_32. Return 0 in the default case.
190 (bfin_mmu_io_read_buffer): Likewise. Delete while(1) loop.
191 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Move call to
192 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
193 fails and in the default case.
194 (bfin_nfc_io_read_buffer): Likewise.
195 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Call
196 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16
197 or dv_bfin_mmr_require_32 fails and in the default case.
198 (bfin_otp_io_read_buffer): Likewise.
199 * dv-bfin_pfmon.c (bfin_pfmon_io_write_buffer): Call
200 dv_bfin_mmr_require_32. Return 0 in the default case.
201 (bfin_pfmon_io_read_buffer): Likewise. Delete while(1) loop.
202 * dv-bfin_pint.c (bfin_pint_io_write_buffer): Move call to
203 dv_bfin_mmr_require_32 to earlier in the func. Return 0 when it
204 fails and in the default case.
205 (bfin_pint_io_read_buffer): Likewise.
206 * dv-bfin_pll.c (bfin_pll_io_write_buffer): Call
207 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16
209 (bfin_pll_io_read_buffer): Likewise.
210 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Move call to
211 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
212 fails and in the default case.
213 9bfin_ppi_io_read_buffer): Likewise.
214 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Call
215 dv_bfin_mmr_require_16_32.
216 (bfin_rtc_io_read_buffer): Likewise.
217 * dv-bfin_sic.c (bfin_sic_52x_io_write_buffer): Likewise.
218 (bfin_sic_52x_io_read_buffer, bfin_sic_537_io_write_buffer,
219 bfin_sic_537_io_read_buffer, bfin_sic_54x_io_write_buffer,
220 bfin_sic_54x_io_read_buffer, bfin_sic_561_io_write_buffer,
221 bfin_sic_561_io_read_buffer): Likewise.
222 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Move call to
223 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
224 fails and in the default case.
225 (bfin_spi_io_read_buffer): Likewise.
226 * dv-bfin_trace.c (bfin_trace_io_write_buffer): Call
227 dv_bfin_mmr_require_32. Return 0 in the default case.
228 (bfin_trace_io_read_buffer): Likewise. Delete while(1) loop.
229 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Move call to
230 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
231 fails and in the default case.
232 (bfin_twi_io_read_buffer): Likewise.
233 * dv-bfin_uart.c (bfin_uart_io_write_buffer): Likewise.
234 (bfin_uart_io_read_buffer): Likewise.
235 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Likewise.
236 (bfin_uart_io_read_buffer): Likewise.
237 * dv-bfin_wdog.c (bfin_wdog_io_write_buffer): Call
238 dv_bfin_mmr_require_16_32.
239 (bfin_wdog_io_read_buffer): Likewise. Return 0 when
240 dv_bfin_mmr_require_16 fails.
241 * dv-bfin_wp.c (bfin_wp_io_write_buffer): Call
242 dv_bfin_mmr_require_32. Return 0 in the default case.
243 (bfin_wp_io_read_buffer): Likewise. Delete while(1) loop.
244 * tconfig.h: Delete file.
246 2015-12-26 Mike Frysinger <vapier@gentoo.org>
248 * bfin-sim.c (decode_LDST_0): Add 4th element to posts array.
250 2015-12-26 Mike Frysinger <vapier@gentoo.org>
252 * interp.c (sim_create_inferior): Update comment and argv check.
254 2015-12-25 Mike Frysinger <vapier@gentoo.org>
256 * Makefile.in (SIM_OBJS): Delete sim-model.o.
257 * tconfig.h (SIM_HAVE_MODEL): Delete.
259 2015-12-25 Mike Frysinger <vapier@gentoo.org>
261 * machs.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to
262 SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL.
264 2015-12-25 Mike Frysinger <vapier@gentoo.org>
266 * devices.c (device_error): Delete.
268 2015-12-24 Mike Frysinger <vapier@gentoo.org>
270 * tconfig.h (SIM_HANDLES_LMA): Delete.
272 2015-11-17 Mike Frysinger <vapier@gentoo.org>
274 * tconfig.h (WITH_MODULO_MEMORY): Delete.
276 2015-11-15 Mike Frysinger <vapier@gentoo.org>
278 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
281 2015-11-14 Mike Frysinger <vapier@gentoo.org>
283 * interp.c (sim_close): Delete.
285 2015-10-11 Mike Frysinger <vapier@gentoo.org>
288 * bfin-sim.c (decode_dsp32shiftimm_0): Call ashiftrt when count
291 2015-06-24 Mike Frysinger <vapier@gentoo.org>
293 * interp.c (trace_register): Delete.
294 * sim-main.h (trace_register, TRACE_REGISTER, TRACE_REG): Delete.
296 2015-06-23 Mike Frysinger <vapier@gentoo.org>
298 * configure: Regenerate.
300 2015-06-17 Mike Frysinger <vapier@gentoo.org>
302 * interp.c: Include sim-syscall.h.
303 (syscall_read_mem, syscall_write_mem): Delete.
304 (bfin_syscall): Change syscall_read_mem/syscall_write_mem to
305 sim_syscall_read_mem/sim_syscall_write_mem.
307 2015-06-17 Mike Frysinger <vapier@gentoo.org>
309 * linux-targ-map.h: Update example comments.
310 (cb_linux_syscall_map): Fill out name field.
311 (cb_linux_errno_map, cb_linux_open_map, cb_linux_signal_map):
314 2015-06-12 Mike Frysinger <vapier@gentoo.org>
316 * interp.c: Expand comment on CB_SYS_xxx defines.
318 2015-06-12 Mike Frysinger <vapier@gentoo.org>
320 * configure: Regenerate.
322 2015-06-12 Mike Frysinger <vapier@gentoo.org>
324 * configure: Regenerate.
326 2015-06-12 Mike Frysinger <vapier@gentoo.org>
328 * bfin-sim.c (hwloop_get_next_pc): Change TRACE_BRANCH to
330 (decode_ProgCtrl_0, decode_BRCC_0, decode_UJUMP_0, decode_CALLa_0):
332 * bfin-sim.h (__PUT_MEM, __GET_MEM): Change TRACE_CORE to
334 * dv-bfin_cec.c (_cec_raise, cec_latch, cec_return): Change
335 TRACE_BRANCH to BFIN_TRACE_BRANCH.
336 * interp.c (syscall_read_mem, syscall_write_mem): Change MAYBE_TRACE
338 * sim-main.h (MAYBE_TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
339 TRACE_SYSCALL, TRACE_EVENTS): Delete.
340 (TRACE_CORE): Rename to ...
341 (BFIN_TRACE_CORE): ... this. Change MAYBE_TRACE to TRACE_CORE.
342 (TRACE_BRANCH): Rename to ...
343 (BFIN_TRACE_BRANCH): ... this. Change MAYBE_TRACE to TRACE_BRANCH.
345 2015-04-24 David Binderman <dcb314@hotmail.com>
346 Nick Clifton <nickc@redhat.com>
349 * bfin-sim.c (decode_dsp32alu_0): Remove spurious check for
352 2015-04-18 Mike Frysinger <vapier@gentoo.org>
354 * sim-main.h (SIM_CPU): Add note to clean this up.
356 2015-04-18 Mike Frysinger <vapier@gentoo.org>
358 * sim-main.h (sim_cia): Delete.
360 2015-04-17 Mike Frysinger <vapier@gentoo.org>
362 * sim-main.h (CIA_GET, CIA_SET): Delete.
364 2015-04-15 Mike Frysinger <vapier@gentoo.org>
366 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
367 * sim-main.h (STATE_CPU): Delete.
369 2015-04-13 Mike Frysinger <vapier@gentoo.org>
371 * configure: Regenerate.
373 2015-04-06 Mike Frysinger <vapier@gentoo.org>
375 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
377 2015-04-01 Mike Frysinger <vapier@gentoo.org>
379 * Makefile.in (SIM_OBJS): Delete $(SIM_EXTRA_OBJS).
381 2015-03-31 Mike Frysinger <vapier@gentoo.org>
383 * config.in, configure: Regenerate.
385 2015-03-24 Mike Frysinger <vapier@gentoo.org>
387 * configure: Regenerate.
389 2015-03-23 Mike Frysinger <vapier@gentoo.org>
391 * configure: Regenerate.
393 2015-03-23 Mike Frysinger <vapier@gentoo.org>
395 * configure: Regenerate.
396 * configure.ac (BFIN_SIM_EXTRA_OBJS): Delete.
397 * Makefile.in (SIM_OBJS): Delete @BFIN_SIM_EXTRA_OBJS@.
399 2015-03-23 Mike Frysinger <vapier@gentoo.org>
401 * dv-bfin_uart.c [!HAVE_DV_SOCKSER] (dv_sockser_status,
402 dv_sockser_write, dv_sockser_read): Delete.
404 2015-03-23 Mike Frysinger <vapier@gentoo.org>
406 * sim-main.h: Delete run-sim.h include.
408 2015-03-16 Mike Frysinger <vapier@gentoo.org>
410 * aclocal.m4, config.in, configure: Regenerate.
411 * tconfig.in: Rename file ...
412 * tconfig.h: ... here.
414 2015-03-15 Mike Frysinger <vapier@gentoo.org>
416 * tconfig.in: Delete includes.
417 [HAVE_DV_SOCKSER]: Delete.
419 2015-03-14 Mike Frysinger <vapier@gentoo.org>
421 * bfin-sim.c (decode_dsp32alu_0): Change v to bu32.
423 2015-03-14 Mike Frysinger <vapier@gentoo.org>
425 * Makefile.in (SIM_RUN_OBJS): Delete.
427 2015-03-10 Mike Frysinger <vapier@gentoo.org>
430 * Makefile.in ($(srcdir)/linux-fixed-code.h): Put a ; after the
431 print sed command for BSD compatibility.
433 2015-03-08 Mike Frysinger <vapier@gentoo.org>
436 * Makefile.in ($(srcdir)/linux-fixed-code.h): Specify the asm input
437 directly rather than use $<. Move the file name to the end of the
438 sed command to be POSIX compliant.
440 2014-08-19 Alan Modra <amodra@gmail.com>
442 * configure: Regenerate.
444 2014-08-15 Roland McGrath <mcgrathr@google.com>
446 * configure: Regenerate.
447 * config.in: Regenerate.
449 2014-03-04 Mike Frysinger <vapier@gentoo.org>
451 * configure: Regenerate.
453 2013-09-23 Alan Modra <amodra@gmail.com>
455 * configure: Regenerate.
457 2013-06-23 Mike Frysinger <vapier@gentoo.org>
459 * bfin-sim.c (decode_dsp32alu_0): Add note about broken handling of
460 SEARCH with parallel insns.
462 2013-06-23 Mike Frysinger <vapier@gentoo.org>
464 * bfin-sim.c (decode_dsp32shift_0): Make sure HLs is 0 after last
466 (decode_dsp32shiftimm_0): Likewise.
467 Require HLs be less than 2 for accumulator shift insns.
469 2013-06-18 Mike Frysinger <vapier@gentoo.org>
471 * bfin-sim.c (decode_dsp32alu_0): Check more opcode fields before
472 decoding various insns.
474 2013-06-17 Mike Frysinger <vapier@gentoo.org>
476 * TODO: Add more notes.
478 2013-06-09 Mike Frysinger <vapier@gentoo.org>
480 * Makefile.in ($(srcdir)/linux-fixed-code.h): Add
481 @MAINTAINER_MODE_TRUE@ as the first item in the dependency list.
483 2013-06-03 Mike Frysinger <vapier@gentoo.org>
485 * aclocal.m4, configure: Regenerate.
487 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
489 * configure: Rebuild.
491 2013-03-26 Mike Frysinger <vapier@gentoo.org>
493 * aclocal.m4, configure: Regenerate.
495 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
497 * configure.ac: Use $SIM_DV_SOCKSER_O.
498 * configure: Regenerated.
500 2012-12-20 Joel Brobecker <brobecker@adacore.com>
502 * aclocal.m4: Revert the previous change changing
503 the license from GPL v2 or later to GPL v3 or later
504 (this file was generated).
506 2012-12-20 Joel Brobecker <brobecker@adacore.com>
508 * linux-fixed-code.s: Revert the previous change changing
509 the license from GPL v2 or later to GPL v3 or later.
511 2012-07-31 Mike Frysinger <vapier@gentoo.org>
513 * machs.c (bf54x_roms): Pass 0x1000 to alias field of BFROM, and
514 0x10000 to the alias field of BFROMA.
515 (bf561_roms): Pass 0x1000 to alias field of BFROM.
516 (bf59x_roms): Pass 0x10000 to alias field of BFROMA.
518 2012-07-31 Mike Frysinger <vapier@gentoo.org>
520 * machs.c (bfin_reg_fetch): Change return 0 to return -1, and
521 return -1 to return 4.
522 (bfin_reg_store): Likewise.
524 2012-06-15 Joel Brobecker <brobecker@adacore.com>
526 * config.in, configure: Regenerate.
528 2012-04-09 Mike Frysinger <vapier@gentoo.org>
530 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pint.
531 * configure: Regenerate.
532 * dv-bfin_pint.c, dv-bfin_pint.h: New device model.
533 * machs.c (bf542_dev): Add PINT register blocks.
534 (bf544_dev, bf547_dev): Likewise.
536 (bf54x_port): Add pint/gpio routing.
537 * machs.h (BFIN_MMR_PINT_SIZE): Define.
539 2012-04-09 Mike Frysinger <vapier@gentoo.org>
541 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio2.
542 * configure: Regenerate.
543 * dv-bfin_gpio2.c, dv-bfin_gpio2.h: New device model.
544 * machs.c (bf54x_mem): Delete GPIO mem stub.
545 (bf542_dev): Add GPIO register blocks.
546 (bf544_dev, bf547_dev): Likewise.
547 * machs.h (BFIN_MMR_GPIO2_SIZE): Define.
549 2012-04-09 Robin Getz <robin.getz@analog.com>
551 * bfin-sim.c (decode_dsp32shift_0): Extract the sign for ASHIFT
552 and LSHIFT, and set ASTAT based on the before/after values.
553 Rename "val" to "acc" to be consistent with other code branches.
555 2012-04-09 Robin Getz <robin.getz@analog.com>
557 * bfin-sim.c (sgn_extend): New helper.
558 (decode_dsp32shiftimm_0): Call lshift when newimmag is more
559 than 16, otherwise call ashiftrt. Set ASTAT fields as needed.
560 For accumulator shifts, call new sgn_extend helper.
562 2012-04-08 Mike Frysinger <vapier@gentoo.org>
564 * bfin-sim.c (illegal_instruction_or_combination): New helper.
565 (decode_ProgCtrl_0): Call illegal_instruction_or_combination instead
566 of illegal_instruction.
567 (decode_PushPopReg_0, decode_CCflag_0, decode_CC2dreg_0,
568 decode_LDSTpmod_0, decode_dagMODim_0, decode_dagMODik_0,
569 decode_dspLDST_0, decode_LDST_0, _interp_insn_bfin): Likewise.
570 (decode_PushPopMultiple_0): Call illegal_instruction_combination when
571 PARALLEL_GROUP is not BFIN_PARALLEL_NONE.
572 (decode_CCflag_0, decode_REGMV_0, decode_ALU2op_0, decode_PTR2op_0,
573 decode_COMPI2opD_0, decode_COMPI2opP_0): Likewise.
574 (decode_CC2stat_0): Check PARALLEL_GROUP before cbit.
575 (decode_LDSTpmod_0): Call illegal_instruction_combination when
576 PARALLEL_GROUP is BFIN_PARALLEL_GROUP2.
577 (decode_dagMODim_0, decode_dagMODik_0, decode_LDST_0,
578 decode_LDSTiiFP_0, decode_LDSTii_0): Likewise.
580 2012-04-08 Mike Frysinger <vapier@gentoo.org>
582 * bfin-sim.h (bfin_parallel_group): New enum.
583 (bfin_cpu_state): Add new "group" member.
584 (PARALLEL_GROUP): Define.
585 * bfin-sim.c (decode_ProgCtrl_0): Change INSN_LEN check to
587 (decode_CaCTRL_0, decode_PushPopReg_0, decode_ccMV_0, decode_CCflag_0,
588 decode_CC2dreg_0, decode_CC2stat_0, decode_BRCC_0, decode_UJUMP_0,
589 decode_LOGI2op_0, decode_LoopSetup_0, decode_LDIMMhalf_0,
590 decode_CALLa_0, decode_linkage_0): Likewise.
591 (_interp_insn_bfin): Set PARALLEL_GROUP.
592 (interp_insn_bfin): Likewise.
594 2012-04-08 Mike Frysinger <vapier@gentoo.org>
596 * bfin-sim.c (decode_dsp32alu_0): Delete extra space in TRACE_INSN.
598 2012-04-01 Mike Frysinger <vapier@gentoo.org>
600 * bfin-sim.c (_interp_insn_bfin): Call illegal_instruction_combination
601 when INSN_LEN is non-zero before 32bit decode.
603 2012-04-01 Mike Frysinger <vapier@gentoo.org>
605 * bfin-dis.c (fmtconst): Replace decimal handling with a single
606 sprintf call and the '*' field width.
608 2012-04-01 Mike Frysinger <vapier@gentoo.org>
610 * machs.c (bfin_model_map_bfrom): Return when mnum is 535.
612 2012-04-01 Mike Frysinger <vapier@gentoo.org>
614 * interp.c (bfin_user_init): Move auxvt_size decl from top to
615 inside of auxvt check.
617 2012-03-31 Mike Frysinger <vapier@gentoo.org>
619 * dv-bfin_sic.c (bfin_sic_finish): Change iwr1 to iwr2.
621 2012-03-31 Mike Frysinger <vapier@gentoo.org>
623 * devices.c: Include devices.h.
625 2012-03-24 Mike Frysinger <vapier@gentoo.org>
627 * aclocal.m4, config.in, configure: Regenerate.
629 2012-03-19 Robin Getz <robin.getz@analog.com>
630 Mike Frysinger <vapier@gentoo.org>
632 * bfin-sim.c (lshift): Add an overflow flag. Delete now unused
633 i, j, and tmp vars. Add a new v_i var. Split the overflow logic
634 out from the saturate logic. Do not set V ASTAT bits when working
636 (decode_ALU2op_0): Add new argument to lshift call.
637 (decode_LOGI2op_0, decode_dsp32shift_0, decode_dsp32shiftimm_0):
640 2012-03-18 Mike Frysinger <vapier@gentoo.org>
642 * dv-bfin_ebiu_amc.c (struct bfin_ebiu_amc): Add bank_base.
643 (bfin_ebiu_amc_write_amgctl): Replace BFIN_EBIU_AMC_BASE with
645 (bfin_ebiu_amc_finish): Assign BFIN_EBIU_AMC_BASE to amc->bank_base.
647 2012-03-18 Mike Frysinger <vapier@gentoo.org>
649 * dv-bfin_ebiu_amc.c (bfin_ebiu_amc_attach_address_callback): Use
650 ARRAY_SIZE rather than hardcoded constant.
652 2012-02-04 Mike Frysinger <vapier@gentoo.org>
654 * config.in: Regenerate.
655 * configure: Likewise.
656 * configure.ac: Add linux/types.h to AC_CHECK_HEADERS.
657 * dv-eth_phy.c: Check for HAVE_LINUX_TYPES_H, and delete __u16 and
658 _LINUX_TYPES_H defines.
660 2011-12-03 Mike Frysinger <vapier@gentoo.org>
662 * interp.c (bfin_syscall): Increase _tbuf storage. Declare new local
663 tstr buffer. Call cb_get_string on tstr when handling CB_SYS_stat64,
664 CB_SYS_lstat64, CB_SYS_open, CB_SYS_write, CB_SYS_unlink,
665 CB_SYS_truncate, CB_SYS_rename, CB_SYS_stat, CB_SYS_lstat. Include
666 tstr in the tbuf output.
668 2011-12-03 Mike Frysinger <vapier@gentoo.org>
670 * Makefile.in: Delete all dependency rules.
671 * aclocal.m4, configure: Regenerate.
673 2011-10-19 Mike Frysinger <vapier@gentoo.org>
675 * configure: Regenerate after common/acinclude.m4 update.
677 2011-10-17 Mike Frysinger <vapier@gentoo.org>
679 * configure.ac: Change include to common/acinclude.m4.
680 * aclocal.m4, configure: Regenerate.
682 2011-10-17 Mike Frysinger <vapier@gentoo.org>
684 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
685 call. Replace common.m4 include with SIM_AC_COMMON.
686 * configure: Regenerate.
688 2011-09-28 Mike Frysinger <vapier@gentoo.org>
690 * bfin-sim.c (decode_dsp32shift_0): Use STORE() for VIT_MAX insns.
692 2011-07-05 Mike Frysinger <vapier@gentoo.org>
694 * interp.c (sim_do_command): Delete.
696 2011-07-01 Mike Frysinger <vapier@gentoo.org>
698 * interp.c (cb_linux_stat_map_32, cb_linux_stat_map_64): Rename from
699 stat_map_32 and stat_map_64.
700 (cb_libgloss_stat_map_32): New stat map.
701 (stat_map_32, stat_map_64): New stat map pointers.
702 (bfin_user_init): Assign stat_map_32 to cb_linux_stat_map_32 and
703 stat_map_64 to cb_linux_stat_map_64.
704 (bfin_virtual_init): New function.
705 (sim_create_inferior): Call bfin_virtual_init for all other envs.
707 2011-06-22 Mike Frysinger <vapier@gentoo.org>
709 * interp.c (bfin_syscall): Delete old comment. Set dreg 1 to
710 sc.result2 and dreg 2 to sc.errcode.
712 2011-06-18 Robin Getz <robin.getz@analog.com>
714 * bfin-sim.c (decode_dsp32shift_0): Clear ASTAT[AV] if val is 0,
715 else set it. Set ASTAT[AVS] if val is 0. Do this for LSHIFT and
716 ASHIFT accumulator insns.
718 2011-06-18 Robin Getz <robin.getz@analog.com>
720 * bfin-sim.c (ashiftrt): If size is 40, do not call SET_ASTATREG.
721 (lshiftrt): Likewise.
723 2011-06-18 Robin Getz <robin.getz@analog.com>
725 * bfin-sim.c (decode_dsp32shift_0): Use get_unextended_acc
726 rather than get_extended_acc in LSHIFT insns.
728 2011-06-18 Robin Getz <robin.getz@analog.com>
730 * bfin-sim.c (decode_macfunc): Handle MM when mmod is M_TFU.
731 Check MM once when mmod is M_FU to match M_TFU better.
733 2011-06-18 Robin Getz <robin.getz@analog.com>
735 * bfin-sim.c (decode_dsp32shiftimm_0): When shift is greater than
736 32, perform a left shift. Update the corresponding AV bit. Set
737 AZ when the low 32bits are also zero.
739 2011-06-18 Robin Getz <robin.getz@analog.com>
741 * bfin-sim.c (decode_dsp32shiftimm_0): With left shift vector insns,
742 call lshift only when count is positive. Otherwise, call ashiftrt.
743 With arithmetic right shift insns, call ashiftrt when the value is
744 small enough, otherwise call lshift.
746 2011-06-18 Robin Getz <robin.getz@analog.com>
748 * bfin-sim.c (extract_mult): Call saturate_s16 directly when
749 mmod is M_IH rather than computing the result by hand.
751 2011-06-18 Robin Getz <robin.getz@analog.com>
753 * bfin-sim.c (decode_macfunc): Add nosat_acc to track acc value
754 before saturation, set sat when more cases saturate, and set the
755 overflow bit based on these results. For M_TFU, M_IU, M_FU, and
756 M_W32, change the max values compared against.
757 (decode_dsp32mac_0): Delete v_i and add v_0 and v_1. Pass v_1
758 when processing MAC1 and pass v_0 when processing MAC0. Combine
759 the results into the V/VS ASTAT bits.
761 2011-06-18 Robin Getz <robin.getz@analog.com>
763 * bfin-sim.c (extract_mult): Call saturate_s32 when MM is set
764 and mmod is M_IU. Call saturate_s16 when MM is set and mmod
767 2011-06-18 Robin Getz <robin.getz@analog.com>
769 * bfin-sim.c (decode_multfunc): Call new is_macmod_signed, and
770 allow MM to sign extend all the time.
771 (decode_macfunc): Likewise. Drop sign extension of unsigned
774 2011-06-18 Robin Getz <robin.getz@analog.com>
776 * bfin-sim.c (saturate_s40_astat): Change ">=" to ">".
777 (decode_macfunc): Likewise when mmod is M_IH.
779 2011-06-18 Mike Frysinger <vapier@gentoo.org>
781 * interp.c (sim_create_inferior): Change free to freeargv.
783 2011-06-04 Mike Frysinger <vapier@gentoo.org>
785 * machs.c (bf534_dev, bf537_dev): Add glue-or devices.
786 (bf537_port): Define applicable devices with PORT to the glue-or
787 devices instead of SIC.
788 (bfin_model_hw_tree_init): Drop old sim_hw_parse call for bfin_sic.
789 Only parse reg/type when the device has an address. Move the call
790 to dv_bfin_hw_port_parse up before slash check.
792 2011-06-04 Mike Frysinger <vapier@gentoo.org>
794 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Move above the
795 BFIN_SIC_TO_CEC_PORTS definition.
796 (SIC_PORTS): New define.
797 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
798 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
799 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
801 (bfin_sic1_ports, bfin_sic2_ports, bfin_sic3_ports,
802 bfin_sic_561_ports): Define new layouts with SIC_PORTS().
803 (bfin_sic_finish): Change reference to bfin_sic_50x_ports,
804 bfin_sic_51x_ports, bfin_sic_52x_ports, and bfin_sic_538_ports
805 to bfin_sic2_ports. Change reference to bfin_sic_533_ports,
806 bfin_sic_537_ports, and bfin_sic_59x_ports to bfin_sic1_ports.
807 Change reference to bfin_sic_54x_ports to bfin_sic3_ports.
808 * machs.c (bfin_port_layout): New structure.
809 (bfin_model_data): Add new "port" and "port_count" members.
810 (PORT, SIC): New defines.
811 (bf000_port, bf50x_port, bf51x_port, bf52x_port, bf533_port,
812 bf537_port, bf538_port, bf54x_port, bf561_port, bf592_port):
813 Move and redefine port layout from dv-bfin_sic.c to here.
814 (bf504_port, bf506_port, bf512_port, bf514_port, bf516_port,
815 bf518_port, bf522_port, bf523_port, bf524_port, bf525_port,
816 bf526_port, bf527_port, bf531_port, bf532_port, bf534_port,
817 bf536_port, bf539_port, bf542_port, bf544_port, bf547_port,
818 bf548_port, bf549_port): New defines.
819 (bfin_model_data): Link in new bfin_port_layout.port member.
820 (dv_bfin_hw_port_parse): New function.
821 (dv_bfin_hw_parse): Call new dv_bfin_hw_port_parse function.
822 (bfin_model_hw_tree_init): Replace calls to sim_hw_parse for
823 bfin_sic links with new dv_bfin_hw_port_parse function.
825 2011-06-03 Mike Frysinger <vapier@gentoo.org>
827 * dv-bfin_dma.c (bfin_dma_io_write_buffer): Fix indentation.
829 2011-05-25 Mike Frysinger <vapier@gentoo.org>
831 * sim-main.h (TRACE_SYSCALL): Change EVENTS to SYSCALL.
833 2011-05-25 Mike Frysinger <vapier@gentoo.org>
835 * dv-bfin_cec.h (BFIN_COREMMR_CEC_{BASE,SIZE}): Move to ...
836 * dv-bfin_ctimer.h (BFIN_COREMMR_CTIMER_{BASE,SIZE}): Move to ...
837 * dv-bfin_dma.h (BFIN_MMR_DMA_SIZE): Move to ...
838 * dv-bfin_dmac.h (BFIN_MMR_DMAC{0,1}_BASE): Move to ...
839 * dv-bfin_ebiu_amc.h (BF{IN,50X,54X}_MMR_EBIU_AMC_SIZE): Move to ...
840 * dv-bfin_ebiu_ddrc.h (BFIN_MMR_EBIU_DDRC_SIZE): Move to ...
841 * dv-bfin_ebiu_sdc.h (BFIN_MMR_EBIU_SDC_SIZE): Move to ...
842 * dv-bfin_emac.h (BFIN_MMR_EMAC_{BASE,SIZE}): Move to ...
843 * dv-bfin_eppi.h (BFIN_MMR_EPPI_SIZE): Move to ...
844 * dv-bfin_evt.h (BFIN_COREMMR_EVT_{BASE,SIZE}): Move to ...
845 * dv-bfin_gpio.h (BFIN_MMR_GPIO_SIZE): Move to ...
846 * dv-bfin_gptimer.h (BFIN_MMR_GPTIMER_SIZE): Move to ...
847 * dv-bfin_jtag.h (BFIN_COREMMR_JTAG_{BASE,SIZE}): Move to ...
848 * dv-bfin_mmu.h (BFIN_COREMMR_MMU_{BASE,SIZE}): Move to ...
849 * dv-bfin_nfc.h (BFIN_MMR_NFC_SIZE): Move to ...
850 * dv-bfin_otp.h (BFIN_MMR_OTP_SIZE): Move to ...
851 * dv-bfin_pfmon.h (BFIN_COREMMR_PFMON_{BASE,SIZE}): Move to ...
852 * dv-bfin_pll.h (BFIN_MMR_PLL_{BASE,SIZE}): Move to ...
853 * dv-bfin_ppi.h (BFIN_MMR_PPI_SIZE): Move to ...
854 * dv-bfin_rtc.h (BFIN_MMR_RTC_SIZE): Move to ...
855 * dv-bfin_sic.h (BFIN_MMR_SIC_{BASE,SIZE}): Move to ...
856 * dv-bfin_spi.h (BFIN_MMR_SPI_SIZE): Move to ...
857 * dv-bfin_trace.h (BFIN_COREMMR_TRACE_{BASE,SIZE}): Move to ...
858 * dv-bfin_twi.h (BFIN_MMR_TWI_SIZE): Move to ...
859 * dv-bfin_uart.h (BFIN_MMR_UART_SIZE): Move to ...
860 * dv-bfin_uart2.h (BFIN_MMR_UART2_SIZE): Move to ...
861 * dv-bfin_wdog.h (BFIN_MMR_WDOG_SIZE): Move to ...
862 * dv-bfin_wp.h (BFIN_COREMMR_WP_{BASE,SIZE}): Move to ...
864 * machs.c: Delete all dv-bfin_*.h includes except for cec/dmac.
866 2011-05-25 Mike Frysinger <vapier@gentoo.org>
868 * Makefile.in (dv-bfin_pfmon.o): New target.
869 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pfmon.
870 * configure: Regenerated.
871 * dv-bfin_pfmon.c, dv-bfin_pfmon.h: New files.
872 * machs.c: Add include new bfin_pfmon.h.
873 (bfin_core_dev): Add pfmon.
875 2011-05-25 Mike Frysinger <vapier@gentoo.org>
877 * machs.c (bf526_roms): Add a region with rev of 2.
878 (bf54x_roms): Add regions with rev of 4.
879 * bfroms/all.h: Include new bf526-0.2.h, bf54x-0.4.h, and
880 bf54x_l1-0.4.h headers.
881 * bfroms/bf526-0.2.h, bfroms/bf54x-0.4.h, bfroms/bf54x_l1-0.4.h:
884 2011-05-14 Mike Frysinger <vapier@gentoo.org>
886 * bfin-sim.c (decode_PushPopReg_0): Delete (grp == 1 && reg == 6)
889 2011-05-14 Mike Frysinger <vapier@gentoo.org>
891 * dv-bfin_uart.c (bfin_uart_write_byte): Add a mcr arg. Declare a
892 local uart. When LOOP_ENA is set in mcr, write to the saved byte
893 and count fields of the uart.
894 (bfin_uart_io_write_buffer): Pass uart->mcr to bfin_uart_write_byte
895 and bfin_uart_get_next_byte.
896 (bfin_uart_get_next_byte): Add a mcr arg. Move uart->saved_count
897 check first, and skip the remaining code when LOOP_ENA is set in mcr.
898 * dv-bfin_uart.h (bfin_uart_write_byte): Add an mcr argument.
899 (bfin_uart_get_next_byte): Likewise.
900 (XOFF, MRTS, RFIT, RFRT, LOOP_ENA, FCPOL, ARTS, ACTS): Define.
901 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Padd uart->mcr when
902 calling bfin_uart_write_byte and bfin_uart_get_next_byte.
904 2011-05-09 Mike Frysinger <vapier@gentoo.org>
906 * dv-bfin_uart2.c (bfin_uart_io_read_buffer): Clear DR/THRE/TEMT bits
907 from uart->lsr before setting them.
909 2011-04-27 Mike Frysinger <vapier@gentoo.org>
911 * dv-bfin_dmac.c (bfin_dmac): Constify pmap array.
912 (bfin_dmac_50x_pmap, bfin_dmac_51x_pmap, bfin_dmac_52x_pmap,
913 bfin_dmac_533_pmap, bfin_dmac_537_pmap, bfin_dmac0_538_pmap,
914 bfin_dmac1_538_pmap, bfin_dmac0_54x_pmap, bfin_dmac1_54x_pmap,
915 bfin_dmac0_561_pmap, bfin_dmac1_561_pmap, bfin_dmac_59x_pmap):
918 2011-04-26 Mike Frysinger <vapier@gentoo.org>
920 * dv-bfin_gpio.c (bfin_gpio_forward_ouput): New function.
921 (bfin_gpio_io_write_buffer): Store the current port state into
922 "data", and call bfin_gpio_forward_ouput when the data or dir
924 (bfin_gpio_ports): Change p0..p15 to bidirect_port.
926 2011-04-26 Mike Frysinger <vapier@gentoo.org>
928 * dv-bfin_gpio.c (bfin_gpio): Add "int_state" member.
929 (bfin_gpio_forward_int, bfin_gpio_forward_ints): New functions.
930 (bfin_gpio_io_write_buffer): Call bfin_gpio_forward_int when the
931 mask a or mask b MMRs are written.
932 (bfin_gpio_port_event): When handling edge gpios, set the bit in
933 int_state, call bfin_gpio_forward_ints, and then clear the bit.
934 When handling level gpios, clear/set the bit in int_state rather
935 than returning immediately. Call bfin_gpio_forward_ints instead
936 of checking mask[ab] and calling HW_TRACE/hw_port_event directly.
938 2011-04-16 Mike Frysinger <vapier@gentoo.org>
940 * bfin-sim.c (decode_dsp32alu_0): Call STORE instead of SET_DREG for
941 BYTEOP2P, BYTEOP3P, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK, and
943 (decode_dsp32shift_0): Call STORE instead of SET_DREG for PACK,
944 BITMUX, EXTRACT, DEPOSIT, ALIGN8, ALIGN16, and ALIGN24.
946 2011-04-14 Mike Frysinger <vapier@gentoo.org>
948 * bfin-sim.c (decode_dsp32alu_0): Set DIS_ALGN_EXPT when handling
949 BYTEOP2P, BYTEOP3P, SAA, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK,
950 and BYTEUNPACK insns.
952 2011-04-11 Mike Frysinger <vapier@gentoo.org>
954 * dv-bfin_sic.c (bfin_sic_port_event): New helper function.
955 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
956 bfin_sic_54x_port_event, bfin_sic_561_port_event): Include level
957 in the trace output, and call the new bfin_sic_port_event func.
959 2011-04-11 Mike Frysinger <vapier@gentoo.org>
961 * dv-bfin_gpio.c (bfin_gpio_ports): Add p15.
963 2011-04-01 Mike Frysinger <vapier@gentoo.org>
965 * dv-bfin_otp.c (bfin_otp_ports): Declare.
966 (bfin_otp_finish): Call set_hw_ports with bfin_otp_ports.
968 2011-03-29 Mike Frysinger <vapier@gentoo.org>
970 * configure: Regenerate after common/aclocal.m4 changes.
972 2011-03-28 Robin Getz <robin.getz@analog.com>
974 * bfin-sim.c (decode_dsp32alu_0): Cast high 16bits of A0.W to bs16
975 and add to casted low 16bits of A0.L and store in val0. Cast high
976 16bits of A1.W to bs16 and add to casted low 16bits of A1.L and
977 store in val1. Delete bit checks of val0 and val1.
979 2011-03-26 Robin Getz <robin.getz@analog.com>
981 * bfin-sim.c (decode_dsp32alu_0): Set result to 0x7FFFFFFF when
982 the result was 0x80000000 for RND12 subtraction.
984 2011-03-26 Robin Getz <robin.getz@analog.com>
986 * bfin-sim.c (decode_dsp32alu_0): Set VS when V is set.
988 2011-03-24 Mike Frysinger <vapier@gentoo.org>
990 * dv-bfin_gpio.c (bfin_gpio_port_event): Call HW_TRACE at every
991 major code flow point.
992 * dv-bfin_sic.c (bfin_sic_forward_interrupts): Call HW_TRACE just
993 before calling hw_port_event on ourselves.
994 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
995 bfin_sic_54x_port_event, bfin_sic_561_port_event): Call HW_TRACE
996 at the start of the function.
998 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1000 * dv-bfin_gpio.c (bfin_gpio_port_event): Split dir/inen bit checking.
1001 Normalize "level" to 0/1 values. Shift "level" over by "my_port".
1002 Invert port->both bit check.
1004 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1006 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Subtract 2 from the
1007 valuep pointer for clear MMRs, 4 for set MMRs, and 6 for toggle MMRs.
1009 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1011 * TODO: Document some known SIC issues.
1013 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1015 * devices.h (dv_w1c): Fix typos in documentation of "bits" arg.
1016 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Pass 0xffee to dv_w1c_4.
1017 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Pass 0xe1 to dv_w1c_4
1018 for systat MMR and -1 to dv_w1c_4 for [rt]x_stky/mmc_[rt]irqs MMRs.
1019 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Pass 0x1ff to dv_w1c_2.
1020 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Invert bits to dv_w1c_2.
1021 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Invert bits to dv_w1c_4.
1022 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Invert bits to dv_w1c_2.
1023 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Invert bits to dv_w1c_2.
1024 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Invert bits to dv_w1c_2.
1025 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Invert bits to dv_w1c_2.
1026 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Invert bits to dv_w1c_2.
1027 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Invert bits to dv_w1c_2.
1028 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Invert bits to dv_w1c_2.
1030 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1032 * dv-bfin_uart.h (TFI, BI, FE, PE, OE): Define.
1034 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1036 * dv-bfin_twi.h (LOSTARB): Rename from LOSTARG.
1038 2011-03-23 Robin Getz <robin.getz@analog.com>
1040 * bfin-sim.c (decode_dsp32shift_0): Set acc0 to the unextended
1041 value for the VIT_MAX insn, and mask off the result when done.
1043 2011-03-23 Robin Getz <robin.getz@analog.com>
1045 * bfin-sim.c (decode_dsp32alu_0): Set A1 to a1_lo when up_hi is false,
1046 and set A0 to a0_lo when up_lo is false.
1048 2011-03-23 Robin Getz <robin.getz@analog.com>
1050 * bfin-sim.c (decode_dsp32alu_0): Call saturate_s40_astat instead of
1051 saturate_s40, and use the v parameter to update the AV bit. Set the
1052 AC bit only when the final result is 0.
1054 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1056 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Define.
1057 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
1058 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
1059 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
1060 Encode ids with the ENC macro.
1061 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1062 bfin_sic_54x_port_event, bfin_sic_561_port_event): Set idx
1063 from my_port with DEC_SIC, and set bit from my_port with DEC_PIN.
1064 (bfin_sic_533_port_event): Delete.
1065 (bfin_sic_finish): Call set_hw_port_event with
1066 bfin_sic_537_port_event for BF533 and BF59x targets.
1068 2011-03-23 Robin Getz <robin.getz@analog.com>
1070 * bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
1071 BYTEOP1P, BYTEOP2P, and BYTEOP3P insns.
1073 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1075 * machs.c (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev,
1076 bf533_dev, bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev):
1077 Change bfin_gpio addresses from f/g/h to 5/6/7.
1078 (bfin_model_hw_tree_init): Add the bfin_gpio address base to 'a'.
1080 2011-03-17 Mike Frysinger <vapier@gentoo.org>
1082 * configure.ac (AC_CHECK_FUNCS): Check for kill and pread.
1083 * configure: Regenerate.
1084 * config.in: Regenerate.
1085 * interp.c (bfin_syscall): Check for HAVE_{KILL,PREAD} before using
1088 2011-03-15 Mike Frysinger <vapier@gentoo.org>
1090 * Makefile.in (dv-bfin_gpio.o): New target.
1091 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio.
1092 * configure: Regenerate.
1093 * dv-bfin_gpio.c, dv-bfin_gpio.h: New files.
1094 * machs.c: Include dv-bfin_gpio.h.
1095 (bf50x_mem, bf51x_mem, bf52x_mem, bf531_mem, bf532_mem, bf533_mem,
1096 bf534_mem, bf536_mem, bf537_mem, bf538_mem, bf561_mem, bf592_mem):
1097 Delete GPIO memory stubs.
1098 (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev, bf533_dev,
1099 bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev): Add GPIO
1101 (bfin_model_hw_tree_init): Hook up GPIO interrupts to SIC.
1103 2011-03-15 Mike Frysinger <vapier@gentoo.org>
1105 * bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h, bfroms/bf51x-0.1.h,
1106 bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h, bfroms/bf526-0.1.h,
1107 bfroms/bf527-0.0.h, bfroms/bf527-0.1.h, bfroms/bf527-0.2.h,
1108 bfroms/bf533-0.1.h, bfroms/bf533-0.2.h, bfroms/bf533-0.3.h,
1109 bfroms/bf537-0.0.h, bfroms/bf537-0.1.h, bfroms/bf537-0.3.h,
1110 bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h, bfroms/bf54x-0.1.h,
1111 bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h, bfroms/bf54x_l1-0.1.h,
1112 bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h, bfroms/bf59x-0.0.h,
1113 bfroms/bf59x_l1-0.1.h, dv-bfin_cec.c, dv-bfin_ctimer.c,
1114 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
1115 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
1116 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gptimer.c, dv-bfin_jtag.c,
1117 dv-bfin_mmu.c, dv-bfin_nfc.c, dv-bfin_otp.c, dv-bfin_pll.c,
1118 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
1119 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
1120 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c,
1121 linux-fixed-code.h, linux-targ-map.h, machs.c, Makefile.in: Fix style.
1123 2011-03-15 Robin Getz <robin.getz@analog.com>
1125 * bfin-sim.c (decode_dsp32alu_0): Set AZ based on val for 16bit adds
1128 2011-03-15 Robin Getz <robin.getz@analog.com>
1130 * bfin-sim.c (decode_macfunc): Move acc STOREs behind op != 3 check.
1132 2011-03-15 Robin Getz <robin.getz@analog.com>
1134 * bfin-sim.c (decode_macfunc): New neg parameter. Set when the
1135 high bit is set after extract_mult.
1136 (decode_dsp32mac_0): Declare n_1 and n_0. Pass to the decode_macfunc
1137 functions. Use these to update the AN bit.
1139 2011-03-15 Robin Getz <robin.getz@analog.com>
1141 * bfin-sim.c (decode_dsp32mult_0): Declare v_i0 and v_i1. Pass to
1142 the extract_mult functions. Include these when updating the V, VS,
1145 2011-03-15 Robin Getz <robin.getz@analog.com>
1147 * bfin-sim.c (astat_names): New global bit array.
1148 (decode_CC2stat_0): Delete local astat_name and astat_names.
1149 (decode_psedodbg_assert_0): Move hardcoded offset into a variable.
1150 Print out ASTAT bit values when checking an ASTAT register.
1152 2010-03-15 Robin Getz <robin.getz@analog.com>
1154 * bfin-sim.c (extract_mult): Handle M_IU.
1156 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1158 * Makefile.in, TODO, aclocal.m4, bfin-sim.c, bfin-sim.h,
1159 bfroms/all.h, bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h,
1160 bfroms/bf51x-0.1.h, bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h,
1161 bfroms/bf526-0.1.h, bfroms/bf527-0.0.h, bfroms/bf527-0.1.h,
1162 bfroms/bf527-0.2.h, bfroms/bf533-0.1.h, bfroms/bf533-0.2.h,
1163 bfroms/bf533-0.3.h, bfroms/bf537-0.0.h, bfroms/bf537-0.1.h,
1164 bfroms/bf537-0.3.h, bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h,
1165 bfroms/bf54x-0.1.h, bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h,
1166 bfroms/bf54x_l1-0.1.h, bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h,
1167 bfroms/bf59x-0.0.h, bfroms/bf59x_l1-0.1.h, config.in, configure,
1168 configure.ac, devices.c, devices.h, dv-bfin_cec.c, dv-bfin_cec.h,
1169 dv-bfin_ctimer.c, dv-bfin_ctimer.h, dv-bfin_dma.c, dv-bfin_dma.h,
1170 dv-bfin_dmac.c, dv-bfin_dmac.h, dv-bfin_ebiu_amc.c, dv-bfin_ebiu_amc.h,
1171 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_ddrc.h, dv-bfin_ebiu_sdc.c,
1172 dv-bfin_ebiu_sdc.h, dv-bfin_emac.c, dv-bfin_emac.h, dv-bfin_eppi.c,
1173 dv-bfin_eppi.h, dv-bfin_evt.c, dv-bfin_evt.h, dv-bfin_gptimer.c,
1174 dv-bfin_gptimer.h, dv-bfin_jtag.c, dv-bfin_jtag.h, dv-bfin_mmu.c,
1175 dv-bfin_mmu.h, dv-bfin_nfc.c, dv-bfin_nfc.h, dv-bfin_otp.c,
1176 dv-bfin_otp.h, dv-bfin_pll.c, dv-bfin_pll.h, dv-bfin_ppi.c,
1177 dv-bfin_ppi.h, dv-bfin_rtc.c, dv-bfin_rtc.h, dv-bfin_sic.c,
1178 dv-bfin_sic.h, dv-bfin_spi.c, dv-bfin_spi.h, dv-bfin_trace.c,
1179 dv-bfin_trace.h, dv-bfin_twi.c, dv-bfin_twi.h, dv-bfin_uart.c,
1180 dv-bfin_uart.h, dv-bfin_uart2.c, dv-bfin_uart2.h, dv-bfin_wdog.c,
1181 dv-bfin_wdog.h, dv-bfin_wp.c, dv-bfin_wp.h, dv-eth_phy.c, gui.c,
1182 gui.h, insn_list.def, interp.c, linux-fixed-code.h, linux-fixed-code.s,
1183 linux-targ-map.h, machs.c, machs.h, proc_list.def, sim-main.h,
1184 tconfig.in: New Blackfin port.