1 2021-06-20 Mike Frysinger <vapier@gentoo.org>
3 * configure.ac (SIM_AC_COMMON): Delete.
4 * aclocal.m4, configure: Regenerate.
6 2021-06-20 Mike Frysinger <vapier@gentoo.org>
8 * Makefile.in: Change @MAINTAINER_MODE_TRUE@ to $(MAINT).
9 * aclocal.m4, configure: Regenerate.
11 2021-06-20 Mike Frysinger <vapier@gentoo.org>
13 * aclocal.m4: Regenerate.
14 * configure: Regenerate.
16 2021-06-19 Mike Frysinger <vapier@gentoo.org>
18 * aclocal.m4: Regenerate.
19 * configure: Regenerate.
21 2021-06-19 Mike Frysinger <vapier@gentoo.org>
23 * configure: Regenerate.
25 2021-06-18 Mike Frysinger <vapier@gentoo.org>
27 * aclocal.m4, configure: Regenerate.
29 2021-06-18 Mike Frysinger <vapier@gentoo.org>
31 * configure: Regenerate.
33 2021-06-18 Mike Frysinger <vapier@gentoo.org>
35 * dv-bfin_cec.c: Include sim-signal.h.
36 * sim-main.h: Delete sim-signal.h include.
38 2021-06-17 Mike Frysinger <vapier@gentoo.org>
40 * configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
41 * interp.c (sim_open): Set current_target_byte_order.
42 * aclocal.m4, configure: Regenerate.
44 2021-06-16 Mike Frysinger <vapier@gentoo.org>
46 * configure: Regenerate.
48 2021-06-16 Mike Frysinger <vapier@gentoo.org>
50 * configure: Regenerate.
53 2021-06-15 Mike Frysinger <vapier@gentoo.org>
55 * config.in, configure: Regenerate.
57 2021-06-14 Mike Frysinger <vapier@gentoo.org>
59 * configure.ac: Delete call to SIM_AC_OPTION_WARNINGS.
60 * configure: Regenerate.
62 2021-06-12 Mike Frysinger <vapier@gentoo.org>
64 * interp.c: Include portability.h.
65 (getuid, getgid, geteuid, getegid setuid, setgid): Delete.
67 2021-06-12 Mike Frysinger <vapier@gentoo.org>
69 * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
70 * interp.c (sim_open): Set current_alignment.
72 2021-06-12 Mike Frysinger <vapier@gentoo.org>
74 * aclocal.m4, config.in, configure: Regenerate.
76 2021-06-12 Mike Frysinger <vapier@gentoo.org>
78 * configure.ac: Delete calls to AC_CHECK_FUNCS_ONCE and
79 AC_CHECK_HEADERS_ONCE.
80 * config.in, configure: Regenerate.
82 2021-05-28 Mike Frysinger <vapier@gentoo.org>
84 * dv-bfin_otp.c (bfin_otp_write_page): Shift data1 & data3 by 32-bits.
86 2021-05-23 Mike Frysinger <vapier@gentoo.org>
88 * dv-bfin_otp.c (bfin_otp_write_page): Fix args to
89 bfin_otp_write_page_val2.
91 2021-05-23 Mike Frysinger <vapier@gentoo.org>
93 * dv-bfin_otp.c (bfin_otp_write_page): Call bfin_otp_write_page_val2.
95 2021-05-23 Mike Frysinger <vapier@gentoo.org>
97 * dv-bfin_cec.c: Include strings.h.
99 2021-05-17 Mike Frysinger <vapier@gentoo.org>
101 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
103 2021-05-17 Mike Frysinger <vapier@gentoo.org>
105 * interp.c (sim_open): Call sim_state_alloc_extra.
106 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
107 (struct sim_state): Delete.
108 (STATE_BOARD_DATA): Define.
110 2021-05-16 Mike Frysinger <vapier@gentoo.org>
112 * bfin-sim.c, devices.c, dv-bfin_cec.c, dv-bfin_ctimer.c,
113 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
114 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
115 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gpio.c, dv-bfin_gpio2.c,
116 dv-bfin_gptimer.c, dv-bfin_jtag.c, dv-bfin_mmu.c, dv-bfin_nfc.c,
117 dv-bfin_otp.c, dv-bfin_pfmon.c, dv-bfin_pint.c, dv-bfin_pll.c,
118 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
119 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
120 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c, interp.c,
121 machs.c: Replace config.h include with defs.h.
123 2021-05-16 Mike Frysinger <vapier@gentoo.org>
125 * config.in, configure: Regenerate.
127 2021-05-14 Mike Frysinger <vapier@gentoo.org>
129 * interp.c: Update include path.
131 2021-05-04 Mike Frysinger <vapier@gentoo.org>
133 * configure: Regenerate.
135 2021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
137 * interp.c (sim_open): Adjust format string specifier.
139 2021-05-02 Mike Frysinger <vapier@gentoo.org>
141 * bfin-sim.c: Include ansidecl.h.
142 (illegal_instruction): Change __attribute__((noreturn)) to
144 (illegal_instruction_combination, illegal_instruction_or_combination,
145 unhandled_instruction): Likewise.
147 2021-05-01 Mike Frysinger <vapier@gentoo.org>
149 * dv-bfin_mmu.c (bfin_mmu_options): Mark static.
150 (sim_install_bfin_mmu): New function & prototype.
151 * interp.c (e_sim_add_option_table): Delete.
152 * machs.c (bfin_mach_options): Mark static.
153 (sim_install_bfin_mach): New function & prototype.
155 2021-05-01 Mike Frysinger <vapier@gentoo.org>
157 * config.in, configure: Regenerate.
159 2021-04-26 Mike Frysinger <vapier@gentoo.org>
161 * Makefile.in (NL_TARGET): Delete.
163 2021-04-23 Mike Frysinger <vapier@gentoo.org>
165 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
166 * configure: Regenerate.
168 2021-04-22 Tom Tromey <tom@tromey.com>
170 * configure, config.in: Rebuild.
172 2021-04-22 Tom Tromey <tom@tromey.com>
174 * Makefile.in (INCLUDE): Remove.
176 2021-04-22 Tom Tromey <tom@tromey.com>
178 * configure: Rebuild.
180 2021-04-21 Mike Frysinger <vapier@gentoo.org>
182 * aclocal.m4: Regenerate.
184 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
186 * configure: Regenerate.
188 2021-04-18 Mike Frysinger <vapier@gentoo.org>
190 * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
191 * configure: Regenerate.
193 2021-04-18 Mike Frysinger <vapier@gentoo.org>
195 * configure.ac: Change AC_CHECK_FUNCS to AC_CHECK_FUNCS_ONCE and
196 delete mmap & munmap.
197 * configure: Regenerate.
199 2021-04-18 Mike Frysinger <vapier@gentoo.org>
201 * interp.c (bfin_syscall): Delete CB_SYS_getpid handling.
203 2021-04-12 Mike Frysinger <vapier@gentoo.org>
205 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
207 2021-04-02 Mike Frysinger <vapier@gentoo.org>
209 * aclocal.m4, configure: Regenerate.
211 2021-02-28 Mike Frysinger <vapier@gentoo.org>
213 * configure: Regenerate.
215 2021-02-21 Mike Frysinger <vapier@gentoo.org>
217 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
218 * aclocal.m4, configure: Regenerate.
220 2021-02-13 Mike Frysinger <vapier@gentoo.org>
222 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
223 * aclocal.m4, configure: Regenerate.
225 2021-02-06 Mike Frysinger <vapier@gentoo.org>
227 * interp.c (sim_open): Delete call to STATE_WATCHPOINTS.
229 2021-02-06 Mike Frysinger <vapier@gentoo.org>
231 * configure: Regenerate.
233 2021-01-30 Mike Frysinger <vapier@gentoo.org>
235 * interp.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc.
237 2021-01-11 Mike Frysinger <vapier@gentoo.org>
239 * config.in, configure: Regenerate.
241 2021-01-09 Mike Frysinger <vapier@gentoo.org>
243 * configure: Regenerate.
245 2021-01-08 Mike Frysinger <vapier@gentoo.org>
247 * configure: Regenerate.
249 2021-01-04 Mike Frysinger <vapier@gentoo.org>
251 * machs.c: Include stdlib.h.
253 2021-01-04 Mike Frysinger <vapier@gentoo.org>
255 * dv-bfin_dma.c: Include stdlib.h.
257 2021-01-02 Mike Frysinger <vapier@gentoo.org>
259 * interp.c: Change ALIGN to align_up.
260 * sim-main.h (ALIGN): Delete
262 2020-08-21 Simon Marchi <simon.marchi@polymtl.ca>
264 * configure.ac: Include config/pkg.m4.
266 2020-07-29 Simon Marchi <simon.marchi@efficios.com>
268 * aclocal.m4, configure: Re-generate.
270 2017-09-06 John Baldwin <jhb@FreeBSD.org>
272 * configure: Regenerate.
274 2016-08-13 Mike Frysinger <vapier@gentoo.org>
277 * machs.h (MODEL_TYPE, MACH_ATTR, BFIN_INSN_*): Move ...
278 * arch.h: ... to this new header file.
279 * sim-main.h (SIM_CPU): Delete.
280 Include arch.h before sim-base.h, and move sim-base.h before
283 2016-01-10 Mike Frysinger <vapier@gentoo.org>
285 * config.in, configure: Regenerate.
287 2016-01-10 Mike Frysinger <vapier@gentoo.org>
289 * configure: Regenerate.
291 2016-01-10 Mike Frysinger <vapier@gentoo.org>
293 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
294 * configure: Regenerate.
296 2016-01-10 Mike Frysinger <vapier@gentoo.org>
298 * configure: Regenerate.
300 2016-01-10 Mike Frysinger <vapier@gentoo.org>
302 * configure: Regenerate.
304 2016-01-10 Mike Frysinger <vapier@gentoo.org>
306 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
307 * configure: Regenerate.
309 2016-01-10 Mike Frysinger <vapier@gentoo.org>
311 * configure: Regenerate.
313 2016-01-10 Mike Frysinger <vapier@gentoo.org>
315 * configure: Regenerate.
317 2016-01-09 Mike Frysinger <vapier@gentoo.org>
319 * config.in, configure: Regenerate.
321 2016-01-06 Mike Frysinger <vapier@gentoo.org>
323 * interp.c (bfin_syscall): Remove first const from argv.
324 (sim_open): Mark argv const.
325 (simple_env): Remove first const.
326 (bfin_user_init): Remove first const from argv and and env
327 (bfin_os_init): Remove first const from argv.
328 (sim_create_inferior): Mark argv and env const.
329 Drop casts from bfin_user_init and bfin_os_init calls.
331 2016-01-05 Mike Frysinger <vapier@gentoo.org>
333 * interp.c (step_once): Call TRACE_DISASM.
335 2016-01-04 Mike Frysinger <vapier@gentoo.org>
337 * bfin-sim.c (decode_dsp32shift_0): Change MIN to min.
338 * dv-bfin_dma.c (bfin_dma_hw_event_callback): Likewise.
339 * dv-bfin_ebiu_amc.c (bfin_ebiu_amc_write_amgctl): Likewise.
340 * dv-bfin_emac.c (bfin_emac_dma_read_buffer): Change MAX to max.
341 * dv-bfin_mmu.c (_mmu_check_addr): Change MIN to min.
342 * dv-bfin_trace.c (bfin_trace_io_read_buffer): Likewise.
343 * interp.c (bfin_fdpic_load): Change MAX to max.
344 (bfin_fdpic_load): Likewise.
345 * sim-main.h (MIN, MAX): Delete.
346 (CLAMP): Change MIN to min and MAX to max.
348 2016-01-04 Mike Frysinger <vapier@gentoo.org>
350 * configure: Regenerate.
352 2016-01-03 Mike Frysinger <vapier@gentoo.org>
354 * interp.c (sim_open): Update sim_parse_args comment.
356 2016-01-03 Mike Frysinger <vapier@gentoo.org>
360 2016-01-03 Mike Frysinger <vapier@gentoo.org>
362 * interp.c (count_argc): Delete.
363 (bfin_syscall): Change count_argc to countargv.
364 (bfin_user_init): Likewise.
366 2016-01-03 Mike Frysinger <vapier@gentoo.org>
368 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
369 * configure: Regenerate.
371 2016-01-02 Mike Frysinger <vapier@gentoo.org>
373 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
375 * configure: Regenerate.
377 2015-12-27 Mike Frysinger <vapier@gentoo.org>
379 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
381 2015-12-26 Mike Frysinger <vapier@gentoo.org>
383 * config.in, configure: Regenerate.
385 2015-12-26 Mike Frysinger <vapier@gentoo.org>
387 * devices.c (bfin_mmr_invalid): Delete cpu arg and add missing arg.
388 Add cpu, rw, and reason local vars. Rewrite error messages. Add
390 (dv_bfin_mmr_invalid): Update bfin_mmr_invalid call.
391 (dv_bfin_mmr_require): Likewise. Change return to bool. Check
392 alignment of the addr variable.
393 (bfin_mmr_check, dv_bfin_mmr_check, device_io_read_buffer,
394 device_io_write_buffer): Delete.
395 (dv_bfin_mmr_require_16_32): Define.
396 * devices.h (dv_bfin_mmr_require): Change return to bool.
397 (dv_bfin_mmr_check): Delete.
398 (dv_bfin_mmr_require_16_32): Define.
400 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Call
401 dv_bfin_mmr_require_32.
402 (bfin_cec_io_read_buffer): Likewise.
403 * dv-bfin_ctimer.c (bfin_ctimer_io_write_buffer): Likewise.
404 (bfin_ctimer_io_read_buffer): Likewise.
405 * dv-bfin_dma.c (bfin_dma_io_write_buffer): Call
406 dv_bfin_mmr_require_16_32. Return 0 in the default case.
407 (bfin_dma_io_read_buffer): Call dv_bfin_mmr_require_16_32.
408 * dv-bfin_ebiu_amc.c (bf50x_ebiu_amc_io_write_buffer): Return 0
409 when dv_bfin_mmr_require_16 fails and in the default case.
410 (bf53x_ebiu_amc_io_write_buffer): Likewise.
411 (bf54x_ebiu_amc_io_write_buffer): Likewise.
412 (bfin_ebiu_amc_io_write_buffer): Call dv_bfin_mmr_require_16_32.
413 (bf50x_ebiu_amc_io_read_buffer): Return 0 when
414 dv_bfin_mmr_require_16 fails and in the default case.
415 (bf53x_ebiu_amc_io_read_buffer): Likewise.
416 (bf54x_ebiu_amc_io_read_buffer): Likewise.
417 (bfin_ebiu_amc_io_read_buffer): Call dv_bfin_mmr_require_16_32.
418 * dv-bfin_ebiu_ddrc.c (bfin_ebiu_ddrc_io_write_buffer): Call
419 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16 or
420 dv_bfin_mmr_require_32 fails.
421 (bfin_ebiu_ddrc_io_read_buffer): Likewise.
422 * dv-bfin_ebiu_sdc.c (bfin_ebiu_sdc_io_write_buffer): Likewise.
423 (bfin_ebiu_sdc_io_read_buffer): Likewise.
424 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Return 0 when
425 dv_bfin_mmr_require_32 fails and in the default case.
426 (bfin_emac_io_read_buffer): Likewise.
427 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Call
428 dv_bfin_mmr_require_16_32 and return 0 when dv_bfin_mmr_require_16
429 or dv_bfin_mmr_require_32 fails and in the default case.
430 (bfin_eppi_io_read_buffer): Likewise.
431 * dv-bfin_evt.c (bfin_evt_io_write_buffer): Call
432 dv_bfin_mmr_require_32.
433 (bfin_evt_io_read_buffer): Likewise.
434 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Move call to
435 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
436 fails and in the default case.
437 (bfin_gpio_io_read_buffer): Likewise.
438 * dv-bfin_gpio2.c (bfin_gpio_io_write_buffer): Move call to
439 dv_bfin_mmr_require_16 and dv_bfin_mmr_require_32 to earlier in the
440 func. Return 0 when it fails and in the default case.
441 (bfin_gpio_io_read_buffer): Likewise.
442 * dv-bfin_gptimer.c (bfin_gptimer_io_write_buffer): Call
443 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16 or
444 dv_bfin_mmr_require_32 fails and in the default case.
445 (bfin_gptimer_io_read_buffer): Likewise.
446 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Call
447 dv_bfin_mmr_require_32. Return 0 in the default case.
448 (bfin_jtag_io_read_buffer): Likewise. Delete while(1) loop.
449 * dv-bfin_mmu.c (bfin_mmu_io_write_buffer): Call
450 dv_bfin_mmr_require_32. Return 0 in the default case.
451 (bfin_mmu_io_read_buffer): Likewise. Delete while(1) loop.
452 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Move call to
453 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
454 fails and in the default case.
455 (bfin_nfc_io_read_buffer): Likewise.
456 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Call
457 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16
458 or dv_bfin_mmr_require_32 fails and in the default case.
459 (bfin_otp_io_read_buffer): Likewise.
460 * dv-bfin_pfmon.c (bfin_pfmon_io_write_buffer): Call
461 dv_bfin_mmr_require_32. Return 0 in the default case.
462 (bfin_pfmon_io_read_buffer): Likewise. Delete while(1) loop.
463 * dv-bfin_pint.c (bfin_pint_io_write_buffer): Move call to
464 dv_bfin_mmr_require_32 to earlier in the func. Return 0 when it
465 fails and in the default case.
466 (bfin_pint_io_read_buffer): Likewise.
467 * dv-bfin_pll.c (bfin_pll_io_write_buffer): Call
468 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16
470 (bfin_pll_io_read_buffer): Likewise.
471 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Move call to
472 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
473 fails and in the default case.
474 9bfin_ppi_io_read_buffer): Likewise.
475 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Call
476 dv_bfin_mmr_require_16_32.
477 (bfin_rtc_io_read_buffer): Likewise.
478 * dv-bfin_sic.c (bfin_sic_52x_io_write_buffer): Likewise.
479 (bfin_sic_52x_io_read_buffer, bfin_sic_537_io_write_buffer,
480 bfin_sic_537_io_read_buffer, bfin_sic_54x_io_write_buffer,
481 bfin_sic_54x_io_read_buffer, bfin_sic_561_io_write_buffer,
482 bfin_sic_561_io_read_buffer): Likewise.
483 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Move call to
484 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
485 fails and in the default case.
486 (bfin_spi_io_read_buffer): Likewise.
487 * dv-bfin_trace.c (bfin_trace_io_write_buffer): Call
488 dv_bfin_mmr_require_32. Return 0 in the default case.
489 (bfin_trace_io_read_buffer): Likewise. Delete while(1) loop.
490 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Move call to
491 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
492 fails and in the default case.
493 (bfin_twi_io_read_buffer): Likewise.
494 * dv-bfin_uart.c (bfin_uart_io_write_buffer): Likewise.
495 (bfin_uart_io_read_buffer): Likewise.
496 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Likewise.
497 (bfin_uart_io_read_buffer): Likewise.
498 * dv-bfin_wdog.c (bfin_wdog_io_write_buffer): Call
499 dv_bfin_mmr_require_16_32.
500 (bfin_wdog_io_read_buffer): Likewise. Return 0 when
501 dv_bfin_mmr_require_16 fails.
502 * dv-bfin_wp.c (bfin_wp_io_write_buffer): Call
503 dv_bfin_mmr_require_32. Return 0 in the default case.
504 (bfin_wp_io_read_buffer): Likewise. Delete while(1) loop.
505 * tconfig.h: Delete file.
507 2015-12-26 Mike Frysinger <vapier@gentoo.org>
509 * bfin-sim.c (decode_LDST_0): Add 4th element to posts array.
511 2015-12-26 Mike Frysinger <vapier@gentoo.org>
513 * interp.c (sim_create_inferior): Update comment and argv check.
515 2015-12-25 Mike Frysinger <vapier@gentoo.org>
517 * Makefile.in (SIM_OBJS): Delete sim-model.o.
518 * tconfig.h (SIM_HAVE_MODEL): Delete.
520 2015-12-25 Mike Frysinger <vapier@gentoo.org>
522 * machs.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to
523 SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL.
525 2015-12-25 Mike Frysinger <vapier@gentoo.org>
527 * devices.c (device_error): Delete.
529 2015-12-24 Mike Frysinger <vapier@gentoo.org>
531 * tconfig.h (SIM_HANDLES_LMA): Delete.
533 2015-11-17 Mike Frysinger <vapier@gentoo.org>
535 * tconfig.h (WITH_MODULO_MEMORY): Delete.
537 2015-11-15 Mike Frysinger <vapier@gentoo.org>
539 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
542 2015-11-14 Mike Frysinger <vapier@gentoo.org>
544 * interp.c (sim_close): Delete.
546 2015-10-11 Mike Frysinger <vapier@gentoo.org>
549 * bfin-sim.c (decode_dsp32shiftimm_0): Call ashiftrt when count
552 2015-06-24 Mike Frysinger <vapier@gentoo.org>
554 * interp.c (trace_register): Delete.
555 * sim-main.h (trace_register, TRACE_REGISTER, TRACE_REG): Delete.
557 2015-06-23 Mike Frysinger <vapier@gentoo.org>
559 * configure: Regenerate.
561 2015-06-17 Mike Frysinger <vapier@gentoo.org>
563 * interp.c: Include sim-syscall.h.
564 (syscall_read_mem, syscall_write_mem): Delete.
565 (bfin_syscall): Change syscall_read_mem/syscall_write_mem to
566 sim_syscall_read_mem/sim_syscall_write_mem.
568 2015-06-17 Mike Frysinger <vapier@gentoo.org>
570 * linux-targ-map.h: Update example comments.
571 (cb_linux_syscall_map): Fill out name field.
572 (cb_linux_errno_map, cb_linux_open_map, cb_linux_signal_map):
575 2015-06-12 Mike Frysinger <vapier@gentoo.org>
577 * interp.c: Expand comment on CB_SYS_xxx defines.
579 2015-06-12 Mike Frysinger <vapier@gentoo.org>
581 * configure: Regenerate.
583 2015-06-12 Mike Frysinger <vapier@gentoo.org>
585 * configure: Regenerate.
587 2015-06-12 Mike Frysinger <vapier@gentoo.org>
589 * bfin-sim.c (hwloop_get_next_pc): Change TRACE_BRANCH to
591 (decode_ProgCtrl_0, decode_BRCC_0, decode_UJUMP_0, decode_CALLa_0):
593 * bfin-sim.h (__PUT_MEM, __GET_MEM): Change TRACE_CORE to
595 * dv-bfin_cec.c (_cec_raise, cec_latch, cec_return): Change
596 TRACE_BRANCH to BFIN_TRACE_BRANCH.
597 * interp.c (syscall_read_mem, syscall_write_mem): Change MAYBE_TRACE
599 * sim-main.h (MAYBE_TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
600 TRACE_SYSCALL, TRACE_EVENTS): Delete.
601 (TRACE_CORE): Rename to ...
602 (BFIN_TRACE_CORE): ... this. Change MAYBE_TRACE to TRACE_CORE.
603 (TRACE_BRANCH): Rename to ...
604 (BFIN_TRACE_BRANCH): ... this. Change MAYBE_TRACE to TRACE_BRANCH.
606 2015-04-24 David Binderman <dcb314@hotmail.com>
607 Nick Clifton <nickc@redhat.com>
610 * bfin-sim.c (decode_dsp32alu_0): Remove spurious check for
613 2015-04-18 Mike Frysinger <vapier@gentoo.org>
615 * sim-main.h (SIM_CPU): Add note to clean this up.
617 2015-04-18 Mike Frysinger <vapier@gentoo.org>
619 * sim-main.h (sim_cia): Delete.
621 2015-04-17 Mike Frysinger <vapier@gentoo.org>
623 * sim-main.h (CIA_GET, CIA_SET): Delete.
625 2015-04-15 Mike Frysinger <vapier@gentoo.org>
627 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
628 * sim-main.h (STATE_CPU): Delete.
630 2015-04-13 Mike Frysinger <vapier@gentoo.org>
632 * configure: Regenerate.
634 2015-04-06 Mike Frysinger <vapier@gentoo.org>
636 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
638 2015-04-01 Mike Frysinger <vapier@gentoo.org>
640 * Makefile.in (SIM_OBJS): Delete $(SIM_EXTRA_OBJS).
642 2015-03-31 Mike Frysinger <vapier@gentoo.org>
644 * config.in, configure: Regenerate.
646 2015-03-24 Mike Frysinger <vapier@gentoo.org>
648 * configure: Regenerate.
650 2015-03-23 Mike Frysinger <vapier@gentoo.org>
652 * configure: Regenerate.
654 2015-03-23 Mike Frysinger <vapier@gentoo.org>
656 * configure: Regenerate.
657 * configure.ac (BFIN_SIM_EXTRA_OBJS): Delete.
658 * Makefile.in (SIM_OBJS): Delete @BFIN_SIM_EXTRA_OBJS@.
660 2015-03-23 Mike Frysinger <vapier@gentoo.org>
662 * dv-bfin_uart.c [!HAVE_DV_SOCKSER] (dv_sockser_status,
663 dv_sockser_write, dv_sockser_read): Delete.
665 2015-03-23 Mike Frysinger <vapier@gentoo.org>
667 * sim-main.h: Delete run-sim.h include.
669 2015-03-16 Mike Frysinger <vapier@gentoo.org>
671 * aclocal.m4, config.in, configure: Regenerate.
672 * tconfig.in: Rename file ...
673 * tconfig.h: ... here.
675 2015-03-15 Mike Frysinger <vapier@gentoo.org>
677 * tconfig.in: Delete includes.
678 [HAVE_DV_SOCKSER]: Delete.
680 2015-03-14 Mike Frysinger <vapier@gentoo.org>
682 * bfin-sim.c (decode_dsp32alu_0): Change v to bu32.
684 2015-03-14 Mike Frysinger <vapier@gentoo.org>
686 * Makefile.in (SIM_RUN_OBJS): Delete.
688 2015-03-10 Mike Frysinger <vapier@gentoo.org>
691 * Makefile.in ($(srcdir)/linux-fixed-code.h): Put a ; after the
692 print sed command for BSD compatibility.
694 2015-03-08 Mike Frysinger <vapier@gentoo.org>
697 * Makefile.in ($(srcdir)/linux-fixed-code.h): Specify the asm input
698 directly rather than use $<. Move the file name to the end of the
699 sed command to be POSIX compliant.
701 2014-08-19 Alan Modra <amodra@gmail.com>
703 * configure: Regenerate.
705 2014-08-15 Roland McGrath <mcgrathr@google.com>
707 * configure: Regenerate.
708 * config.in: Regenerate.
710 2014-03-04 Mike Frysinger <vapier@gentoo.org>
712 * configure: Regenerate.
714 2013-09-23 Alan Modra <amodra@gmail.com>
716 * configure: Regenerate.
718 2013-06-23 Mike Frysinger <vapier@gentoo.org>
720 * bfin-sim.c (decode_dsp32alu_0): Add note about broken handling of
721 SEARCH with parallel insns.
723 2013-06-23 Mike Frysinger <vapier@gentoo.org>
725 * bfin-sim.c (decode_dsp32shift_0): Make sure HLs is 0 after last
727 (decode_dsp32shiftimm_0): Likewise.
728 Require HLs be less than 2 for accumulator shift insns.
730 2013-06-18 Mike Frysinger <vapier@gentoo.org>
732 * bfin-sim.c (decode_dsp32alu_0): Check more opcode fields before
733 decoding various insns.
735 2013-06-17 Mike Frysinger <vapier@gentoo.org>
737 * TODO: Add more notes.
739 2013-06-09 Mike Frysinger <vapier@gentoo.org>
741 * Makefile.in ($(srcdir)/linux-fixed-code.h): Add
742 @MAINTAINER_MODE_TRUE@ as the first item in the dependency list.
744 2013-06-03 Mike Frysinger <vapier@gentoo.org>
746 * aclocal.m4, configure: Regenerate.
748 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
750 * configure: Rebuild.
752 2013-03-26 Mike Frysinger <vapier@gentoo.org>
754 * aclocal.m4, configure: Regenerate.
756 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
758 * configure.ac: Use $SIM_DV_SOCKSER_O.
759 * configure: Regenerated.
761 2012-12-20 Joel Brobecker <brobecker@adacore.com>
763 * aclocal.m4: Revert the previous change changing
764 the license from GPL v2 or later to GPL v3 or later
765 (this file was generated).
767 2012-12-20 Joel Brobecker <brobecker@adacore.com>
769 * linux-fixed-code.s: Revert the previous change changing
770 the license from GPL v2 or later to GPL v3 or later.
772 2012-07-31 Mike Frysinger <vapier@gentoo.org>
774 * machs.c (bf54x_roms): Pass 0x1000 to alias field of BFROM, and
775 0x10000 to the alias field of BFROMA.
776 (bf561_roms): Pass 0x1000 to alias field of BFROM.
777 (bf59x_roms): Pass 0x10000 to alias field of BFROMA.
779 2012-07-31 Mike Frysinger <vapier@gentoo.org>
781 * machs.c (bfin_reg_fetch): Change return 0 to return -1, and
782 return -1 to return 4.
783 (bfin_reg_store): Likewise.
785 2012-06-15 Joel Brobecker <brobecker@adacore.com>
787 * config.in, configure: Regenerate.
789 2012-04-09 Mike Frysinger <vapier@gentoo.org>
791 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pint.
792 * configure: Regenerate.
793 * dv-bfin_pint.c, dv-bfin_pint.h: New device model.
794 * machs.c (bf542_dev): Add PINT register blocks.
795 (bf544_dev, bf547_dev): Likewise.
797 (bf54x_port): Add pint/gpio routing.
798 * machs.h (BFIN_MMR_PINT_SIZE): Define.
800 2012-04-09 Mike Frysinger <vapier@gentoo.org>
802 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio2.
803 * configure: Regenerate.
804 * dv-bfin_gpio2.c, dv-bfin_gpio2.h: New device model.
805 * machs.c (bf54x_mem): Delete GPIO mem stub.
806 (bf542_dev): Add GPIO register blocks.
807 (bf544_dev, bf547_dev): Likewise.
808 * machs.h (BFIN_MMR_GPIO2_SIZE): Define.
810 2012-04-09 Robin Getz <robin.getz@analog.com>
812 * bfin-sim.c (decode_dsp32shift_0): Extract the sign for ASHIFT
813 and LSHIFT, and set ASTAT based on the before/after values.
814 Rename "val" to "acc" to be consistent with other code branches.
816 2012-04-09 Robin Getz <robin.getz@analog.com>
818 * bfin-sim.c (sgn_extend): New helper.
819 (decode_dsp32shiftimm_0): Call lshift when newimmag is more
820 than 16, otherwise call ashiftrt. Set ASTAT fields as needed.
821 For accumulator shifts, call new sgn_extend helper.
823 2012-04-08 Mike Frysinger <vapier@gentoo.org>
825 * bfin-sim.c (illegal_instruction_or_combination): New helper.
826 (decode_ProgCtrl_0): Call illegal_instruction_or_combination instead
827 of illegal_instruction.
828 (decode_PushPopReg_0, decode_CCflag_0, decode_CC2dreg_0,
829 decode_LDSTpmod_0, decode_dagMODim_0, decode_dagMODik_0,
830 decode_dspLDST_0, decode_LDST_0, _interp_insn_bfin): Likewise.
831 (decode_PushPopMultiple_0): Call illegal_instruction_combination when
832 PARALLEL_GROUP is not BFIN_PARALLEL_NONE.
833 (decode_CCflag_0, decode_REGMV_0, decode_ALU2op_0, decode_PTR2op_0,
834 decode_COMPI2opD_0, decode_COMPI2opP_0): Likewise.
835 (decode_CC2stat_0): Check PARALLEL_GROUP before cbit.
836 (decode_LDSTpmod_0): Call illegal_instruction_combination when
837 PARALLEL_GROUP is BFIN_PARALLEL_GROUP2.
838 (decode_dagMODim_0, decode_dagMODik_0, decode_LDST_0,
839 decode_LDSTiiFP_0, decode_LDSTii_0): Likewise.
841 2012-04-08 Mike Frysinger <vapier@gentoo.org>
843 * bfin-sim.h (bfin_parallel_group): New enum.
844 (bfin_cpu_state): Add new "group" member.
845 (PARALLEL_GROUP): Define.
846 * bfin-sim.c (decode_ProgCtrl_0): Change INSN_LEN check to
848 (decode_CaCTRL_0, decode_PushPopReg_0, decode_ccMV_0, decode_CCflag_0,
849 decode_CC2dreg_0, decode_CC2stat_0, decode_BRCC_0, decode_UJUMP_0,
850 decode_LOGI2op_0, decode_LoopSetup_0, decode_LDIMMhalf_0,
851 decode_CALLa_0, decode_linkage_0): Likewise.
852 (_interp_insn_bfin): Set PARALLEL_GROUP.
853 (interp_insn_bfin): Likewise.
855 2012-04-08 Mike Frysinger <vapier@gentoo.org>
857 * bfin-sim.c (decode_dsp32alu_0): Delete extra space in TRACE_INSN.
859 2012-04-01 Mike Frysinger <vapier@gentoo.org>
861 * bfin-sim.c (_interp_insn_bfin): Call illegal_instruction_combination
862 when INSN_LEN is non-zero before 32bit decode.
864 2012-04-01 Mike Frysinger <vapier@gentoo.org>
866 * bfin-dis.c (fmtconst): Replace decimal handling with a single
867 sprintf call and the '*' field width.
869 2012-04-01 Mike Frysinger <vapier@gentoo.org>
871 * machs.c (bfin_model_map_bfrom): Return when mnum is 535.
873 2012-04-01 Mike Frysinger <vapier@gentoo.org>
875 * interp.c (bfin_user_init): Move auxvt_size decl from top to
876 inside of auxvt check.
878 2012-03-31 Mike Frysinger <vapier@gentoo.org>
880 * dv-bfin_sic.c (bfin_sic_finish): Change iwr1 to iwr2.
882 2012-03-31 Mike Frysinger <vapier@gentoo.org>
884 * devices.c: Include devices.h.
886 2012-03-24 Mike Frysinger <vapier@gentoo.org>
888 * aclocal.m4, config.in, configure: Regenerate.
890 2012-03-19 Robin Getz <robin.getz@analog.com>
891 Mike Frysinger <vapier@gentoo.org>
893 * bfin-sim.c (lshift): Add an overflow flag. Delete now unused
894 i, j, and tmp vars. Add a new v_i var. Split the overflow logic
895 out from the saturate logic. Do not set V ASTAT bits when working
897 (decode_ALU2op_0): Add new argument to lshift call.
898 (decode_LOGI2op_0, decode_dsp32shift_0, decode_dsp32shiftimm_0):
901 2012-03-18 Mike Frysinger <vapier@gentoo.org>
903 * dv-bfin_ebiu_amc.c (struct bfin_ebiu_amc): Add bank_base.
904 (bfin_ebiu_amc_write_amgctl): Replace BFIN_EBIU_AMC_BASE with
906 (bfin_ebiu_amc_finish): Assign BFIN_EBIU_AMC_BASE to amc->bank_base.
908 2012-03-18 Mike Frysinger <vapier@gentoo.org>
910 * dv-bfin_ebiu_amc.c (bfin_ebiu_amc_attach_address_callback): Use
911 ARRAY_SIZE rather than hardcoded constant.
913 2012-02-04 Mike Frysinger <vapier@gentoo.org>
915 * config.in: Regenerate.
916 * configure: Likewise.
917 * configure.ac: Add linux/types.h to AC_CHECK_HEADERS.
918 * dv-eth_phy.c: Check for HAVE_LINUX_TYPES_H, and delete __u16 and
919 _LINUX_TYPES_H defines.
921 2011-12-03 Mike Frysinger <vapier@gentoo.org>
923 * interp.c (bfin_syscall): Increase _tbuf storage. Declare new local
924 tstr buffer. Call cb_get_string on tstr when handling CB_SYS_stat64,
925 CB_SYS_lstat64, CB_SYS_open, CB_SYS_write, CB_SYS_unlink,
926 CB_SYS_truncate, CB_SYS_rename, CB_SYS_stat, CB_SYS_lstat. Include
927 tstr in the tbuf output.
929 2011-12-03 Mike Frysinger <vapier@gentoo.org>
931 * Makefile.in: Delete all dependency rules.
932 * aclocal.m4, configure: Regenerate.
934 2011-10-19 Mike Frysinger <vapier@gentoo.org>
936 * configure: Regenerate after common/acinclude.m4 update.
938 2011-10-17 Mike Frysinger <vapier@gentoo.org>
940 * configure.ac: Change include to common/acinclude.m4.
941 * aclocal.m4, configure: Regenerate.
943 2011-10-17 Mike Frysinger <vapier@gentoo.org>
945 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
946 call. Replace common.m4 include with SIM_AC_COMMON.
947 * configure: Regenerate.
949 2011-09-28 Mike Frysinger <vapier@gentoo.org>
951 * bfin-sim.c (decode_dsp32shift_0): Use STORE() for VIT_MAX insns.
953 2011-07-05 Mike Frysinger <vapier@gentoo.org>
955 * interp.c (sim_do_command): Delete.
957 2011-07-01 Mike Frysinger <vapier@gentoo.org>
959 * interp.c (cb_linux_stat_map_32, cb_linux_stat_map_64): Rename from
960 stat_map_32 and stat_map_64.
961 (cb_libgloss_stat_map_32): New stat map.
962 (stat_map_32, stat_map_64): New stat map pointers.
963 (bfin_user_init): Assign stat_map_32 to cb_linux_stat_map_32 and
964 stat_map_64 to cb_linux_stat_map_64.
965 (bfin_virtual_init): New function.
966 (sim_create_inferior): Call bfin_virtual_init for all other envs.
968 2011-06-22 Mike Frysinger <vapier@gentoo.org>
970 * interp.c (bfin_syscall): Delete old comment. Set dreg 1 to
971 sc.result2 and dreg 2 to sc.errcode.
973 2011-06-18 Robin Getz <robin.getz@analog.com>
975 * bfin-sim.c (decode_dsp32shift_0): Clear ASTAT[AV] if val is 0,
976 else set it. Set ASTAT[AVS] if val is 0. Do this for LSHIFT and
977 ASHIFT accumulator insns.
979 2011-06-18 Robin Getz <robin.getz@analog.com>
981 * bfin-sim.c (ashiftrt): If size is 40, do not call SET_ASTATREG.
982 (lshiftrt): Likewise.
984 2011-06-18 Robin Getz <robin.getz@analog.com>
986 * bfin-sim.c (decode_dsp32shift_0): Use get_unextended_acc
987 rather than get_extended_acc in LSHIFT insns.
989 2011-06-18 Robin Getz <robin.getz@analog.com>
991 * bfin-sim.c (decode_macfunc): Handle MM when mmod is M_TFU.
992 Check MM once when mmod is M_FU to match M_TFU better.
994 2011-06-18 Robin Getz <robin.getz@analog.com>
996 * bfin-sim.c (decode_dsp32shiftimm_0): When shift is greater than
997 32, perform a left shift. Update the corresponding AV bit. Set
998 AZ when the low 32bits are also zero.
1000 2011-06-18 Robin Getz <robin.getz@analog.com>
1002 * bfin-sim.c (decode_dsp32shiftimm_0): With left shift vector insns,
1003 call lshift only when count is positive. Otherwise, call ashiftrt.
1004 With arithmetic right shift insns, call ashiftrt when the value is
1005 small enough, otherwise call lshift.
1007 2011-06-18 Robin Getz <robin.getz@analog.com>
1009 * bfin-sim.c (extract_mult): Call saturate_s16 directly when
1010 mmod is M_IH rather than computing the result by hand.
1012 2011-06-18 Robin Getz <robin.getz@analog.com>
1014 * bfin-sim.c (decode_macfunc): Add nosat_acc to track acc value
1015 before saturation, set sat when more cases saturate, and set the
1016 overflow bit based on these results. For M_TFU, M_IU, M_FU, and
1017 M_W32, change the max values compared against.
1018 (decode_dsp32mac_0): Delete v_i and add v_0 and v_1. Pass v_1
1019 when processing MAC1 and pass v_0 when processing MAC0. Combine
1020 the results into the V/VS ASTAT bits.
1022 2011-06-18 Robin Getz <robin.getz@analog.com>
1024 * bfin-sim.c (extract_mult): Call saturate_s32 when MM is set
1025 and mmod is M_IU. Call saturate_s16 when MM is set and mmod
1028 2011-06-18 Robin Getz <robin.getz@analog.com>
1030 * bfin-sim.c (decode_multfunc): Call new is_macmod_signed, and
1031 allow MM to sign extend all the time.
1032 (decode_macfunc): Likewise. Drop sign extension of unsigned
1035 2011-06-18 Robin Getz <robin.getz@analog.com>
1037 * bfin-sim.c (saturate_s40_astat): Change ">=" to ">".
1038 (decode_macfunc): Likewise when mmod is M_IH.
1040 2011-06-18 Mike Frysinger <vapier@gentoo.org>
1042 * interp.c (sim_create_inferior): Change free to freeargv.
1044 2011-06-04 Mike Frysinger <vapier@gentoo.org>
1046 * machs.c (bf534_dev, bf537_dev): Add glue-or devices.
1047 (bf537_port): Define applicable devices with PORT to the glue-or
1048 devices instead of SIC.
1049 (bfin_model_hw_tree_init): Drop old sim_hw_parse call for bfin_sic.
1050 Only parse reg/type when the device has an address. Move the call
1051 to dv_bfin_hw_port_parse up before slash check.
1053 2011-06-04 Mike Frysinger <vapier@gentoo.org>
1055 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Move above the
1056 BFIN_SIC_TO_CEC_PORTS definition.
1057 (SIC_PORTS): New define.
1058 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
1059 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
1060 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
1062 (bfin_sic1_ports, bfin_sic2_ports, bfin_sic3_ports,
1063 bfin_sic_561_ports): Define new layouts with SIC_PORTS().
1064 (bfin_sic_finish): Change reference to bfin_sic_50x_ports,
1065 bfin_sic_51x_ports, bfin_sic_52x_ports, and bfin_sic_538_ports
1066 to bfin_sic2_ports. Change reference to bfin_sic_533_ports,
1067 bfin_sic_537_ports, and bfin_sic_59x_ports to bfin_sic1_ports.
1068 Change reference to bfin_sic_54x_ports to bfin_sic3_ports.
1069 * machs.c (bfin_port_layout): New structure.
1070 (bfin_model_data): Add new "port" and "port_count" members.
1071 (PORT, SIC): New defines.
1072 (bf000_port, bf50x_port, bf51x_port, bf52x_port, bf533_port,
1073 bf537_port, bf538_port, bf54x_port, bf561_port, bf592_port):
1074 Move and redefine port layout from dv-bfin_sic.c to here.
1075 (bf504_port, bf506_port, bf512_port, bf514_port, bf516_port,
1076 bf518_port, bf522_port, bf523_port, bf524_port, bf525_port,
1077 bf526_port, bf527_port, bf531_port, bf532_port, bf534_port,
1078 bf536_port, bf539_port, bf542_port, bf544_port, bf547_port,
1079 bf548_port, bf549_port): New defines.
1080 (bfin_model_data): Link in new bfin_port_layout.port member.
1081 (dv_bfin_hw_port_parse): New function.
1082 (dv_bfin_hw_parse): Call new dv_bfin_hw_port_parse function.
1083 (bfin_model_hw_tree_init): Replace calls to sim_hw_parse for
1084 bfin_sic links with new dv_bfin_hw_port_parse function.
1086 2011-06-03 Mike Frysinger <vapier@gentoo.org>
1088 * dv-bfin_dma.c (bfin_dma_io_write_buffer): Fix indentation.
1090 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1092 * sim-main.h (TRACE_SYSCALL): Change EVENTS to SYSCALL.
1094 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1096 * dv-bfin_cec.h (BFIN_COREMMR_CEC_{BASE,SIZE}): Move to ...
1097 * dv-bfin_ctimer.h (BFIN_COREMMR_CTIMER_{BASE,SIZE}): Move to ...
1098 * dv-bfin_dma.h (BFIN_MMR_DMA_SIZE): Move to ...
1099 * dv-bfin_dmac.h (BFIN_MMR_DMAC{0,1}_BASE): Move to ...
1100 * dv-bfin_ebiu_amc.h (BF{IN,50X,54X}_MMR_EBIU_AMC_SIZE): Move to ...
1101 * dv-bfin_ebiu_ddrc.h (BFIN_MMR_EBIU_DDRC_SIZE): Move to ...
1102 * dv-bfin_ebiu_sdc.h (BFIN_MMR_EBIU_SDC_SIZE): Move to ...
1103 * dv-bfin_emac.h (BFIN_MMR_EMAC_{BASE,SIZE}): Move to ...
1104 * dv-bfin_eppi.h (BFIN_MMR_EPPI_SIZE): Move to ...
1105 * dv-bfin_evt.h (BFIN_COREMMR_EVT_{BASE,SIZE}): Move to ...
1106 * dv-bfin_gpio.h (BFIN_MMR_GPIO_SIZE): Move to ...
1107 * dv-bfin_gptimer.h (BFIN_MMR_GPTIMER_SIZE): Move to ...
1108 * dv-bfin_jtag.h (BFIN_COREMMR_JTAG_{BASE,SIZE}): Move to ...
1109 * dv-bfin_mmu.h (BFIN_COREMMR_MMU_{BASE,SIZE}): Move to ...
1110 * dv-bfin_nfc.h (BFIN_MMR_NFC_SIZE): Move to ...
1111 * dv-bfin_otp.h (BFIN_MMR_OTP_SIZE): Move to ...
1112 * dv-bfin_pfmon.h (BFIN_COREMMR_PFMON_{BASE,SIZE}): Move to ...
1113 * dv-bfin_pll.h (BFIN_MMR_PLL_{BASE,SIZE}): Move to ...
1114 * dv-bfin_ppi.h (BFIN_MMR_PPI_SIZE): Move to ...
1115 * dv-bfin_rtc.h (BFIN_MMR_RTC_SIZE): Move to ...
1116 * dv-bfin_sic.h (BFIN_MMR_SIC_{BASE,SIZE}): Move to ...
1117 * dv-bfin_spi.h (BFIN_MMR_SPI_SIZE): Move to ...
1118 * dv-bfin_trace.h (BFIN_COREMMR_TRACE_{BASE,SIZE}): Move to ...
1119 * dv-bfin_twi.h (BFIN_MMR_TWI_SIZE): Move to ...
1120 * dv-bfin_uart.h (BFIN_MMR_UART_SIZE): Move to ...
1121 * dv-bfin_uart2.h (BFIN_MMR_UART2_SIZE): Move to ...
1122 * dv-bfin_wdog.h (BFIN_MMR_WDOG_SIZE): Move to ...
1123 * dv-bfin_wp.h (BFIN_COREMMR_WP_{BASE,SIZE}): Move to ...
1124 * machs.h: ... here.
1125 * machs.c: Delete all dv-bfin_*.h includes except for cec/dmac.
1127 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1129 * Makefile.in (dv-bfin_pfmon.o): New target.
1130 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pfmon.
1131 * configure: Regenerated.
1132 * dv-bfin_pfmon.c, dv-bfin_pfmon.h: New files.
1133 * machs.c: Add include new bfin_pfmon.h.
1134 (bfin_core_dev): Add pfmon.
1136 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1138 * machs.c (bf526_roms): Add a region with rev of 2.
1139 (bf54x_roms): Add regions with rev of 4.
1140 * bfroms/all.h: Include new bf526-0.2.h, bf54x-0.4.h, and
1141 bf54x_l1-0.4.h headers.
1142 * bfroms/bf526-0.2.h, bfroms/bf54x-0.4.h, bfroms/bf54x_l1-0.4.h:
1145 2011-05-14 Mike Frysinger <vapier@gentoo.org>
1147 * bfin-sim.c (decode_PushPopReg_0): Delete (grp == 1 && reg == 6)
1150 2011-05-14 Mike Frysinger <vapier@gentoo.org>
1152 * dv-bfin_uart.c (bfin_uart_write_byte): Add a mcr arg. Declare a
1153 local uart. When LOOP_ENA is set in mcr, write to the saved byte
1154 and count fields of the uart.
1155 (bfin_uart_io_write_buffer): Pass uart->mcr to bfin_uart_write_byte
1156 and bfin_uart_get_next_byte.
1157 (bfin_uart_get_next_byte): Add a mcr arg. Move uart->saved_count
1158 check first, and skip the remaining code when LOOP_ENA is set in mcr.
1159 * dv-bfin_uart.h (bfin_uart_write_byte): Add an mcr argument.
1160 (bfin_uart_get_next_byte): Likewise.
1161 (XOFF, MRTS, RFIT, RFRT, LOOP_ENA, FCPOL, ARTS, ACTS): Define.
1162 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Padd uart->mcr when
1163 calling bfin_uart_write_byte and bfin_uart_get_next_byte.
1165 2011-05-09 Mike Frysinger <vapier@gentoo.org>
1167 * dv-bfin_uart2.c (bfin_uart_io_read_buffer): Clear DR/THRE/TEMT bits
1168 from uart->lsr before setting them.
1170 2011-04-27 Mike Frysinger <vapier@gentoo.org>
1172 * dv-bfin_dmac.c (bfin_dmac): Constify pmap array.
1173 (bfin_dmac_50x_pmap, bfin_dmac_51x_pmap, bfin_dmac_52x_pmap,
1174 bfin_dmac_533_pmap, bfin_dmac_537_pmap, bfin_dmac0_538_pmap,
1175 bfin_dmac1_538_pmap, bfin_dmac0_54x_pmap, bfin_dmac1_54x_pmap,
1176 bfin_dmac0_561_pmap, bfin_dmac1_561_pmap, bfin_dmac_59x_pmap):
1179 2011-04-26 Mike Frysinger <vapier@gentoo.org>
1181 * dv-bfin_gpio.c (bfin_gpio_forward_ouput): New function.
1182 (bfin_gpio_io_write_buffer): Store the current port state into
1183 "data", and call bfin_gpio_forward_ouput when the data or dir
1185 (bfin_gpio_ports): Change p0..p15 to bidirect_port.
1187 2011-04-26 Mike Frysinger <vapier@gentoo.org>
1189 * dv-bfin_gpio.c (bfin_gpio): Add "int_state" member.
1190 (bfin_gpio_forward_int, bfin_gpio_forward_ints): New functions.
1191 (bfin_gpio_io_write_buffer): Call bfin_gpio_forward_int when the
1192 mask a or mask b MMRs are written.
1193 (bfin_gpio_port_event): When handling edge gpios, set the bit in
1194 int_state, call bfin_gpio_forward_ints, and then clear the bit.
1195 When handling level gpios, clear/set the bit in int_state rather
1196 than returning immediately. Call bfin_gpio_forward_ints instead
1197 of checking mask[ab] and calling HW_TRACE/hw_port_event directly.
1199 2011-04-16 Mike Frysinger <vapier@gentoo.org>
1201 * bfin-sim.c (decode_dsp32alu_0): Call STORE instead of SET_DREG for
1202 BYTEOP2P, BYTEOP3P, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK, and
1204 (decode_dsp32shift_0): Call STORE instead of SET_DREG for PACK,
1205 BITMUX, EXTRACT, DEPOSIT, ALIGN8, ALIGN16, and ALIGN24.
1207 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1209 * bfin-sim.c (decode_dsp32alu_0): Set DIS_ALGN_EXPT when handling
1210 BYTEOP2P, BYTEOP3P, SAA, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK,
1211 and BYTEUNPACK insns.
1213 2011-04-11 Mike Frysinger <vapier@gentoo.org>
1215 * dv-bfin_sic.c (bfin_sic_port_event): New helper function.
1216 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1217 bfin_sic_54x_port_event, bfin_sic_561_port_event): Include level
1218 in the trace output, and call the new bfin_sic_port_event func.
1220 2011-04-11 Mike Frysinger <vapier@gentoo.org>
1222 * dv-bfin_gpio.c (bfin_gpio_ports): Add p15.
1224 2011-04-01 Mike Frysinger <vapier@gentoo.org>
1226 * dv-bfin_otp.c (bfin_otp_ports): Declare.
1227 (bfin_otp_finish): Call set_hw_ports with bfin_otp_ports.
1229 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1231 * configure: Regenerate after common/aclocal.m4 changes.
1233 2011-03-28 Robin Getz <robin.getz@analog.com>
1235 * bfin-sim.c (decode_dsp32alu_0): Cast high 16bits of A0.W to bs16
1236 and add to casted low 16bits of A0.L and store in val0. Cast high
1237 16bits of A1.W to bs16 and add to casted low 16bits of A1.L and
1238 store in val1. Delete bit checks of val0 and val1.
1240 2011-03-26 Robin Getz <robin.getz@analog.com>
1242 * bfin-sim.c (decode_dsp32alu_0): Set result to 0x7FFFFFFF when
1243 the result was 0x80000000 for RND12 subtraction.
1245 2011-03-26 Robin Getz <robin.getz@analog.com>
1247 * bfin-sim.c (decode_dsp32alu_0): Set VS when V is set.
1249 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1251 * dv-bfin_gpio.c (bfin_gpio_port_event): Call HW_TRACE at every
1252 major code flow point.
1253 * dv-bfin_sic.c (bfin_sic_forward_interrupts): Call HW_TRACE just
1254 before calling hw_port_event on ourselves.
1255 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1256 bfin_sic_54x_port_event, bfin_sic_561_port_event): Call HW_TRACE
1257 at the start of the function.
1259 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1261 * dv-bfin_gpio.c (bfin_gpio_port_event): Split dir/inen bit checking.
1262 Normalize "level" to 0/1 values. Shift "level" over by "my_port".
1263 Invert port->both bit check.
1265 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1267 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Subtract 2 from the
1268 valuep pointer for clear MMRs, 4 for set MMRs, and 6 for toggle MMRs.
1270 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1272 * TODO: Document some known SIC issues.
1274 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1276 * devices.h (dv_w1c): Fix typos in documentation of "bits" arg.
1277 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Pass 0xffee to dv_w1c_4.
1278 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Pass 0xe1 to dv_w1c_4
1279 for systat MMR and -1 to dv_w1c_4 for [rt]x_stky/mmc_[rt]irqs MMRs.
1280 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Pass 0x1ff to dv_w1c_2.
1281 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Invert bits to dv_w1c_2.
1282 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Invert bits to dv_w1c_4.
1283 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Invert bits to dv_w1c_2.
1284 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Invert bits to dv_w1c_2.
1285 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Invert bits to dv_w1c_2.
1286 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Invert bits to dv_w1c_2.
1287 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Invert bits to dv_w1c_2.
1288 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Invert bits to dv_w1c_2.
1289 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Invert bits to dv_w1c_2.
1291 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1293 * dv-bfin_uart.h (TFI, BI, FE, PE, OE): Define.
1295 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1297 * dv-bfin_twi.h (LOSTARB): Rename from LOSTARG.
1299 2011-03-23 Robin Getz <robin.getz@analog.com>
1301 * bfin-sim.c (decode_dsp32shift_0): Set acc0 to the unextended
1302 value for the VIT_MAX insn, and mask off the result when done.
1304 2011-03-23 Robin Getz <robin.getz@analog.com>
1306 * bfin-sim.c (decode_dsp32alu_0): Set A1 to a1_lo when up_hi is false,
1307 and set A0 to a0_lo when up_lo is false.
1309 2011-03-23 Robin Getz <robin.getz@analog.com>
1311 * bfin-sim.c (decode_dsp32alu_0): Call saturate_s40_astat instead of
1312 saturate_s40, and use the v parameter to update the AV bit. Set the
1313 AC bit only when the final result is 0.
1315 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1317 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Define.
1318 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
1319 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
1320 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
1321 Encode ids with the ENC macro.
1322 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1323 bfin_sic_54x_port_event, bfin_sic_561_port_event): Set idx
1324 from my_port with DEC_SIC, and set bit from my_port with DEC_PIN.
1325 (bfin_sic_533_port_event): Delete.
1326 (bfin_sic_finish): Call set_hw_port_event with
1327 bfin_sic_537_port_event for BF533 and BF59x targets.
1329 2011-03-23 Robin Getz <robin.getz@analog.com>
1331 * bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
1332 BYTEOP1P, BYTEOP2P, and BYTEOP3P insns.
1334 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1336 * machs.c (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev,
1337 bf533_dev, bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev):
1338 Change bfin_gpio addresses from f/g/h to 5/6/7.
1339 (bfin_model_hw_tree_init): Add the bfin_gpio address base to 'a'.
1341 2011-03-17 Mike Frysinger <vapier@gentoo.org>
1343 * configure.ac (AC_CHECK_FUNCS): Check for kill and pread.
1344 * configure: Regenerate.
1345 * config.in: Regenerate.
1346 * interp.c (bfin_syscall): Check for HAVE_{KILL,PREAD} before using
1349 2011-03-15 Mike Frysinger <vapier@gentoo.org>
1351 * Makefile.in (dv-bfin_gpio.o): New target.
1352 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio.
1353 * configure: Regenerate.
1354 * dv-bfin_gpio.c, dv-bfin_gpio.h: New files.
1355 * machs.c: Include dv-bfin_gpio.h.
1356 (bf50x_mem, bf51x_mem, bf52x_mem, bf531_mem, bf532_mem, bf533_mem,
1357 bf534_mem, bf536_mem, bf537_mem, bf538_mem, bf561_mem, bf592_mem):
1358 Delete GPIO memory stubs.
1359 (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev, bf533_dev,
1360 bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev): Add GPIO
1362 (bfin_model_hw_tree_init): Hook up GPIO interrupts to SIC.
1364 2011-03-15 Mike Frysinger <vapier@gentoo.org>
1366 * bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h, bfroms/bf51x-0.1.h,
1367 bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h, bfroms/bf526-0.1.h,
1368 bfroms/bf527-0.0.h, bfroms/bf527-0.1.h, bfroms/bf527-0.2.h,
1369 bfroms/bf533-0.1.h, bfroms/bf533-0.2.h, bfroms/bf533-0.3.h,
1370 bfroms/bf537-0.0.h, bfroms/bf537-0.1.h, bfroms/bf537-0.3.h,
1371 bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h, bfroms/bf54x-0.1.h,
1372 bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h, bfroms/bf54x_l1-0.1.h,
1373 bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h, bfroms/bf59x-0.0.h,
1374 bfroms/bf59x_l1-0.1.h, dv-bfin_cec.c, dv-bfin_ctimer.c,
1375 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
1376 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
1377 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gptimer.c, dv-bfin_jtag.c,
1378 dv-bfin_mmu.c, dv-bfin_nfc.c, dv-bfin_otp.c, dv-bfin_pll.c,
1379 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
1380 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
1381 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c,
1382 linux-fixed-code.h, linux-targ-map.h, machs.c, Makefile.in: Fix style.
1384 2011-03-15 Robin Getz <robin.getz@analog.com>
1386 * bfin-sim.c (decode_dsp32alu_0): Set AZ based on val for 16bit adds
1389 2011-03-15 Robin Getz <robin.getz@analog.com>
1391 * bfin-sim.c (decode_macfunc): Move acc STOREs behind op != 3 check.
1393 2011-03-15 Robin Getz <robin.getz@analog.com>
1395 * bfin-sim.c (decode_macfunc): New neg parameter. Set when the
1396 high bit is set after extract_mult.
1397 (decode_dsp32mac_0): Declare n_1 and n_0. Pass to the decode_macfunc
1398 functions. Use these to update the AN bit.
1400 2011-03-15 Robin Getz <robin.getz@analog.com>
1402 * bfin-sim.c (decode_dsp32mult_0): Declare v_i0 and v_i1. Pass to
1403 the extract_mult functions. Include these when updating the V, VS,
1406 2011-03-15 Robin Getz <robin.getz@analog.com>
1408 * bfin-sim.c (astat_names): New global bit array.
1409 (decode_CC2stat_0): Delete local astat_name and astat_names.
1410 (decode_psedodbg_assert_0): Move hardcoded offset into a variable.
1411 Print out ASTAT bit values when checking an ASTAT register.
1413 2010-03-15 Robin Getz <robin.getz@analog.com>
1415 * bfin-sim.c (extract_mult): Handle M_IU.
1417 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1419 * Makefile.in, TODO, aclocal.m4, bfin-sim.c, bfin-sim.h,
1420 bfroms/all.h, bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h,
1421 bfroms/bf51x-0.1.h, bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h,
1422 bfroms/bf526-0.1.h, bfroms/bf527-0.0.h, bfroms/bf527-0.1.h,
1423 bfroms/bf527-0.2.h, bfroms/bf533-0.1.h, bfroms/bf533-0.2.h,
1424 bfroms/bf533-0.3.h, bfroms/bf537-0.0.h, bfroms/bf537-0.1.h,
1425 bfroms/bf537-0.3.h, bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h,
1426 bfroms/bf54x-0.1.h, bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h,
1427 bfroms/bf54x_l1-0.1.h, bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h,
1428 bfroms/bf59x-0.0.h, bfroms/bf59x_l1-0.1.h, config.in, configure,
1429 configure.ac, devices.c, devices.h, dv-bfin_cec.c, dv-bfin_cec.h,
1430 dv-bfin_ctimer.c, dv-bfin_ctimer.h, dv-bfin_dma.c, dv-bfin_dma.h,
1431 dv-bfin_dmac.c, dv-bfin_dmac.h, dv-bfin_ebiu_amc.c, dv-bfin_ebiu_amc.h,
1432 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_ddrc.h, dv-bfin_ebiu_sdc.c,
1433 dv-bfin_ebiu_sdc.h, dv-bfin_emac.c, dv-bfin_emac.h, dv-bfin_eppi.c,
1434 dv-bfin_eppi.h, dv-bfin_evt.c, dv-bfin_evt.h, dv-bfin_gptimer.c,
1435 dv-bfin_gptimer.h, dv-bfin_jtag.c, dv-bfin_jtag.h, dv-bfin_mmu.c,
1436 dv-bfin_mmu.h, dv-bfin_nfc.c, dv-bfin_nfc.h, dv-bfin_otp.c,
1437 dv-bfin_otp.h, dv-bfin_pll.c, dv-bfin_pll.h, dv-bfin_ppi.c,
1438 dv-bfin_ppi.h, dv-bfin_rtc.c, dv-bfin_rtc.h, dv-bfin_sic.c,
1439 dv-bfin_sic.h, dv-bfin_spi.c, dv-bfin_spi.h, dv-bfin_trace.c,
1440 dv-bfin_trace.h, dv-bfin_twi.c, dv-bfin_twi.h, dv-bfin_uart.c,
1441 dv-bfin_uart.h, dv-bfin_uart2.c, dv-bfin_uart2.h, dv-bfin_wdog.c,
1442 dv-bfin_wdog.h, dv-bfin_wp.c, dv-bfin_wp.h, dv-eth_phy.c, gui.c,
1443 gui.h, insn_list.def, interp.c, linux-fixed-code.h, linux-fixed-code.s,
1444 linux-targ-map.h, machs.c, machs.h, proc_list.def, sim-main.h,
1445 tconfig.in: New Blackfin port.