Commit | Line | Data |
---|---|---|
6803f89b JL |
1 | Wed Oct 30 08:49:10 1996 Jeffrey A Law (law@cygnus.com) |
2 | ||
3 | * simops.c (OP_10007E0): Handle SYS_time. | |
4 | ||
c500c074 JL |
5 | Tue Oct 29 14:22:55 1996 Jeffrey A Law (law@cygnus.com) |
6 | ||
7 | * simops.c: Include <sys/stat.h>. | |
8 | (OP_10007E0): Handle SYS_stat. | |
9 | ||
0a89af6e JL |
10 | Thu Oct 24 12:26:35 1996 Jeffrey A Law (law@cygnus.com) |
11 | ||
c500c074 JL |
12 | * simops.c (OP_10007E0): Don't declare errno. |
13 | ||
f0099789 JL |
14 | * simops.c (OP_500): Mask off low bit in displacement |
15 | for sld.w. | |
16 | (OP_501): Similarly. | |
17 | ||
85c09b05 JL |
18 | * simops.c (OP_500): Fix displacement handling for sld.w. |
19 | (OP_501): Similarly for sst.w. | |
20 | ||
0a89af6e JL |
21 | * simops.c (trace_input): Remove all references to SEXT7. |
22 | (OP_300, OP_400, OP_500, OP_380, OP_480, OP_501): Displacement | |
23 | is zero extended for sst/sld instructions. | |
24 | * v850_sim.h (SEX7): Delete. It's no longer needed (and it | |
25 | was incorrect anyway). | |
26 | ||
96851909 SG |
27 | Thu Oct 24 10:33:33 1996 Stu Grossman (grossman@critters.cygnus.com) |
28 | ||
29 | * Makefile.in: Get rid of srcroot. Set all INSTALL macros via | |
30 | autoconf. | |
31 | * gencode.c (write_opcodes): Pad operands field to account for | |
32 | MSVC braindamage. | |
33 | * simops.c: Include errno.h. Exclude SYS_chown, since MSVC | |
34 | doesn't support it. (Why is this here in the first place?!?) | |
35 | * v850_sim.h: Get rid of 64 bit defs. Also, get rid of #elif's. | |
36 | Change number of operands in struct simops from 9 to 6. Define | |
37 | SIGTRAP and SIGQUIT for MSVC. | |
38 | ||
254ef340 SG |
39 | Tue Oct 15 16:19:51 1996 Stu Grossman (grossman@critters.cygnus.com) |
40 | ||
41 | * interp.c (MEM_SIZE): It's now bytes, not a power of 2. | |
42 | * (map): Add support for external mem in the 1->2 meg range. | |
43 | Also, abort() when memory access is way out of bounds. (Better to | |
44 | die than to give wrong result. (This will be fixed later.)) | |
45 | * (sim_size): MEM_SIZE is now bytes, not shift factor. | |
46 | ||
47 | Tue Oct 1 15:53:24 1996 Gavin Koch <gavin@cygnus.com> | |
48 | ||
49 | * simops.c (trace_input): Swapped order of operands for output | |
50 | output of OP_IMM_REG. Changed the fetching of the operands for | |
51 | OP_LOAD32, and OP_STORE32 to work like op-function. | |
52 | ||
53 | Mon Sep 30 15:46:33 1996 Stu Grossman (grossman@critters.cygnus.com) | |
54 | ||
55 | * interp.c: Move includes of remote-sim.h and callback.h to | |
56 | v850-sim.h. | |
57 | * (lookup_hash): Add PC to report of hash failure. | |
58 | * (map load_mem store_mem): New memory subsystem. Models V851 | |
59 | memory system. | |
60 | * (sim_write sim_read): Use new memory subsystem. | |
61 | * (sim_resume): Don't load and save PC into EIPC anymore. Needed | |
62 | to make user-defined traps work right. | |
63 | * simops.c (OP_*): Use new memory subsystem. | |
64 | * (OP_14007E0 (reti)): Implement reti. | |
65 | * (OP_14996E0 (trap)): Implement user-defined traps. Move I/O to | |
66 | trap 31. Use new memory subsystem. | |
67 | * v850_sim.h: Prototypes for load_mem, store_mem and map. Use | |
68 | load_mem in RLW macro. | |
69 | ||
88777ce2 SG |
70 | Fri Sep 27 18:34:09 1996 Stu Grossman (grossman@critters.cygnus.com) |
71 | ||
72 | * gencode.c (write_opcodes): Output hex values for opcode mask | |
73 | and patterns. | |
74 | * interp.c (sim_resume): Save and restore PC from the appropriate | |
75 | register. | |
76 | * (sim_fetch_register sim_store_register): Fix byte-order problem | |
77 | with reading and writing registers. | |
78 | * simops.c (OP_FFFF): Implement pseudo-breakpoint insn. | |
79 | ||
da86a4fa JL |
80 | Fri Sep 27 17:42:37 1996 Jeffrey A Law (law@cygnus.com) |
81 | ||
82 | * simops.c (trace_input): Fix thinko. | |
83 | ||
84 | Wed Sep 18 09:54:12 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
85 | ||
86 | * simops.c (exec_bfd): Rename from sim_bfd. | |
87 | (trace_input): Ditto. | |
88 | ||
1d00ce83 MM |
89 | Thu Sep 12 12:03:05 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
90 | ||
91 | * simops.c (trace_input): Use find_nearest_line to print line | |
92 | number, function name or file name of PC. | |
93 | ||
ead4a3f1 MM |
94 | Wed Sep 11 16:44:37 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
95 | ||
96 | * simops.c: Add tracing support. Use SEXTxx macros instead of | |
97 | doing hardwired shifts. | |
98 | ||
99 | * configure.in (--enable-sim-cflags): Add switch to add additional | |
100 | flags to simulator buld. If --enable-sim-cflags=trace, turn on | |
101 | tracing. | |
102 | * configure: Regenerate. | |
103 | ||
104 | * Makefile.in: Don't require a VPATH capable make if configuring | |
105 | in the same directory. Don't use CFLAGS for configuration flags. | |
106 | Add flags from --enable-sim-cflags. Support canadian cross | |
107 | builds. Rebuild whole simulator if include files change. | |
108 | ||
109 | * interp.c (v850_debug): New global for debugging. | |
110 | (lookup_hash,sim_size,sim_set_profile): Use | |
111 | printf_filtered callback, instead of calling printf directly. | |
112 | (sim_{open,trace}): Enable tracing if -t and compiled for tracing. | |
113 | ||
114 | * v850_sim.h: Use limits.h to set the various sized types. | |
115 | (SEXT{5,7,16,22}): New macros. | |
116 | ||
9909e232 JL |
117 | Mon Sep 9 20:50:46 1996 Jeffrey A Law (law@cygnus.com) |
118 | ||
119 | * interp.c (hash): Make this an inline function | |
120 | when compiling with GCC. Simplify. | |
121 | * simpos.c: Explicitly include "sys/syscall.h". Remove | |
122 | some #if 0'd code. Enable more emulated syscalls. | |
123 | ||
124 | Wed Sep 4 01:48:55 1996 Jeffrey A Law (law@cygnus.com) | |
125 | ||
126 | * interp.c: Fix sign bit handling for add and sub instructions. | |
127 | ||
d81352b8 JL |
128 | Tue Sep 3 10:20:30 1996 Jeffrey A Law (law@cygnus.com) |
129 | ||
9fca2fd3 JL |
130 | * gencode.c: Fix various indention & style problems. |
131 | Remove test code. Remove #if 0 code. | |
132 | * interp.c: Provide prototypes for all static functions. | |
133 | Fix minor indention problems. | |
134 | (sim_open, sim_resume): Remove unused variables. | |
135 | (sim_read): Return type is "int". | |
136 | * simops.c: Remove unused variables. | |
137 | (divh): Make result of divide-by-zero zero. | |
138 | (setf): Initialize result to keep compiler quiet. | |
139 | (sar instructions): These just clear the overflow bit. | |
140 | * v850_sim.h: Provide prototypes for put_byte, put_half | |
141 | and put_word. | |
142 | ||
d81352b8 JL |
143 | * interp.c: OP should be an array of 32bit operands! |
144 | (v850_callback): Declare. | |
145 | (do_format_5): Fix extraction of OP[0]. | |
146 | (sim_size): Remove debugging printf. | |
147 | (sim_set_callbacks): Do something useful. | |
148 | (sim_stop_reason): Gross hacks to get c-torture running. | |
149 | * simops.c: Simplify code for computing targets of bCC | |
150 | insns. Invert 's' bit if 'ov' bit is set for some | |
151 | instructions. Fix 'cy' bit handling for numerous | |
152 | instructions. Make the simulator stop when a halt | |
153 | instruction is encountered. Very crude support for | |
154 | emulated syscalls (trap 0). | |
155 | * v850_sim.h: Include "callback.h" and declare | |
156 | v850_callback. Items in the operand array are 32bits. | |
157 | ||
158 | Sun Sep 1 22:35:35 1996 Jeffrey A Law (law@cygnus.com) | |
159 | ||
160 | * interp.c (sim_resume): Fix code to check for a format 3 | |
161 | opcode. | |
162 | * simops.c: bCC insns only argument is a constant, not a | |
163 | register value (duh...) | |
164 | ||
83fc3bac JL |
165 | Fri Aug 30 10:33:49 1996 Jeffrey A Law (law@cygnus.com) |
166 | ||
787d66bb JL |
167 | * simops.c: Fix "not1" and "set1". |
168 | ||
3046d879 JL |
169 | * simops.c: Don't forget to initialize temp for |
170 | "ld.h" and "ld.w" | |
171 | ||
ba853302 JL |
172 | * interp.c: Remove various debugging printfs. |
173 | ||
0e4ccc58 JL |
174 | * simops.c: Fix satadd, satsub boundary case handling. |
175 | ||
83fc3bac JL |
176 | * interp.c (hash): Fix. |
177 | * interp.c (do_format_8): Get operands correctly and | |
178 | call the target function. | |
179 | * simops.c: Rough cut at "clr1", "not1", "set1", and "tst1". | |
180 | ||
1fe983dc JL |
181 | Thu Aug 29 13:53:29 1996 Jeffrey A Law (law@cygnus.com) |
182 | ||
3cb6bf78 JL |
183 | * interp.c (do_format_4): Get operands correctly and |
184 | call the target function. | |
185 | * simops.c: Rough cut at "sld.b", "sld.h", "sld.w", "sst.b", | |
186 | "sst.h", and "sst.w". | |
187 | ||
28647e4c JL |
188 | * v850_sim.h: The V850 doesn't have split I&D spaces. Change |
189 | accordingly. Remove many unused definitions. | |
190 | * interp.c: The V850 doesn't have split I&D spaces. Change | |
191 | accordingly. | |
192 | (get_longlong, get_longword, get_word): Deleted. | |
193 | (write_longlong, write_longword, write_word): Deleted. | |
194 | (get_operands): Deleted. | |
195 | (get_byte, get_half, get_word): New functions. | |
196 | (put_byte, put_half, put_word): New functions. | |
197 | * simops.c: Remove unused functions. Rough cut at | |
198 | "ld.b", "ld.h", "ld.w", "st.b", "st.h", "st.w" insns. | |
199 | ||
614f1c68 JL |
200 | * v850_sim.h (struct _state): Remove "psw" field. Add |
201 | "sregs" field. | |
202 | (PSW): Remove bogus definition. | |
203 | * simops.c: Change condition code handling to use the psw | |
204 | register within the sregs array. Handle "ldsr" and "stsr". | |
205 | ||
dca41ba7 JL |
206 | * simops.c: Handle "satadd", "satsub", "satsubi", "satsubr". |
207 | ||
e9b6cbac JL |
208 | * interp.c (do_format_5): Get operands correctly and |
209 | call the target function. | |
210 | (sim_resume): Don't do a PC update for format 5 instructions. | |
211 | * simops.c: Handle "jarl" and "jmp" instructions. | |
212 | ||
3095b8df JL |
213 | * simops.c: Fix minor typos. Handle "cmp", "setf", "tst" |
214 | "di", and "ei" instructions correctly. | |
215 | ||
2108e864 JL |
216 | * interp.c (do_format_3): Get operands correctly and call |
217 | the target function. | |
218 | * simops.c: Handle bCC instructions. | |
219 | ||
35404c7d JL |
220 | * simops.c: Add condition code handling to shift insns. |
221 | Fix minor typos in condition code handling for other insns. | |
222 | ||
aabce0f4 JL |
223 | * Makefile.in: Fix typo. |
224 | * simops.c: Add condition code handling to "sub" "subr" and | |
225 | "divh" instructions. | |
226 | ||
0ef0eba5 JL |
227 | * interp.c (hash): Update to be more accurate. |
228 | (lookup_hash): Call hash rather than computing the hash | |
229 | code here. | |
230 | (do_format_1_2): Handle format 1 and format 2 instructions. | |
231 | Get operands correctly and call the target function. | |
232 | (do_format_6): Get operands correctly and call the target | |
233 | function. | |
234 | (do_formats_9_10): Rough cut so shift ops will work. | |
235 | (sim_resume): Tweak to deal with format 1 and format 2 | |
236 | handling in a single funtion. Don't update the PC | |
237 | for format 3 insns. Fix typos. | |
238 | * simops.c: Slightly reorganize. Add condition code handling | |
239 | to "add", "addi", "and", "andi", "or", "ori", "xor", "xori" | |
240 | and "not" instructions. | |
241 | * v850_sim.h (reg_t): Registers are 32bits. | |
242 | (_state): The V850 has 32 general registers. Add a 32bit | |
243 | psw and pc register too. Add accessor macros | |
244 | ||
245 | * Makefile.in, interp.c, v850_sim.h: Bring over endianness | |
246 | changes from the d10v simulator. | |
247 | ||
77553374 JL |
248 | * simops.c: Add shift support. |
249 | ||
e98e3b2c JL |
250 | * simops.c: Add multiply & divide support. Abort for system |
251 | instructions. | |
252 | ||
1fe983dc JL |
253 | * simops.c: Add logicals, mov, movhi, movea, add, addi, sub |
254 | and subr. No condition codes yet. | |
255 | ||
22c1c7dd JL |
256 | Wed Aug 28 13:53:22 1996 Jeffrey A Law (law@cygnus.com) |
257 | ||
258 | * ChangeLog, Makefile.in, configure, configure.in, v850_sim.h, | |
259 | gencode.c, interp.c, simops.c: Created. | |
260 |