* rx.c (lsb_count): New.
[external/binutils.git] / sim / rx / ChangeLog
1 2010-11-11  DJ Delorie  <dj@redhat.com>
2
3         * rx.c (lsb_count): New.
4         (divu_cycles): New.
5         (div_cycles): New.
6         (decode_opcode): Fix cycle count math for div, divu, suntil, and
7         swhile.
8
9 2010-09-29  Kevin Buettner  <kevinb@redhat.com>
10
11         * mem.c (rx_mem_ptr): When invalidating the decode cache, account
12         for the fact that the instruction decoder never uses swapped
13         addresses.
14
15 2010-09-29  Nick Clifton  <nickc@redhat.com>
16
17         * rx.c (decode_opcode: RXO_int): Only break out of the emulation
18         loop if rx_syscall() does not return a RX_STEPPED result.
19
20 2010-09-23  Kevin Buettner  <kevinb@redhat.com>
21
22         * rx.c (decode_opcode): Add cycle information for RXO_smovu.
23
24 2010-09-23  Kevin Buettner  <kevinb@redhat.com>
25
26         * fpu.c, gdb-if.c, load.c, misc.c, syscalls.c (config.h): Include.
27
28         * rx.c (decode_opcode): Declare `tx' as unsigned.
29
30         * cpu.h (reset_decoder): Declare.
31         * load.c (rx_load): Call `reset_decoder'.
32         * rx.c (reset_decoder): New function.
33
34 2010-07-29  DJ Delorie  <dj@redhat.com>
35
36         * rx.c (decode_cache_base): New.
37         (id_names): Remove ediv and edivu.
38         (optype_names): Add TwoReg.
39         (maybe_get_mem_page): New.
40         (rx_get_byte): Call it.
41         (get_op): Add TwoReg support.
42         (put_op): Likewise.
43         (PD, PS, PS2, GD, GS, GS2, DSZ, SSZ, S2SZ, US1, US2, OM): "opcode"
44         is a pointer now.
45         (DO_RETURN): New.  We use longjmp to return an exception result.
46         (decode_opcode): Make opcode a pointer to the decode cache.  Save
47         decoded opcode information and re-use.  Call DO_RETURN instead of
48         return throughout.  Remove ediv and edivu.
49         * mem.c (ptdc): New.  Adds decode cache.
50         (rx_mem_ptr): Support it.
51         (rx_mem_decode_cache): New.
52         * mem.h (enum mem_ptr_action): add MPA_DECODE_CACHE.
53         (rx_mem_decode_cache): Declare.
54         * gdb-if.c (sim_resume): Add decode_opcode's setjmp logic here...
55         * main.c (main): ...and here.  Use a fast loop if neither trace
56         nor disassemble is given.
57         * cpu.h (RX_MAKE_STEPPED, RX_MAKE_HIT_BREAK, RX_MAKE_EXITED,
58         RX_MAKE_STOPPED, RX_EXITED, RX_STOPPED): Adjust so that 0 is not a
59         valid code for anything.
60
61 2010-07-27  DJ Delorie  <dj@redhat.com>
62
63         * README.txt: New.
64         * config.h (CYCLE_ACCURATE, CYCLE_STATS): New.
65         * configure.in (--enable-cycle-accurate, --enable-cycle-stats):
66         New.  Default to enabled.
67         * configure: Regenerate.
68
69         * cpu.h (regs_type): Add cycle tracking info.
70         (reset_pipeline_stats): Declare.
71         (halt_pipeline_stats): Declare.
72         (pipeline_stats): Declare.
73         * main.c (done): Call pipeline_stats().
74         * mem.h (rx_mem_ptr): Moved to here ...
75         * mem.c (mem_ptr): ... from here.  Rename throughout.
76         (mem_put_byte): Move LEDs to Port A.  Add Port B to control cycle
77         statistics.  Move UART to SCI4.
78         (mem_put_hi): Add TPU 1-2.  TPU 1 and 2 count CPU cycles.
79         * reg.c (init_regs): Set Rt reg to -1 (no reg).
80         * rx.c: Add cycle counting and statistics throughout.
81         (rx_get_byte): Optimize for speed.
82         (decode_opcode): Likewise.
83         (reset_pipeline_stats): New.
84         (halt_pipeline_stats): New.
85         (pipeline_stats): New.
86         * trace.c (sim_disasm_one): Print cycle count.
87
88 2010-07-07  Kevin Buettner  <kevinb@redhat.com>
89
90         * gdb-if.c (sim_store_register): Add case for sim_rx_acc_regnum.
91
92 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
93
94         * gdb-if.c (trace.h): Include.
95         (reg_size, sim_fetch_register): Add cases for sim_rx_acc_regnum.
96
97 2010-06-07  Nick Clifton  <nickc@redhat.com>
98
99         * reg.c (set_oszc): Use unsigned int for the mask.
100         (set_szc, set_osz, set_sz): Likewise.
101
102 2010-05-28  Kevin Buettner  <kevinb@redhat.com>
103
104         * gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
105
106 2010-04-14  Mike Frysinger  <vapier@gentoo.org>
107
108         * gdb-if.c (sim_write): Add const to buf arg.
109
110 2010-01-30  Masaki Muranaka  <monaka@monami-software.com>
111
112         * configure.in: Check if the host has getopt.h.
113         * configure: Regenerate.
114         * config.in: Regenerate.
115         * main.c: Include config.h.
116         Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H.
117         Include getopt.h in case HAVE_GETOPT_H is defined.
118
119 2009-12-22  Yoshinori Sato  <ysato@users.sourceforge.jp>
120
121         * rx/rx.c (decode_opcode): btst bit address mask fix.
122
123 2009-11-30  DJ Delorie  <dj@redhat.com>
124
125         * rx/rx.c (decode_opcode): fix SWHILE logic.
126
127 2009-10-27  DJ Delorie  <dj@redhat.com>
128             Kevin Buettner <kevinb@redhat.com>
129
130         * load.h: New.
131         * rx.c: New.
132         * syscalls.c: New.
133         * syscalls.h: New.
134         * load.c: New.
135         * configure.in: New.
136         * gdb-if.c: New.
137         * err.c: New.
138         * cpu.h: New.
139         * Makefile.in: New.
140         * fpu.c: New.
141         * mem.c: New.
142         * config.in: New.
143         * err.h: New.
144         * reg.c: New.
145         * mem.h: New.
146         * main.c: New.
147         * misc.h: New.
148         * trace.c: New.
149         * misc.c: New.
150         * syscall.h: New.
151         * trace.h: New.
152         * fpu.h: New.