1 2021-06-30 Mike Frysinger <vapier@gentoo.org>
3 * configure.ac: Removed.
7 2021-06-30 Mike Frysinger <vapier@gentoo.org>
9 * configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
10 * interp.c (sim_open): Set STATE_MODEL_NAME.
11 * aclocal.m4: Regenerate.
12 * configure: Regenerate.
14 2021-06-30 Mike Frysinger <vapier@gentoo.org>
16 * interp.c (sim_open): Set STATE_MACHS.
17 * machs.c (sim_machs): Rename to ...
18 (bfin_sim_machs): ... this.
19 * machs.h (bfin_sim_machs): New decl.
21 2021-06-29 Mike Frysinger <vapier@gentoo.org>
23 * machs.c (sim_machs): Mark const.
25 2021-06-27 Mike Frysinger <vapier@gentoo.org>
27 * Makefile.in: Change to $(SDL_CFLAGS) & $(SDL_LIBS).
28 * configure.ac: Delete PKG_PROG_PKG_CONFIG &
29 PKG_CHECK_MODULES calls.
30 * aclocal.m4, configure: Regenerate.
32 2021-06-24 Mike Frysinger <vapier@gentoo.org>
34 * interp.c (bfin_syscall): Set sc.arg5 & sc.arg6.
36 2021-06-22 Mike Frysinger <vapier@gentoo.org>
38 * configure: Regenerate.
40 2021-06-21 Mike Frysinger <vapier@gentoo.org>
42 * aclocal.m4: Regenerate.
43 * configure: Regenerate.
45 2021-06-21 Mike Frysinger <vapier@gentoo.org>
47 * Makefile.in (SIM_EXTRA_HW_DEVICES): Define.
48 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete call.
49 * configure: Regenerate.
51 2021-06-20 Mike Frysinger <vapier@gentoo.org>
53 * configure.ac (SIM_AC_COMMON): Delete.
54 * aclocal.m4, configure: Regenerate.
56 2021-06-20 Mike Frysinger <vapier@gentoo.org>
58 * Makefile.in: Change @MAINTAINER_MODE_TRUE@ to $(MAINT).
59 * aclocal.m4, configure: Regenerate.
61 2021-06-20 Mike Frysinger <vapier@gentoo.org>
63 * aclocal.m4: Regenerate.
64 * configure: Regenerate.
66 2021-06-19 Mike Frysinger <vapier@gentoo.org>
68 * aclocal.m4: Regenerate.
69 * configure: Regenerate.
71 2021-06-19 Mike Frysinger <vapier@gentoo.org>
73 * configure: Regenerate.
75 2021-06-18 Mike Frysinger <vapier@gentoo.org>
77 * aclocal.m4, configure: Regenerate.
79 2021-06-18 Mike Frysinger <vapier@gentoo.org>
81 * configure: Regenerate.
83 2021-06-18 Mike Frysinger <vapier@gentoo.org>
85 * dv-bfin_cec.c: Include sim-signal.h.
86 * sim-main.h: Delete sim-signal.h include.
88 2021-06-17 Mike Frysinger <vapier@gentoo.org>
90 * configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
91 * interp.c (sim_open): Set current_target_byte_order.
92 * aclocal.m4, configure: Regenerate.
94 2021-06-16 Mike Frysinger <vapier@gentoo.org>
96 * configure: Regenerate.
98 2021-06-16 Mike Frysinger <vapier@gentoo.org>
100 * configure: Regenerate.
101 * config.in: Removed.
103 2021-06-15 Mike Frysinger <vapier@gentoo.org>
105 * config.in, configure: Regenerate.
107 2021-06-14 Mike Frysinger <vapier@gentoo.org>
109 * configure.ac: Delete call to SIM_AC_OPTION_WARNINGS.
110 * configure: Regenerate.
112 2021-06-12 Mike Frysinger <vapier@gentoo.org>
114 * interp.c: Include portability.h.
115 (getuid, getgid, geteuid, getegid setuid, setgid): Delete.
117 2021-06-12 Mike Frysinger <vapier@gentoo.org>
119 * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
120 * interp.c (sim_open): Set current_alignment.
122 2021-06-12 Mike Frysinger <vapier@gentoo.org>
124 * aclocal.m4, config.in, configure: Regenerate.
126 2021-06-12 Mike Frysinger <vapier@gentoo.org>
128 * configure.ac: Delete calls to AC_CHECK_FUNCS_ONCE and
129 AC_CHECK_HEADERS_ONCE.
130 * config.in, configure: Regenerate.
132 2021-05-28 Mike Frysinger <vapier@gentoo.org>
134 * dv-bfin_otp.c (bfin_otp_write_page): Shift data1 & data3 by 32-bits.
136 2021-05-23 Mike Frysinger <vapier@gentoo.org>
138 * dv-bfin_otp.c (bfin_otp_write_page): Fix args to
139 bfin_otp_write_page_val2.
141 2021-05-23 Mike Frysinger <vapier@gentoo.org>
143 * dv-bfin_otp.c (bfin_otp_write_page): Call bfin_otp_write_page_val2.
145 2021-05-23 Mike Frysinger <vapier@gentoo.org>
147 * dv-bfin_cec.c: Include strings.h.
149 2021-05-17 Mike Frysinger <vapier@gentoo.org>
151 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
153 2021-05-17 Mike Frysinger <vapier@gentoo.org>
155 * interp.c (sim_open): Call sim_state_alloc_extra.
156 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
157 (struct sim_state): Delete.
158 (STATE_BOARD_DATA): Define.
160 2021-05-16 Mike Frysinger <vapier@gentoo.org>
162 * bfin-sim.c, devices.c, dv-bfin_cec.c, dv-bfin_ctimer.c,
163 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
164 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
165 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gpio.c, dv-bfin_gpio2.c,
166 dv-bfin_gptimer.c, dv-bfin_jtag.c, dv-bfin_mmu.c, dv-bfin_nfc.c,
167 dv-bfin_otp.c, dv-bfin_pfmon.c, dv-bfin_pint.c, dv-bfin_pll.c,
168 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
169 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
170 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c, interp.c,
171 machs.c: Replace config.h include with defs.h.
173 2021-05-16 Mike Frysinger <vapier@gentoo.org>
175 * config.in, configure: Regenerate.
177 2021-05-14 Mike Frysinger <vapier@gentoo.org>
179 * interp.c: Update include path.
181 2021-05-04 Mike Frysinger <vapier@gentoo.org>
183 * configure: Regenerate.
185 2021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
187 * interp.c (sim_open): Adjust format string specifier.
189 2021-05-02 Mike Frysinger <vapier@gentoo.org>
191 * bfin-sim.c: Include ansidecl.h.
192 (illegal_instruction): Change __attribute__((noreturn)) to
194 (illegal_instruction_combination, illegal_instruction_or_combination,
195 unhandled_instruction): Likewise.
197 2021-05-01 Mike Frysinger <vapier@gentoo.org>
199 * dv-bfin_mmu.c (bfin_mmu_options): Mark static.
200 (sim_install_bfin_mmu): New function & prototype.
201 * interp.c (e_sim_add_option_table): Delete.
202 * machs.c (bfin_mach_options): Mark static.
203 (sim_install_bfin_mach): New function & prototype.
205 2021-05-01 Mike Frysinger <vapier@gentoo.org>
207 * config.in, configure: Regenerate.
209 2021-04-26 Mike Frysinger <vapier@gentoo.org>
211 * Makefile.in (NL_TARGET): Delete.
213 2021-04-23 Mike Frysinger <vapier@gentoo.org>
215 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
216 * configure: Regenerate.
218 2021-04-22 Tom Tromey <tom@tromey.com>
220 * configure, config.in: Rebuild.
222 2021-04-22 Tom Tromey <tom@tromey.com>
224 * Makefile.in (INCLUDE): Remove.
226 2021-04-22 Tom Tromey <tom@tromey.com>
228 * configure: Rebuild.
230 2021-04-21 Mike Frysinger <vapier@gentoo.org>
232 * aclocal.m4: Regenerate.
234 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
236 * configure: Regenerate.
238 2021-04-18 Mike Frysinger <vapier@gentoo.org>
240 * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
241 * configure: Regenerate.
243 2021-04-18 Mike Frysinger <vapier@gentoo.org>
245 * configure.ac: Change AC_CHECK_FUNCS to AC_CHECK_FUNCS_ONCE and
246 delete mmap & munmap.
247 * configure: Regenerate.
249 2021-04-18 Mike Frysinger <vapier@gentoo.org>
251 * interp.c (bfin_syscall): Delete CB_SYS_getpid handling.
253 2021-04-12 Mike Frysinger <vapier@gentoo.org>
255 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
257 2021-04-02 Mike Frysinger <vapier@gentoo.org>
259 * aclocal.m4, configure: Regenerate.
261 2021-02-28 Mike Frysinger <vapier@gentoo.org>
263 * configure: Regenerate.
265 2021-02-21 Mike Frysinger <vapier@gentoo.org>
267 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
268 * aclocal.m4, configure: Regenerate.
270 2021-02-13 Mike Frysinger <vapier@gentoo.org>
272 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
273 * aclocal.m4, configure: Regenerate.
275 2021-02-06 Mike Frysinger <vapier@gentoo.org>
277 * interp.c (sim_open): Delete call to STATE_WATCHPOINTS.
279 2021-02-06 Mike Frysinger <vapier@gentoo.org>
281 * configure: Regenerate.
283 2021-01-30 Mike Frysinger <vapier@gentoo.org>
285 * interp.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc.
287 2021-01-11 Mike Frysinger <vapier@gentoo.org>
289 * config.in, configure: Regenerate.
291 2021-01-09 Mike Frysinger <vapier@gentoo.org>
293 * configure: Regenerate.
295 2021-01-08 Mike Frysinger <vapier@gentoo.org>
297 * configure: Regenerate.
299 2021-01-04 Mike Frysinger <vapier@gentoo.org>
301 * machs.c: Include stdlib.h.
303 2021-01-04 Mike Frysinger <vapier@gentoo.org>
305 * dv-bfin_dma.c: Include stdlib.h.
307 2021-01-02 Mike Frysinger <vapier@gentoo.org>
309 * interp.c: Change ALIGN to align_up.
310 * sim-main.h (ALIGN): Delete
312 2020-08-21 Simon Marchi <simon.marchi@polymtl.ca>
314 * configure.ac: Include config/pkg.m4.
316 2020-07-29 Simon Marchi <simon.marchi@efficios.com>
318 * aclocal.m4, configure: Re-generate.
320 2017-09-06 John Baldwin <jhb@FreeBSD.org>
322 * configure: Regenerate.
324 2016-08-13 Mike Frysinger <vapier@gentoo.org>
327 * machs.h (MODEL_TYPE, MACH_ATTR, BFIN_INSN_*): Move ...
328 * arch.h: ... to this new header file.
329 * sim-main.h (SIM_CPU): Delete.
330 Include arch.h before sim-base.h, and move sim-base.h before
333 2016-01-10 Mike Frysinger <vapier@gentoo.org>
335 * config.in, configure: Regenerate.
337 2016-01-10 Mike Frysinger <vapier@gentoo.org>
339 * configure: Regenerate.
341 2016-01-10 Mike Frysinger <vapier@gentoo.org>
343 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
344 * configure: Regenerate.
346 2016-01-10 Mike Frysinger <vapier@gentoo.org>
348 * configure: Regenerate.
350 2016-01-10 Mike Frysinger <vapier@gentoo.org>
352 * configure: Regenerate.
354 2016-01-10 Mike Frysinger <vapier@gentoo.org>
356 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
357 * configure: Regenerate.
359 2016-01-10 Mike Frysinger <vapier@gentoo.org>
361 * configure: Regenerate.
363 2016-01-10 Mike Frysinger <vapier@gentoo.org>
365 * configure: Regenerate.
367 2016-01-09 Mike Frysinger <vapier@gentoo.org>
369 * config.in, configure: Regenerate.
371 2016-01-06 Mike Frysinger <vapier@gentoo.org>
373 * interp.c (bfin_syscall): Remove first const from argv.
374 (sim_open): Mark argv const.
375 (simple_env): Remove first const.
376 (bfin_user_init): Remove first const from argv and and env
377 (bfin_os_init): Remove first const from argv.
378 (sim_create_inferior): Mark argv and env const.
379 Drop casts from bfin_user_init and bfin_os_init calls.
381 2016-01-05 Mike Frysinger <vapier@gentoo.org>
383 * interp.c (step_once): Call TRACE_DISASM.
385 2016-01-04 Mike Frysinger <vapier@gentoo.org>
387 * bfin-sim.c (decode_dsp32shift_0): Change MIN to min.
388 * dv-bfin_dma.c (bfin_dma_hw_event_callback): Likewise.
389 * dv-bfin_ebiu_amc.c (bfin_ebiu_amc_write_amgctl): Likewise.
390 * dv-bfin_emac.c (bfin_emac_dma_read_buffer): Change MAX to max.
391 * dv-bfin_mmu.c (_mmu_check_addr): Change MIN to min.
392 * dv-bfin_trace.c (bfin_trace_io_read_buffer): Likewise.
393 * interp.c (bfin_fdpic_load): Change MAX to max.
394 (bfin_fdpic_load): Likewise.
395 * sim-main.h (MIN, MAX): Delete.
396 (CLAMP): Change MIN to min and MAX to max.
398 2016-01-04 Mike Frysinger <vapier@gentoo.org>
400 * configure: Regenerate.
402 2016-01-03 Mike Frysinger <vapier@gentoo.org>
404 * interp.c (sim_open): Update sim_parse_args comment.
406 2016-01-03 Mike Frysinger <vapier@gentoo.org>
410 2016-01-03 Mike Frysinger <vapier@gentoo.org>
412 * interp.c (count_argc): Delete.
413 (bfin_syscall): Change count_argc to countargv.
414 (bfin_user_init): Likewise.
416 2016-01-03 Mike Frysinger <vapier@gentoo.org>
418 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
419 * configure: Regenerate.
421 2016-01-02 Mike Frysinger <vapier@gentoo.org>
423 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
425 * configure: Regenerate.
427 2015-12-27 Mike Frysinger <vapier@gentoo.org>
429 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
431 2015-12-26 Mike Frysinger <vapier@gentoo.org>
433 * config.in, configure: Regenerate.
435 2015-12-26 Mike Frysinger <vapier@gentoo.org>
437 * devices.c (bfin_mmr_invalid): Delete cpu arg and add missing arg.
438 Add cpu, rw, and reason local vars. Rewrite error messages. Add
440 (dv_bfin_mmr_invalid): Update bfin_mmr_invalid call.
441 (dv_bfin_mmr_require): Likewise. Change return to bool. Check
442 alignment of the addr variable.
443 (bfin_mmr_check, dv_bfin_mmr_check, device_io_read_buffer,
444 device_io_write_buffer): Delete.
445 (dv_bfin_mmr_require_16_32): Define.
446 * devices.h (dv_bfin_mmr_require): Change return to bool.
447 (dv_bfin_mmr_check): Delete.
448 (dv_bfin_mmr_require_16_32): Define.
450 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Call
451 dv_bfin_mmr_require_32.
452 (bfin_cec_io_read_buffer): Likewise.
453 * dv-bfin_ctimer.c (bfin_ctimer_io_write_buffer): Likewise.
454 (bfin_ctimer_io_read_buffer): Likewise.
455 * dv-bfin_dma.c (bfin_dma_io_write_buffer): Call
456 dv_bfin_mmr_require_16_32. Return 0 in the default case.
457 (bfin_dma_io_read_buffer): Call dv_bfin_mmr_require_16_32.
458 * dv-bfin_ebiu_amc.c (bf50x_ebiu_amc_io_write_buffer): Return 0
459 when dv_bfin_mmr_require_16 fails and in the default case.
460 (bf53x_ebiu_amc_io_write_buffer): Likewise.
461 (bf54x_ebiu_amc_io_write_buffer): Likewise.
462 (bfin_ebiu_amc_io_write_buffer): Call dv_bfin_mmr_require_16_32.
463 (bf50x_ebiu_amc_io_read_buffer): Return 0 when
464 dv_bfin_mmr_require_16 fails and in the default case.
465 (bf53x_ebiu_amc_io_read_buffer): Likewise.
466 (bf54x_ebiu_amc_io_read_buffer): Likewise.
467 (bfin_ebiu_amc_io_read_buffer): Call dv_bfin_mmr_require_16_32.
468 * dv-bfin_ebiu_ddrc.c (bfin_ebiu_ddrc_io_write_buffer): Call
469 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16 or
470 dv_bfin_mmr_require_32 fails.
471 (bfin_ebiu_ddrc_io_read_buffer): Likewise.
472 * dv-bfin_ebiu_sdc.c (bfin_ebiu_sdc_io_write_buffer): Likewise.
473 (bfin_ebiu_sdc_io_read_buffer): Likewise.
474 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Return 0 when
475 dv_bfin_mmr_require_32 fails and in the default case.
476 (bfin_emac_io_read_buffer): Likewise.
477 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Call
478 dv_bfin_mmr_require_16_32 and return 0 when dv_bfin_mmr_require_16
479 or dv_bfin_mmr_require_32 fails and in the default case.
480 (bfin_eppi_io_read_buffer): Likewise.
481 * dv-bfin_evt.c (bfin_evt_io_write_buffer): Call
482 dv_bfin_mmr_require_32.
483 (bfin_evt_io_read_buffer): Likewise.
484 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Move call to
485 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
486 fails and in the default case.
487 (bfin_gpio_io_read_buffer): Likewise.
488 * dv-bfin_gpio2.c (bfin_gpio_io_write_buffer): Move call to
489 dv_bfin_mmr_require_16 and dv_bfin_mmr_require_32 to earlier in the
490 func. Return 0 when it fails and in the default case.
491 (bfin_gpio_io_read_buffer): Likewise.
492 * dv-bfin_gptimer.c (bfin_gptimer_io_write_buffer): Call
493 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16 or
494 dv_bfin_mmr_require_32 fails and in the default case.
495 (bfin_gptimer_io_read_buffer): Likewise.
496 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Call
497 dv_bfin_mmr_require_32. Return 0 in the default case.
498 (bfin_jtag_io_read_buffer): Likewise. Delete while(1) loop.
499 * dv-bfin_mmu.c (bfin_mmu_io_write_buffer): Call
500 dv_bfin_mmr_require_32. Return 0 in the default case.
501 (bfin_mmu_io_read_buffer): Likewise. Delete while(1) loop.
502 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Move call to
503 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
504 fails and in the default case.
505 (bfin_nfc_io_read_buffer): Likewise.
506 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Call
507 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16
508 or dv_bfin_mmr_require_32 fails and in the default case.
509 (bfin_otp_io_read_buffer): Likewise.
510 * dv-bfin_pfmon.c (bfin_pfmon_io_write_buffer): Call
511 dv_bfin_mmr_require_32. Return 0 in the default case.
512 (bfin_pfmon_io_read_buffer): Likewise. Delete while(1) loop.
513 * dv-bfin_pint.c (bfin_pint_io_write_buffer): Move call to
514 dv_bfin_mmr_require_32 to earlier in the func. Return 0 when it
515 fails and in the default case.
516 (bfin_pint_io_read_buffer): Likewise.
517 * dv-bfin_pll.c (bfin_pll_io_write_buffer): Call
518 dv_bfin_mmr_require_16_32. Return 0 when dv_bfin_mmr_require_16
520 (bfin_pll_io_read_buffer): Likewise.
521 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Move call to
522 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
523 fails and in the default case.
524 9bfin_ppi_io_read_buffer): Likewise.
525 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Call
526 dv_bfin_mmr_require_16_32.
527 (bfin_rtc_io_read_buffer): Likewise.
528 * dv-bfin_sic.c (bfin_sic_52x_io_write_buffer): Likewise.
529 (bfin_sic_52x_io_read_buffer, bfin_sic_537_io_write_buffer,
530 bfin_sic_537_io_read_buffer, bfin_sic_54x_io_write_buffer,
531 bfin_sic_54x_io_read_buffer, bfin_sic_561_io_write_buffer,
532 bfin_sic_561_io_read_buffer): Likewise.
533 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Move call to
534 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
535 fails and in the default case.
536 (bfin_spi_io_read_buffer): Likewise.
537 * dv-bfin_trace.c (bfin_trace_io_write_buffer): Call
538 dv_bfin_mmr_require_32. Return 0 in the default case.
539 (bfin_trace_io_read_buffer): Likewise. Delete while(1) loop.
540 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Move call to
541 dv_bfin_mmr_require_16 to earlier in the func. Return 0 when it
542 fails and in the default case.
543 (bfin_twi_io_read_buffer): Likewise.
544 * dv-bfin_uart.c (bfin_uart_io_write_buffer): Likewise.
545 (bfin_uart_io_read_buffer): Likewise.
546 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Likewise.
547 (bfin_uart_io_read_buffer): Likewise.
548 * dv-bfin_wdog.c (bfin_wdog_io_write_buffer): Call
549 dv_bfin_mmr_require_16_32.
550 (bfin_wdog_io_read_buffer): Likewise. Return 0 when
551 dv_bfin_mmr_require_16 fails.
552 * dv-bfin_wp.c (bfin_wp_io_write_buffer): Call
553 dv_bfin_mmr_require_32. Return 0 in the default case.
554 (bfin_wp_io_read_buffer): Likewise. Delete while(1) loop.
555 * tconfig.h: Delete file.
557 2015-12-26 Mike Frysinger <vapier@gentoo.org>
559 * bfin-sim.c (decode_LDST_0): Add 4th element to posts array.
561 2015-12-26 Mike Frysinger <vapier@gentoo.org>
563 * interp.c (sim_create_inferior): Update comment and argv check.
565 2015-12-25 Mike Frysinger <vapier@gentoo.org>
567 * Makefile.in (SIM_OBJS): Delete sim-model.o.
568 * tconfig.h (SIM_HAVE_MODEL): Delete.
570 2015-12-25 Mike Frysinger <vapier@gentoo.org>
572 * machs.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to
573 SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL.
575 2015-12-25 Mike Frysinger <vapier@gentoo.org>
577 * devices.c (device_error): Delete.
579 2015-12-24 Mike Frysinger <vapier@gentoo.org>
581 * tconfig.h (SIM_HANDLES_LMA): Delete.
583 2015-11-17 Mike Frysinger <vapier@gentoo.org>
585 * tconfig.h (WITH_MODULO_MEMORY): Delete.
587 2015-11-15 Mike Frysinger <vapier@gentoo.org>
589 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
592 2015-11-14 Mike Frysinger <vapier@gentoo.org>
594 * interp.c (sim_close): Delete.
596 2015-10-11 Mike Frysinger <vapier@gentoo.org>
599 * bfin-sim.c (decode_dsp32shiftimm_0): Call ashiftrt when count
602 2015-06-24 Mike Frysinger <vapier@gentoo.org>
604 * interp.c (trace_register): Delete.
605 * sim-main.h (trace_register, TRACE_REGISTER, TRACE_REG): Delete.
607 2015-06-23 Mike Frysinger <vapier@gentoo.org>
609 * configure: Regenerate.
611 2015-06-17 Mike Frysinger <vapier@gentoo.org>
613 * interp.c: Include sim-syscall.h.
614 (syscall_read_mem, syscall_write_mem): Delete.
615 (bfin_syscall): Change syscall_read_mem/syscall_write_mem to
616 sim_syscall_read_mem/sim_syscall_write_mem.
618 2015-06-17 Mike Frysinger <vapier@gentoo.org>
620 * linux-targ-map.h: Update example comments.
621 (cb_linux_syscall_map): Fill out name field.
622 (cb_linux_errno_map, cb_linux_open_map, cb_linux_signal_map):
625 2015-06-12 Mike Frysinger <vapier@gentoo.org>
627 * interp.c: Expand comment on CB_SYS_xxx defines.
629 2015-06-12 Mike Frysinger <vapier@gentoo.org>
631 * configure: Regenerate.
633 2015-06-12 Mike Frysinger <vapier@gentoo.org>
635 * configure: Regenerate.
637 2015-06-12 Mike Frysinger <vapier@gentoo.org>
639 * bfin-sim.c (hwloop_get_next_pc): Change TRACE_BRANCH to
641 (decode_ProgCtrl_0, decode_BRCC_0, decode_UJUMP_0, decode_CALLa_0):
643 * bfin-sim.h (__PUT_MEM, __GET_MEM): Change TRACE_CORE to
645 * dv-bfin_cec.c (_cec_raise, cec_latch, cec_return): Change
646 TRACE_BRANCH to BFIN_TRACE_BRANCH.
647 * interp.c (syscall_read_mem, syscall_write_mem): Change MAYBE_TRACE
649 * sim-main.h (MAYBE_TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
650 TRACE_SYSCALL, TRACE_EVENTS): Delete.
651 (TRACE_CORE): Rename to ...
652 (BFIN_TRACE_CORE): ... this. Change MAYBE_TRACE to TRACE_CORE.
653 (TRACE_BRANCH): Rename to ...
654 (BFIN_TRACE_BRANCH): ... this. Change MAYBE_TRACE to TRACE_BRANCH.
656 2015-04-24 David Binderman <dcb314@hotmail.com>
657 Nick Clifton <nickc@redhat.com>
660 * bfin-sim.c (decode_dsp32alu_0): Remove spurious check for
663 2015-04-18 Mike Frysinger <vapier@gentoo.org>
665 * sim-main.h (SIM_CPU): Add note to clean this up.
667 2015-04-18 Mike Frysinger <vapier@gentoo.org>
669 * sim-main.h (sim_cia): Delete.
671 2015-04-17 Mike Frysinger <vapier@gentoo.org>
673 * sim-main.h (CIA_GET, CIA_SET): Delete.
675 2015-04-15 Mike Frysinger <vapier@gentoo.org>
677 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
678 * sim-main.h (STATE_CPU): Delete.
680 2015-04-13 Mike Frysinger <vapier@gentoo.org>
682 * configure: Regenerate.
684 2015-04-06 Mike Frysinger <vapier@gentoo.org>
686 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
688 2015-04-01 Mike Frysinger <vapier@gentoo.org>
690 * Makefile.in (SIM_OBJS): Delete $(SIM_EXTRA_OBJS).
692 2015-03-31 Mike Frysinger <vapier@gentoo.org>
694 * config.in, configure: Regenerate.
696 2015-03-24 Mike Frysinger <vapier@gentoo.org>
698 * configure: Regenerate.
700 2015-03-23 Mike Frysinger <vapier@gentoo.org>
702 * configure: Regenerate.
704 2015-03-23 Mike Frysinger <vapier@gentoo.org>
706 * configure: Regenerate.
707 * configure.ac (BFIN_SIM_EXTRA_OBJS): Delete.
708 * Makefile.in (SIM_OBJS): Delete @BFIN_SIM_EXTRA_OBJS@.
710 2015-03-23 Mike Frysinger <vapier@gentoo.org>
712 * dv-bfin_uart.c [!HAVE_DV_SOCKSER] (dv_sockser_status,
713 dv_sockser_write, dv_sockser_read): Delete.
715 2015-03-23 Mike Frysinger <vapier@gentoo.org>
717 * sim-main.h: Delete run-sim.h include.
719 2015-03-16 Mike Frysinger <vapier@gentoo.org>
721 * aclocal.m4, config.in, configure: Regenerate.
722 * tconfig.in: Rename file ...
723 * tconfig.h: ... here.
725 2015-03-15 Mike Frysinger <vapier@gentoo.org>
727 * tconfig.in: Delete includes.
728 [HAVE_DV_SOCKSER]: Delete.
730 2015-03-14 Mike Frysinger <vapier@gentoo.org>
732 * bfin-sim.c (decode_dsp32alu_0): Change v to bu32.
734 2015-03-14 Mike Frysinger <vapier@gentoo.org>
736 * Makefile.in (SIM_RUN_OBJS): Delete.
738 2015-03-10 Mike Frysinger <vapier@gentoo.org>
741 * Makefile.in ($(srcdir)/linux-fixed-code.h): Put a ; after the
742 print sed command for BSD compatibility.
744 2015-03-08 Mike Frysinger <vapier@gentoo.org>
747 * Makefile.in ($(srcdir)/linux-fixed-code.h): Specify the asm input
748 directly rather than use $<. Move the file name to the end of the
749 sed command to be POSIX compliant.
751 2014-08-19 Alan Modra <amodra@gmail.com>
753 * configure: Regenerate.
755 2014-08-15 Roland McGrath <mcgrathr@google.com>
757 * configure: Regenerate.
758 * config.in: Regenerate.
760 2014-03-04 Mike Frysinger <vapier@gentoo.org>
762 * configure: Regenerate.
764 2013-09-23 Alan Modra <amodra@gmail.com>
766 * configure: Regenerate.
768 2013-06-23 Mike Frysinger <vapier@gentoo.org>
770 * bfin-sim.c (decode_dsp32alu_0): Add note about broken handling of
771 SEARCH with parallel insns.
773 2013-06-23 Mike Frysinger <vapier@gentoo.org>
775 * bfin-sim.c (decode_dsp32shift_0): Make sure HLs is 0 after last
777 (decode_dsp32shiftimm_0): Likewise.
778 Require HLs be less than 2 for accumulator shift insns.
780 2013-06-18 Mike Frysinger <vapier@gentoo.org>
782 * bfin-sim.c (decode_dsp32alu_0): Check more opcode fields before
783 decoding various insns.
785 2013-06-17 Mike Frysinger <vapier@gentoo.org>
787 * TODO: Add more notes.
789 2013-06-09 Mike Frysinger <vapier@gentoo.org>
791 * Makefile.in ($(srcdir)/linux-fixed-code.h): Add
792 @MAINTAINER_MODE_TRUE@ as the first item in the dependency list.
794 2013-06-03 Mike Frysinger <vapier@gentoo.org>
796 * aclocal.m4, configure: Regenerate.
798 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
800 * configure: Rebuild.
802 2013-03-26 Mike Frysinger <vapier@gentoo.org>
804 * aclocal.m4, configure: Regenerate.
806 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
808 * configure.ac: Use $SIM_DV_SOCKSER_O.
809 * configure: Regenerated.
811 2012-12-20 Joel Brobecker <brobecker@adacore.com>
813 * aclocal.m4: Revert the previous change changing
814 the license from GPL v2 or later to GPL v3 or later
815 (this file was generated).
817 2012-12-20 Joel Brobecker <brobecker@adacore.com>
819 * linux-fixed-code.s: Revert the previous change changing
820 the license from GPL v2 or later to GPL v3 or later.
822 2012-07-31 Mike Frysinger <vapier@gentoo.org>
824 * machs.c (bf54x_roms): Pass 0x1000 to alias field of BFROM, and
825 0x10000 to the alias field of BFROMA.
826 (bf561_roms): Pass 0x1000 to alias field of BFROM.
827 (bf59x_roms): Pass 0x10000 to alias field of BFROMA.
829 2012-07-31 Mike Frysinger <vapier@gentoo.org>
831 * machs.c (bfin_reg_fetch): Change return 0 to return -1, and
832 return -1 to return 4.
833 (bfin_reg_store): Likewise.
835 2012-06-15 Joel Brobecker <brobecker@adacore.com>
837 * config.in, configure: Regenerate.
839 2012-04-09 Mike Frysinger <vapier@gentoo.org>
841 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pint.
842 * configure: Regenerate.
843 * dv-bfin_pint.c, dv-bfin_pint.h: New device model.
844 * machs.c (bf542_dev): Add PINT register blocks.
845 (bf544_dev, bf547_dev): Likewise.
847 (bf54x_port): Add pint/gpio routing.
848 * machs.h (BFIN_MMR_PINT_SIZE): Define.
850 2012-04-09 Mike Frysinger <vapier@gentoo.org>
852 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio2.
853 * configure: Regenerate.
854 * dv-bfin_gpio2.c, dv-bfin_gpio2.h: New device model.
855 * machs.c (bf54x_mem): Delete GPIO mem stub.
856 (bf542_dev): Add GPIO register blocks.
857 (bf544_dev, bf547_dev): Likewise.
858 * machs.h (BFIN_MMR_GPIO2_SIZE): Define.
860 2012-04-09 Robin Getz <robin.getz@analog.com>
862 * bfin-sim.c (decode_dsp32shift_0): Extract the sign for ASHIFT
863 and LSHIFT, and set ASTAT based on the before/after values.
864 Rename "val" to "acc" to be consistent with other code branches.
866 2012-04-09 Robin Getz <robin.getz@analog.com>
868 * bfin-sim.c (sgn_extend): New helper.
869 (decode_dsp32shiftimm_0): Call lshift when newimmag is more
870 than 16, otherwise call ashiftrt. Set ASTAT fields as needed.
871 For accumulator shifts, call new sgn_extend helper.
873 2012-04-08 Mike Frysinger <vapier@gentoo.org>
875 * bfin-sim.c (illegal_instruction_or_combination): New helper.
876 (decode_ProgCtrl_0): Call illegal_instruction_or_combination instead
877 of illegal_instruction.
878 (decode_PushPopReg_0, decode_CCflag_0, decode_CC2dreg_0,
879 decode_LDSTpmod_0, decode_dagMODim_0, decode_dagMODik_0,
880 decode_dspLDST_0, decode_LDST_0, _interp_insn_bfin): Likewise.
881 (decode_PushPopMultiple_0): Call illegal_instruction_combination when
882 PARALLEL_GROUP is not BFIN_PARALLEL_NONE.
883 (decode_CCflag_0, decode_REGMV_0, decode_ALU2op_0, decode_PTR2op_0,
884 decode_COMPI2opD_0, decode_COMPI2opP_0): Likewise.
885 (decode_CC2stat_0): Check PARALLEL_GROUP before cbit.
886 (decode_LDSTpmod_0): Call illegal_instruction_combination when
887 PARALLEL_GROUP is BFIN_PARALLEL_GROUP2.
888 (decode_dagMODim_0, decode_dagMODik_0, decode_LDST_0,
889 decode_LDSTiiFP_0, decode_LDSTii_0): Likewise.
891 2012-04-08 Mike Frysinger <vapier@gentoo.org>
893 * bfin-sim.h (bfin_parallel_group): New enum.
894 (bfin_cpu_state): Add new "group" member.
895 (PARALLEL_GROUP): Define.
896 * bfin-sim.c (decode_ProgCtrl_0): Change INSN_LEN check to
898 (decode_CaCTRL_0, decode_PushPopReg_0, decode_ccMV_0, decode_CCflag_0,
899 decode_CC2dreg_0, decode_CC2stat_0, decode_BRCC_0, decode_UJUMP_0,
900 decode_LOGI2op_0, decode_LoopSetup_0, decode_LDIMMhalf_0,
901 decode_CALLa_0, decode_linkage_0): Likewise.
902 (_interp_insn_bfin): Set PARALLEL_GROUP.
903 (interp_insn_bfin): Likewise.
905 2012-04-08 Mike Frysinger <vapier@gentoo.org>
907 * bfin-sim.c (decode_dsp32alu_0): Delete extra space in TRACE_INSN.
909 2012-04-01 Mike Frysinger <vapier@gentoo.org>
911 * bfin-sim.c (_interp_insn_bfin): Call illegal_instruction_combination
912 when INSN_LEN is non-zero before 32bit decode.
914 2012-04-01 Mike Frysinger <vapier@gentoo.org>
916 * bfin-dis.c (fmtconst): Replace decimal handling with a single
917 sprintf call and the '*' field width.
919 2012-04-01 Mike Frysinger <vapier@gentoo.org>
921 * machs.c (bfin_model_map_bfrom): Return when mnum is 535.
923 2012-04-01 Mike Frysinger <vapier@gentoo.org>
925 * interp.c (bfin_user_init): Move auxvt_size decl from top to
926 inside of auxvt check.
928 2012-03-31 Mike Frysinger <vapier@gentoo.org>
930 * dv-bfin_sic.c (bfin_sic_finish): Change iwr1 to iwr2.
932 2012-03-31 Mike Frysinger <vapier@gentoo.org>
934 * devices.c: Include devices.h.
936 2012-03-24 Mike Frysinger <vapier@gentoo.org>
938 * aclocal.m4, config.in, configure: Regenerate.
940 2012-03-19 Robin Getz <robin.getz@analog.com>
941 Mike Frysinger <vapier@gentoo.org>
943 * bfin-sim.c (lshift): Add an overflow flag. Delete now unused
944 i, j, and tmp vars. Add a new v_i var. Split the overflow logic
945 out from the saturate logic. Do not set V ASTAT bits when working
947 (decode_ALU2op_0): Add new argument to lshift call.
948 (decode_LOGI2op_0, decode_dsp32shift_0, decode_dsp32shiftimm_0):
951 2012-03-18 Mike Frysinger <vapier@gentoo.org>
953 * dv-bfin_ebiu_amc.c (struct bfin_ebiu_amc): Add bank_base.
954 (bfin_ebiu_amc_write_amgctl): Replace BFIN_EBIU_AMC_BASE with
956 (bfin_ebiu_amc_finish): Assign BFIN_EBIU_AMC_BASE to amc->bank_base.
958 2012-03-18 Mike Frysinger <vapier@gentoo.org>
960 * dv-bfin_ebiu_amc.c (bfin_ebiu_amc_attach_address_callback): Use
961 ARRAY_SIZE rather than hardcoded constant.
963 2012-02-04 Mike Frysinger <vapier@gentoo.org>
965 * config.in: Regenerate.
966 * configure: Likewise.
967 * configure.ac: Add linux/types.h to AC_CHECK_HEADERS.
968 * dv-eth_phy.c: Check for HAVE_LINUX_TYPES_H, and delete __u16 and
969 _LINUX_TYPES_H defines.
971 2011-12-03 Mike Frysinger <vapier@gentoo.org>
973 * interp.c (bfin_syscall): Increase _tbuf storage. Declare new local
974 tstr buffer. Call cb_get_string on tstr when handling CB_SYS_stat64,
975 CB_SYS_lstat64, CB_SYS_open, CB_SYS_write, CB_SYS_unlink,
976 CB_SYS_truncate, CB_SYS_rename, CB_SYS_stat, CB_SYS_lstat. Include
977 tstr in the tbuf output.
979 2011-12-03 Mike Frysinger <vapier@gentoo.org>
981 * Makefile.in: Delete all dependency rules.
982 * aclocal.m4, configure: Regenerate.
984 2011-10-19 Mike Frysinger <vapier@gentoo.org>
986 * configure: Regenerate after common/acinclude.m4 update.
988 2011-10-17 Mike Frysinger <vapier@gentoo.org>
990 * configure.ac: Change include to common/acinclude.m4.
991 * aclocal.m4, configure: Regenerate.
993 2011-10-17 Mike Frysinger <vapier@gentoo.org>
995 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
996 call. Replace common.m4 include with SIM_AC_COMMON.
997 * configure: Regenerate.
999 2011-09-28 Mike Frysinger <vapier@gentoo.org>
1001 * bfin-sim.c (decode_dsp32shift_0): Use STORE() for VIT_MAX insns.
1003 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1005 * interp.c (sim_do_command): Delete.
1007 2011-07-01 Mike Frysinger <vapier@gentoo.org>
1009 * interp.c (cb_linux_stat_map_32, cb_linux_stat_map_64): Rename from
1010 stat_map_32 and stat_map_64.
1011 (cb_libgloss_stat_map_32): New stat map.
1012 (stat_map_32, stat_map_64): New stat map pointers.
1013 (bfin_user_init): Assign stat_map_32 to cb_linux_stat_map_32 and
1014 stat_map_64 to cb_linux_stat_map_64.
1015 (bfin_virtual_init): New function.
1016 (sim_create_inferior): Call bfin_virtual_init for all other envs.
1018 2011-06-22 Mike Frysinger <vapier@gentoo.org>
1020 * interp.c (bfin_syscall): Delete old comment. Set dreg 1 to
1021 sc.result2 and dreg 2 to sc.errcode.
1023 2011-06-18 Robin Getz <robin.getz@analog.com>
1025 * bfin-sim.c (decode_dsp32shift_0): Clear ASTAT[AV] if val is 0,
1026 else set it. Set ASTAT[AVS] if val is 0. Do this for LSHIFT and
1027 ASHIFT accumulator insns.
1029 2011-06-18 Robin Getz <robin.getz@analog.com>
1031 * bfin-sim.c (ashiftrt): If size is 40, do not call SET_ASTATREG.
1032 (lshiftrt): Likewise.
1034 2011-06-18 Robin Getz <robin.getz@analog.com>
1036 * bfin-sim.c (decode_dsp32shift_0): Use get_unextended_acc
1037 rather than get_extended_acc in LSHIFT insns.
1039 2011-06-18 Robin Getz <robin.getz@analog.com>
1041 * bfin-sim.c (decode_macfunc): Handle MM when mmod is M_TFU.
1042 Check MM once when mmod is M_FU to match M_TFU better.
1044 2011-06-18 Robin Getz <robin.getz@analog.com>
1046 * bfin-sim.c (decode_dsp32shiftimm_0): When shift is greater than
1047 32, perform a left shift. Update the corresponding AV bit. Set
1048 AZ when the low 32bits are also zero.
1050 2011-06-18 Robin Getz <robin.getz@analog.com>
1052 * bfin-sim.c (decode_dsp32shiftimm_0): With left shift vector insns,
1053 call lshift only when count is positive. Otherwise, call ashiftrt.
1054 With arithmetic right shift insns, call ashiftrt when the value is
1055 small enough, otherwise call lshift.
1057 2011-06-18 Robin Getz <robin.getz@analog.com>
1059 * bfin-sim.c (extract_mult): Call saturate_s16 directly when
1060 mmod is M_IH rather than computing the result by hand.
1062 2011-06-18 Robin Getz <robin.getz@analog.com>
1064 * bfin-sim.c (decode_macfunc): Add nosat_acc to track acc value
1065 before saturation, set sat when more cases saturate, and set the
1066 overflow bit based on these results. For M_TFU, M_IU, M_FU, and
1067 M_W32, change the max values compared against.
1068 (decode_dsp32mac_0): Delete v_i and add v_0 and v_1. Pass v_1
1069 when processing MAC1 and pass v_0 when processing MAC0. Combine
1070 the results into the V/VS ASTAT bits.
1072 2011-06-18 Robin Getz <robin.getz@analog.com>
1074 * bfin-sim.c (extract_mult): Call saturate_s32 when MM is set
1075 and mmod is M_IU. Call saturate_s16 when MM is set and mmod
1078 2011-06-18 Robin Getz <robin.getz@analog.com>
1080 * bfin-sim.c (decode_multfunc): Call new is_macmod_signed, and
1081 allow MM to sign extend all the time.
1082 (decode_macfunc): Likewise. Drop sign extension of unsigned
1085 2011-06-18 Robin Getz <robin.getz@analog.com>
1087 * bfin-sim.c (saturate_s40_astat): Change ">=" to ">".
1088 (decode_macfunc): Likewise when mmod is M_IH.
1090 2011-06-18 Mike Frysinger <vapier@gentoo.org>
1092 * interp.c (sim_create_inferior): Change free to freeargv.
1094 2011-06-04 Mike Frysinger <vapier@gentoo.org>
1096 * machs.c (bf534_dev, bf537_dev): Add glue-or devices.
1097 (bf537_port): Define applicable devices with PORT to the glue-or
1098 devices instead of SIC.
1099 (bfin_model_hw_tree_init): Drop old sim_hw_parse call for bfin_sic.
1100 Only parse reg/type when the device has an address. Move the call
1101 to dv_bfin_hw_port_parse up before slash check.
1103 2011-06-04 Mike Frysinger <vapier@gentoo.org>
1105 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Move above the
1106 BFIN_SIC_TO_CEC_PORTS definition.
1107 (SIC_PORTS): New define.
1108 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
1109 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
1110 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
1112 (bfin_sic1_ports, bfin_sic2_ports, bfin_sic3_ports,
1113 bfin_sic_561_ports): Define new layouts with SIC_PORTS().
1114 (bfin_sic_finish): Change reference to bfin_sic_50x_ports,
1115 bfin_sic_51x_ports, bfin_sic_52x_ports, and bfin_sic_538_ports
1116 to bfin_sic2_ports. Change reference to bfin_sic_533_ports,
1117 bfin_sic_537_ports, and bfin_sic_59x_ports to bfin_sic1_ports.
1118 Change reference to bfin_sic_54x_ports to bfin_sic3_ports.
1119 * machs.c (bfin_port_layout): New structure.
1120 (bfin_model_data): Add new "port" and "port_count" members.
1121 (PORT, SIC): New defines.
1122 (bf000_port, bf50x_port, bf51x_port, bf52x_port, bf533_port,
1123 bf537_port, bf538_port, bf54x_port, bf561_port, bf592_port):
1124 Move and redefine port layout from dv-bfin_sic.c to here.
1125 (bf504_port, bf506_port, bf512_port, bf514_port, bf516_port,
1126 bf518_port, bf522_port, bf523_port, bf524_port, bf525_port,
1127 bf526_port, bf527_port, bf531_port, bf532_port, bf534_port,
1128 bf536_port, bf539_port, bf542_port, bf544_port, bf547_port,
1129 bf548_port, bf549_port): New defines.
1130 (bfin_model_data): Link in new bfin_port_layout.port member.
1131 (dv_bfin_hw_port_parse): New function.
1132 (dv_bfin_hw_parse): Call new dv_bfin_hw_port_parse function.
1133 (bfin_model_hw_tree_init): Replace calls to sim_hw_parse for
1134 bfin_sic links with new dv_bfin_hw_port_parse function.
1136 2011-06-03 Mike Frysinger <vapier@gentoo.org>
1138 * dv-bfin_dma.c (bfin_dma_io_write_buffer): Fix indentation.
1140 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1142 * sim-main.h (TRACE_SYSCALL): Change EVENTS to SYSCALL.
1144 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1146 * dv-bfin_cec.h (BFIN_COREMMR_CEC_{BASE,SIZE}): Move to ...
1147 * dv-bfin_ctimer.h (BFIN_COREMMR_CTIMER_{BASE,SIZE}): Move to ...
1148 * dv-bfin_dma.h (BFIN_MMR_DMA_SIZE): Move to ...
1149 * dv-bfin_dmac.h (BFIN_MMR_DMAC{0,1}_BASE): Move to ...
1150 * dv-bfin_ebiu_amc.h (BF{IN,50X,54X}_MMR_EBIU_AMC_SIZE): Move to ...
1151 * dv-bfin_ebiu_ddrc.h (BFIN_MMR_EBIU_DDRC_SIZE): Move to ...
1152 * dv-bfin_ebiu_sdc.h (BFIN_MMR_EBIU_SDC_SIZE): Move to ...
1153 * dv-bfin_emac.h (BFIN_MMR_EMAC_{BASE,SIZE}): Move to ...
1154 * dv-bfin_eppi.h (BFIN_MMR_EPPI_SIZE): Move to ...
1155 * dv-bfin_evt.h (BFIN_COREMMR_EVT_{BASE,SIZE}): Move to ...
1156 * dv-bfin_gpio.h (BFIN_MMR_GPIO_SIZE): Move to ...
1157 * dv-bfin_gptimer.h (BFIN_MMR_GPTIMER_SIZE): Move to ...
1158 * dv-bfin_jtag.h (BFIN_COREMMR_JTAG_{BASE,SIZE}): Move to ...
1159 * dv-bfin_mmu.h (BFIN_COREMMR_MMU_{BASE,SIZE}): Move to ...
1160 * dv-bfin_nfc.h (BFIN_MMR_NFC_SIZE): Move to ...
1161 * dv-bfin_otp.h (BFIN_MMR_OTP_SIZE): Move to ...
1162 * dv-bfin_pfmon.h (BFIN_COREMMR_PFMON_{BASE,SIZE}): Move to ...
1163 * dv-bfin_pll.h (BFIN_MMR_PLL_{BASE,SIZE}): Move to ...
1164 * dv-bfin_ppi.h (BFIN_MMR_PPI_SIZE): Move to ...
1165 * dv-bfin_rtc.h (BFIN_MMR_RTC_SIZE): Move to ...
1166 * dv-bfin_sic.h (BFIN_MMR_SIC_{BASE,SIZE}): Move to ...
1167 * dv-bfin_spi.h (BFIN_MMR_SPI_SIZE): Move to ...
1168 * dv-bfin_trace.h (BFIN_COREMMR_TRACE_{BASE,SIZE}): Move to ...
1169 * dv-bfin_twi.h (BFIN_MMR_TWI_SIZE): Move to ...
1170 * dv-bfin_uart.h (BFIN_MMR_UART_SIZE): Move to ...
1171 * dv-bfin_uart2.h (BFIN_MMR_UART2_SIZE): Move to ...
1172 * dv-bfin_wdog.h (BFIN_MMR_WDOG_SIZE): Move to ...
1173 * dv-bfin_wp.h (BFIN_COREMMR_WP_{BASE,SIZE}): Move to ...
1174 * machs.h: ... here.
1175 * machs.c: Delete all dv-bfin_*.h includes except for cec/dmac.
1177 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1179 * Makefile.in (dv-bfin_pfmon.o): New target.
1180 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pfmon.
1181 * configure: Regenerated.
1182 * dv-bfin_pfmon.c, dv-bfin_pfmon.h: New files.
1183 * machs.c: Add include new bfin_pfmon.h.
1184 (bfin_core_dev): Add pfmon.
1186 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1188 * machs.c (bf526_roms): Add a region with rev of 2.
1189 (bf54x_roms): Add regions with rev of 4.
1190 * bfroms/all.h: Include new bf526-0.2.h, bf54x-0.4.h, and
1191 bf54x_l1-0.4.h headers.
1192 * bfroms/bf526-0.2.h, bfroms/bf54x-0.4.h, bfroms/bf54x_l1-0.4.h:
1195 2011-05-14 Mike Frysinger <vapier@gentoo.org>
1197 * bfin-sim.c (decode_PushPopReg_0): Delete (grp == 1 && reg == 6)
1200 2011-05-14 Mike Frysinger <vapier@gentoo.org>
1202 * dv-bfin_uart.c (bfin_uart_write_byte): Add a mcr arg. Declare a
1203 local uart. When LOOP_ENA is set in mcr, write to the saved byte
1204 and count fields of the uart.
1205 (bfin_uart_io_write_buffer): Pass uart->mcr to bfin_uart_write_byte
1206 and bfin_uart_get_next_byte.
1207 (bfin_uart_get_next_byte): Add a mcr arg. Move uart->saved_count
1208 check first, and skip the remaining code when LOOP_ENA is set in mcr.
1209 * dv-bfin_uart.h (bfin_uart_write_byte): Add an mcr argument.
1210 (bfin_uart_get_next_byte): Likewise.
1211 (XOFF, MRTS, RFIT, RFRT, LOOP_ENA, FCPOL, ARTS, ACTS): Define.
1212 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Padd uart->mcr when
1213 calling bfin_uart_write_byte and bfin_uart_get_next_byte.
1215 2011-05-09 Mike Frysinger <vapier@gentoo.org>
1217 * dv-bfin_uart2.c (bfin_uart_io_read_buffer): Clear DR/THRE/TEMT bits
1218 from uart->lsr before setting them.
1220 2011-04-27 Mike Frysinger <vapier@gentoo.org>
1222 * dv-bfin_dmac.c (bfin_dmac): Constify pmap array.
1223 (bfin_dmac_50x_pmap, bfin_dmac_51x_pmap, bfin_dmac_52x_pmap,
1224 bfin_dmac_533_pmap, bfin_dmac_537_pmap, bfin_dmac0_538_pmap,
1225 bfin_dmac1_538_pmap, bfin_dmac0_54x_pmap, bfin_dmac1_54x_pmap,
1226 bfin_dmac0_561_pmap, bfin_dmac1_561_pmap, bfin_dmac_59x_pmap):
1229 2011-04-26 Mike Frysinger <vapier@gentoo.org>
1231 * dv-bfin_gpio.c (bfin_gpio_forward_ouput): New function.
1232 (bfin_gpio_io_write_buffer): Store the current port state into
1233 "data", and call bfin_gpio_forward_ouput when the data or dir
1235 (bfin_gpio_ports): Change p0..p15 to bidirect_port.
1237 2011-04-26 Mike Frysinger <vapier@gentoo.org>
1239 * dv-bfin_gpio.c (bfin_gpio): Add "int_state" member.
1240 (bfin_gpio_forward_int, bfin_gpio_forward_ints): New functions.
1241 (bfin_gpio_io_write_buffer): Call bfin_gpio_forward_int when the
1242 mask a or mask b MMRs are written.
1243 (bfin_gpio_port_event): When handling edge gpios, set the bit in
1244 int_state, call bfin_gpio_forward_ints, and then clear the bit.
1245 When handling level gpios, clear/set the bit in int_state rather
1246 than returning immediately. Call bfin_gpio_forward_ints instead
1247 of checking mask[ab] and calling HW_TRACE/hw_port_event directly.
1249 2011-04-16 Mike Frysinger <vapier@gentoo.org>
1251 * bfin-sim.c (decode_dsp32alu_0): Call STORE instead of SET_DREG for
1252 BYTEOP2P, BYTEOP3P, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK, and
1254 (decode_dsp32shift_0): Call STORE instead of SET_DREG for PACK,
1255 BITMUX, EXTRACT, DEPOSIT, ALIGN8, ALIGN16, and ALIGN24.
1257 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1259 * bfin-sim.c (decode_dsp32alu_0): Set DIS_ALGN_EXPT when handling
1260 BYTEOP2P, BYTEOP3P, SAA, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK,
1261 and BYTEUNPACK insns.
1263 2011-04-11 Mike Frysinger <vapier@gentoo.org>
1265 * dv-bfin_sic.c (bfin_sic_port_event): New helper function.
1266 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1267 bfin_sic_54x_port_event, bfin_sic_561_port_event): Include level
1268 in the trace output, and call the new bfin_sic_port_event func.
1270 2011-04-11 Mike Frysinger <vapier@gentoo.org>
1272 * dv-bfin_gpio.c (bfin_gpio_ports): Add p15.
1274 2011-04-01 Mike Frysinger <vapier@gentoo.org>
1276 * dv-bfin_otp.c (bfin_otp_ports): Declare.
1277 (bfin_otp_finish): Call set_hw_ports with bfin_otp_ports.
1279 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1281 * configure: Regenerate after common/aclocal.m4 changes.
1283 2011-03-28 Robin Getz <robin.getz@analog.com>
1285 * bfin-sim.c (decode_dsp32alu_0): Cast high 16bits of A0.W to bs16
1286 and add to casted low 16bits of A0.L and store in val0. Cast high
1287 16bits of A1.W to bs16 and add to casted low 16bits of A1.L and
1288 store in val1. Delete bit checks of val0 and val1.
1290 2011-03-26 Robin Getz <robin.getz@analog.com>
1292 * bfin-sim.c (decode_dsp32alu_0): Set result to 0x7FFFFFFF when
1293 the result was 0x80000000 for RND12 subtraction.
1295 2011-03-26 Robin Getz <robin.getz@analog.com>
1297 * bfin-sim.c (decode_dsp32alu_0): Set VS when V is set.
1299 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1301 * dv-bfin_gpio.c (bfin_gpio_port_event): Call HW_TRACE at every
1302 major code flow point.
1303 * dv-bfin_sic.c (bfin_sic_forward_interrupts): Call HW_TRACE just
1304 before calling hw_port_event on ourselves.
1305 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1306 bfin_sic_54x_port_event, bfin_sic_561_port_event): Call HW_TRACE
1307 at the start of the function.
1309 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1311 * dv-bfin_gpio.c (bfin_gpio_port_event): Split dir/inen bit checking.
1312 Normalize "level" to 0/1 values. Shift "level" over by "my_port".
1313 Invert port->both bit check.
1315 2011-03-24 Mike Frysinger <vapier@gentoo.org>
1317 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Subtract 2 from the
1318 valuep pointer for clear MMRs, 4 for set MMRs, and 6 for toggle MMRs.
1320 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1322 * TODO: Document some known SIC issues.
1324 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1326 * devices.h (dv_w1c): Fix typos in documentation of "bits" arg.
1327 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Pass 0xffee to dv_w1c_4.
1328 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Pass 0xe1 to dv_w1c_4
1329 for systat MMR and -1 to dv_w1c_4 for [rt]x_stky/mmc_[rt]irqs MMRs.
1330 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Pass 0x1ff to dv_w1c_2.
1331 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Invert bits to dv_w1c_2.
1332 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Invert bits to dv_w1c_4.
1333 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Invert bits to dv_w1c_2.
1334 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Invert bits to dv_w1c_2.
1335 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Invert bits to dv_w1c_2.
1336 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Invert bits to dv_w1c_2.
1337 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Invert bits to dv_w1c_2.
1338 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Invert bits to dv_w1c_2.
1339 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Invert bits to dv_w1c_2.
1341 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1343 * dv-bfin_uart.h (TFI, BI, FE, PE, OE): Define.
1345 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1347 * dv-bfin_twi.h (LOSTARB): Rename from LOSTARG.
1349 2011-03-23 Robin Getz <robin.getz@analog.com>
1351 * bfin-sim.c (decode_dsp32shift_0): Set acc0 to the unextended
1352 value for the VIT_MAX insn, and mask off the result when done.
1354 2011-03-23 Robin Getz <robin.getz@analog.com>
1356 * bfin-sim.c (decode_dsp32alu_0): Set A1 to a1_lo when up_hi is false,
1357 and set A0 to a0_lo when up_lo is false.
1359 2011-03-23 Robin Getz <robin.getz@analog.com>
1361 * bfin-sim.c (decode_dsp32alu_0): Call saturate_s40_astat instead of
1362 saturate_s40, and use the v parameter to update the AV bit. Set the
1363 AC bit only when the final result is 0.
1365 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1367 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Define.
1368 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
1369 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
1370 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
1371 Encode ids with the ENC macro.
1372 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
1373 bfin_sic_54x_port_event, bfin_sic_561_port_event): Set idx
1374 from my_port with DEC_SIC, and set bit from my_port with DEC_PIN.
1375 (bfin_sic_533_port_event): Delete.
1376 (bfin_sic_finish): Call set_hw_port_event with
1377 bfin_sic_537_port_event for BF533 and BF59x targets.
1379 2011-03-23 Robin Getz <robin.getz@analog.com>
1381 * bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
1382 BYTEOP1P, BYTEOP2P, and BYTEOP3P insns.
1384 2011-03-23 Mike Frysinger <vapier@gentoo.org>
1386 * machs.c (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev,
1387 bf533_dev, bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev):
1388 Change bfin_gpio addresses from f/g/h to 5/6/7.
1389 (bfin_model_hw_tree_init): Add the bfin_gpio address base to 'a'.
1391 2011-03-17 Mike Frysinger <vapier@gentoo.org>
1393 * configure.ac (AC_CHECK_FUNCS): Check for kill and pread.
1394 * configure: Regenerate.
1395 * config.in: Regenerate.
1396 * interp.c (bfin_syscall): Check for HAVE_{KILL,PREAD} before using
1399 2011-03-15 Mike Frysinger <vapier@gentoo.org>
1401 * Makefile.in (dv-bfin_gpio.o): New target.
1402 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio.
1403 * configure: Regenerate.
1404 * dv-bfin_gpio.c, dv-bfin_gpio.h: New files.
1405 * machs.c: Include dv-bfin_gpio.h.
1406 (bf50x_mem, bf51x_mem, bf52x_mem, bf531_mem, bf532_mem, bf533_mem,
1407 bf534_mem, bf536_mem, bf537_mem, bf538_mem, bf561_mem, bf592_mem):
1408 Delete GPIO memory stubs.
1409 (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev, bf533_dev,
1410 bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev): Add GPIO
1412 (bfin_model_hw_tree_init): Hook up GPIO interrupts to SIC.
1414 2011-03-15 Mike Frysinger <vapier@gentoo.org>
1416 * bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h, bfroms/bf51x-0.1.h,
1417 bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h, bfroms/bf526-0.1.h,
1418 bfroms/bf527-0.0.h, bfroms/bf527-0.1.h, bfroms/bf527-0.2.h,
1419 bfroms/bf533-0.1.h, bfroms/bf533-0.2.h, bfroms/bf533-0.3.h,
1420 bfroms/bf537-0.0.h, bfroms/bf537-0.1.h, bfroms/bf537-0.3.h,
1421 bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h, bfroms/bf54x-0.1.h,
1422 bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h, bfroms/bf54x_l1-0.1.h,
1423 bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h, bfroms/bf59x-0.0.h,
1424 bfroms/bf59x_l1-0.1.h, dv-bfin_cec.c, dv-bfin_ctimer.c,
1425 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
1426 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
1427 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gptimer.c, dv-bfin_jtag.c,
1428 dv-bfin_mmu.c, dv-bfin_nfc.c, dv-bfin_otp.c, dv-bfin_pll.c,
1429 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
1430 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
1431 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c,
1432 linux-fixed-code.h, linux-targ-map.h, machs.c, Makefile.in: Fix style.
1434 2011-03-15 Robin Getz <robin.getz@analog.com>
1436 * bfin-sim.c (decode_dsp32alu_0): Set AZ based on val for 16bit adds
1439 2011-03-15 Robin Getz <robin.getz@analog.com>
1441 * bfin-sim.c (decode_macfunc): Move acc STOREs behind op != 3 check.
1443 2011-03-15 Robin Getz <robin.getz@analog.com>
1445 * bfin-sim.c (decode_macfunc): New neg parameter. Set when the
1446 high bit is set after extract_mult.
1447 (decode_dsp32mac_0): Declare n_1 and n_0. Pass to the decode_macfunc
1448 functions. Use these to update the AN bit.
1450 2011-03-15 Robin Getz <robin.getz@analog.com>
1452 * bfin-sim.c (decode_dsp32mult_0): Declare v_i0 and v_i1. Pass to
1453 the extract_mult functions. Include these when updating the V, VS,
1456 2011-03-15 Robin Getz <robin.getz@analog.com>
1458 * bfin-sim.c (astat_names): New global bit array.
1459 (decode_CC2stat_0): Delete local astat_name and astat_names.
1460 (decode_psedodbg_assert_0): Move hardcoded offset into a variable.
1461 Print out ASTAT bit values when checking an ASTAT register.
1463 2010-03-15 Robin Getz <robin.getz@analog.com>
1465 * bfin-sim.c (extract_mult): Handle M_IU.
1467 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1469 * Makefile.in, TODO, aclocal.m4, bfin-sim.c, bfin-sim.h,
1470 bfroms/all.h, bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h,
1471 bfroms/bf51x-0.1.h, bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h,
1472 bfroms/bf526-0.1.h, bfroms/bf527-0.0.h, bfroms/bf527-0.1.h,
1473 bfroms/bf527-0.2.h, bfroms/bf533-0.1.h, bfroms/bf533-0.2.h,
1474 bfroms/bf533-0.3.h, bfroms/bf537-0.0.h, bfroms/bf537-0.1.h,
1475 bfroms/bf537-0.3.h, bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h,
1476 bfroms/bf54x-0.1.h, bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h,
1477 bfroms/bf54x_l1-0.1.h, bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h,
1478 bfroms/bf59x-0.0.h, bfroms/bf59x_l1-0.1.h, config.in, configure,
1479 configure.ac, devices.c, devices.h, dv-bfin_cec.c, dv-bfin_cec.h,
1480 dv-bfin_ctimer.c, dv-bfin_ctimer.h, dv-bfin_dma.c, dv-bfin_dma.h,
1481 dv-bfin_dmac.c, dv-bfin_dmac.h, dv-bfin_ebiu_amc.c, dv-bfin_ebiu_amc.h,
1482 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_ddrc.h, dv-bfin_ebiu_sdc.c,
1483 dv-bfin_ebiu_sdc.h, dv-bfin_emac.c, dv-bfin_emac.h, dv-bfin_eppi.c,
1484 dv-bfin_eppi.h, dv-bfin_evt.c, dv-bfin_evt.h, dv-bfin_gptimer.c,
1485 dv-bfin_gptimer.h, dv-bfin_jtag.c, dv-bfin_jtag.h, dv-bfin_mmu.c,
1486 dv-bfin_mmu.h, dv-bfin_nfc.c, dv-bfin_nfc.h, dv-bfin_otp.c,
1487 dv-bfin_otp.h, dv-bfin_pll.c, dv-bfin_pll.h, dv-bfin_ppi.c,
1488 dv-bfin_ppi.h, dv-bfin_rtc.c, dv-bfin_rtc.h, dv-bfin_sic.c,
1489 dv-bfin_sic.h, dv-bfin_spi.c, dv-bfin_spi.h, dv-bfin_trace.c,
1490 dv-bfin_trace.h, dv-bfin_twi.c, dv-bfin_twi.h, dv-bfin_uart.c,
1491 dv-bfin_uart.h, dv-bfin_uart2.c, dv-bfin_uart2.h, dv-bfin_wdog.c,
1492 dv-bfin_wdog.h, dv-bfin_wp.c, dv-bfin_wp.h, dv-eth_phy.c, gui.c,
1493 gui.h, insn_list.def, interp.c, linux-fixed-code.h, linux-fixed-code.s,
1494 linux-targ-map.h, machs.c, machs.h, proc_list.def, sim-main.h,
1495 tconfig.in: New Blackfin port.