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