sim: cr16: convert to common sim memory modules
[deliverable/binutils-gdb.git] / sim / cr16 / ChangeLog
index aaf44ebfe4cf40297a117007967b295dd6a965d4..5d03dc3153bf5da7a603f990b6c2b20e7b2eecf6 100644 (file)
@@ -1,3 +1,56 @@
+2015-11-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (SIM_OBJS): Delete endian.o.
+       (INCLUDE): Delete endian.c.
+       * configure.ac (SIM_AC_OPTION_ENDIAN): Declare little endian.
+       (SIM_AC_OPTION_ALIGNMENT): release unaligned loads.
+       * configure: Regenerate.
+       * cr16_sim.h (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE,
+       IMEM_SEGMENTS, DMEM_SEGMENTS, UMEM_SEGMENTS, cr16_memory, dmem_addr,
+       imem_addr, decode_pc, get_longword, get_word, write_word,
+       write_longword, READ_16): Delete.
+       (struct _state): Delete mem member.
+       (endian.c): Delete include.
+       (SB, RB, SW, RW, SLW): Rewrite to use sim-core functions.
+       (get_longword): New function.
+       (RLW): Rewrite to use get_longword.
+       * endian.c: Delete file.
+       * interp.c (map_memory, sim_size, last_segname, last_from, last_to,
+       IMAP0_OFFSET, DMAP0_OFFSET, DMAP2_SHADDOW, DMAP2_OFFSET,
+       dmap_register, imap_register, sim_cr16_translate_dmap_addr,
+       sim_cr16_translate_imap_addr, sim_cr16_translate_addr, map_memory,
+       xfer_mem, sim_write, sim_read, dmem_addr, imem_addr): Delete.
+       (do_run): Delete iaddr and replace imem_addr/get_longword with RW.
+       (sim_open): Call sim_do_commandf.  Delete sim_size call.
+       (sim_resume): Delete iaddr and replace imem_addr/get_longword with
+       RLW.
+       * simops.c (MEMPTR): Rewrite to use sim_core_trans_addr.
+
+2015-11-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * cr16_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
+       (SET_CREG, SET_HW_CREG, SET_PSR_BIT): Pass sd and cpu to move_to_cr.
+       (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
+       (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
+       * endian.c: Change cr16_sim.h include to sim-main.h.
+       * gencode.c: Likewise.  Add SIM_DESC and SIM_CPU args to all OPs.
+       * interp.c (lookup_hash, map_memory, do_run, dmap_register,
+       imap_register, sim_cr16_translate_dmap_addr, xfer_mem,
+       sim_cr16_translate_imap_addr, sim_cr16_translate_addr): Add
+       SIM_DESC and SIM_CPU args and adjust all callers.
+       (trace_sd): Delete.
+       (sim_open): Do not assign trace_sd.
+       (sim_resume, sim_create_inferior): Set up cpu from the first one
+       in sd.
+       (cr16_reg_store): Get sim state from cpu.
+       * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
+       (trace_input_func, trace_input, do_trace_output_finish,
+       do_trace_output_finish, trace_output_40, trace_output_32,
+       trace_output_16, trace_output_void, trace_output_flag): Add
+       SIM_DESC arg.
+       (trace_input_func): Likewise.  Change trace_sd to sd.
+       (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
+
 2015-11-15  Mike Frysinger  <vapier@gentoo.org>
 
        * cr16_sim.h (get_longlong, write_longlong, WRITE_16, READ_64,
This page took 0.023213 seconds and 4 git commands to generate.