ChangeLog-2021 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954
  1. 2021-06-22 Mike Frysinger <vapier@gentoo.org>
  2. * configure.ac: Removed.
  3. * aclocal.m4: Removed.
  4. * configure: Removed.
  5. 2021-06-21 Mike Frysinger <vapier@gentoo.org>
  6. * aclocal.m4: Regenerate.
  7. * configure: Regenerate.
  8. 2021-06-21 Mike Frysinger <vapier@gentoo.org>
  9. * configure: Regenerate.
  10. 2021-06-20 Mike Frysinger <vapier@gentoo.org>
  11. * configure.ac (SIM_AC_COMMON): Delete.
  12. * aclocal.m4, configure: Regenerate.
  13. 2021-06-20 Mike Frysinger <vapier@gentoo.org>
  14. * aclocal.m4: Regenerate.
  15. * configure: Regenerate.
  16. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  17. * aclocal.m4: Regenerate.
  18. * configure: Regenerate.
  19. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  20. * configure: Regenerate.
  21. 2021-06-18 Mike Frysinger <vapier@gentoo.org>
  22. * aclocal.m4, configure: Regenerate.
  23. 2021-06-18 Mike Frysinger <vapier@gentoo.org>
  24. * configure: Regenerate.
  25. 2021-06-18 Mike Frysinger <vapier@gentoo.org>
  26. * interp.c: Include sim-signal.h.
  27. * simops.c: Likewise.
  28. 2021-06-17 Mike Frysinger <vapier@gentoo.org>
  29. * configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
  30. * aclocal.m4, configure: Regenerate.
  31. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  32. * configure: Regenerate.
  33. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  34. * configure: Regenerate.
  35. * config.in: Removed.
  36. 2021-06-15 Mike Frysinger <vapier@gentoo.org>
  37. * config.in, configure: Regenerate.
  38. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  39. * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
  40. * interp.c (sim_open):
  41. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  42. * aclocal.m4, config.in, configure: Regenerate.
  43. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  44. * config.in, configure: Regenerate.
  45. 2021-05-22 John Baldwin <jhb@FreeBSD.org>
  46. * interp.c (sim_create_inferior): Use offsetof in static
  47. assertion.
  48. 2021-05-17 Mike Frysinger <vapier@gentoo.org>
  49. * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
  50. 2021-05-17 Mike Frysinger <vapier@gentoo.org>
  51. * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
  52. (struct sim_state): Delete.
  53. 2021-05-16 Mike Frysinger <vapier@gentoo.org>
  54. * d10v_sim.h, gencode.c: Delete config.h include.
  55. * endian.c: Include defs.h.
  56. * interp.c, simops.c: Replace config.h include with defs.h.
  57. 2021-05-16 Mike Frysinger <vapier@gentoo.org>
  58. * config.in, configure: Regenerate.
  59. 2021-05-14 Mike Frysinger <vapier@gentoo.org>
  60. * Makefile.in: Update path.
  61. * d10v_sim.h: Update include path.
  62. * interp.c: Likewise.
  63. 2021-05-04 Mike Frysinger <vapier@gentoo.org>
  64. * configure: Regenerate.
  65. 2021-05-04 Mike Frysinger <vapier@gentoo.org>
  66. * d10v_sim.h (decode_pc): Delete.
  67. * interp.c (sim_create_inferior): Use BFD_VMA_FMT.
  68. 2021-05-01 Mike Frysinger <vapier@gentoo.org>
  69. * config.in, configure: Regenerate.
  70. 2021-04-26 Mike Frysinger <vapier@gentoo.org>
  71. * aclocal.m4, config.in, configure: Regenerate.
  72. 2021-04-22 Tom Tromey <tom@tromey.com>
  73. * configure, config.in: Rebuild.
  74. 2021-04-22 Tom Tromey <tom@tromey.com>
  75. * Makefile.in (SIM_EXTRA_DEPS): New variable.
  76. (simops.o): Remove.
  77. 2021-04-22 Tom Tromey <tom@tromey.com>
  78. * configure: Rebuild.
  79. 2021-04-21 Mike Frysinger <vapier@gentoo.org>
  80. * aclocal.m4: Regenerate.
  81. 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
  82. * configure: Regenerate.
  83. 2021-04-18 Mike Frysinger <vapier@gentoo.org>
  84. * configure: Regenerate.
  85. 2021-04-18 Mike Frysinger <vapier@gentoo.org>
  86. * interp.c (xfer_mem): Use PRIxTA for printf format.
  87. (sim_write): Cast buffer to (void *).
  88. (sim_open): Add const to p.
  89. * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
  90. * configure: Regenerate.
  91. 2021-04-12 Mike Frysinger <vapier@gentoo.org>
  92. * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
  93. 2021-04-02 Mike Frysinger <vapier@gentoo.org>
  94. * aclocal.m4, configure: Regenerate.
  95. 2021-03-13 Mike Frysinger <vapier@gentoo.org>
  96. * Makefile.in (gencode.o, d10v-opc.o): Call COMPILE_FOR_BUILD.
  97. (gencode): Call LINK_FOR_BUILD.
  98. 2021-03-08 Mike Frysinger <vapier@gentoo.org>
  99. * Makefile.in (gencode): Delete $(BUILD_LIB).
  100. 2021-02-28 Mike Frysinger <vapier@gentoo.org>
  101. * configure: Regenerate.
  102. 2021-02-21 Mike Frysinger <vapier@gentoo.org>
  103. * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
  104. * aclocal.m4, configure: Regenerate.
  105. 2021-02-13 Mike Frysinger <vapier@gentoo.org>
  106. * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
  107. * aclocal.m4, configure: Regenerate.
  108. 2021-02-06 Mike Frysinger <vapier@gentoo.org>
  109. * configure: Regenerate.
  110. 2021-01-11 Mike Frysinger <vapier@gentoo.org>
  111. * config.in, configure: Regenerate.
  112. * interp.c, simops.c: Delete HAVE_STRING_H, HAVE_STRINGS_H,
  113. HAVE_STDLIB_H, and strings.h include.
  114. 2021-01-09 Mike Frysinger <vapier@gentoo.org>
  115. * d10v_sim.h (State): Change to an extern.
  116. * interp.c (State): Define.
  117. 2021-01-09 Mike Frysinger <vapier@gentoo.org>
  118. * configure: Regenerate.
  119. 2021-01-09 Mike Frysinger <vapier@gentoo.org>
  120. * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
  121. * configure: Regenerate.
  122. 2021-01-08 Mike Frysinger <vapier@gentoo.org>
  123. * configure: Regenerate.
  124. 2021-01-04 Mike Frysinger <vapier@gentoo.org>
  125. * configure: Regenerate.
  126. 2017-09-06 John Baldwin <jhb@FreeBSD.org>
  127. * configure: Regenerate.
  128. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  129. * config.in, configure: Regenerate.
  130. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  131. * configure: Regenerate.
  132. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  133. * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
  134. * configure: Regenerate.
  135. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  136. * configure: Regenerate.
  137. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  138. * configure: Regenerate.
  139. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  140. * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
  141. * configure: Regenerate.
  142. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  143. * configure: Regenerate.
  144. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  145. * configure: Regenerate.
  146. 2016-01-09 Mike Frysinger <vapier@gentoo.org>
  147. * config.in, configure: Regenerate.
  148. 2016-01-06 Mike Frysinger <vapier@gentoo.org>
  149. * interp.c (sim_open): Mark argv const.
  150. (sim_create_inferior): Mark argv and env const.
  151. 2016-01-04 Mike Frysinger <vapier@gentoo.org>
  152. * endian.c (get_word): Delete all arch/big endian logic.
  153. (get_longword, write_word, write_longword): Likewise.
  154. 2016-01-03 Mike Frysinger <vapier@gentoo.org>
  155. * interp.c (sim_open): Update sim_parse_args comment.
  156. 2016-01-03 Mike Frysinger <vapier@gentoo.org>
  157. * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
  158. * configure: Regenerate.
  159. 2016-01-02 Mike Frysinger <vapier@gentoo.org>
  160. * configure: Regenerate.
  161. 2015-12-30 Mike Frysinger <vapier@gentoo.org>
  162. * wrapper.c (d10v_reg_store, d10v_reg_fetch): Define.
  163. (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
  164. (sim_store_register): Rename to ...
  165. (d10v_reg_store): ... this. Rename cpu to sd.
  166. (sim_fetch_register): Rename to ...
  167. (d10v_reg_fetch): ... this. Rename cpu to sd.
  168. 2015-12-27 Mike Frysinger <vapier@gentoo.org>
  169. * Makefile.in (SIM_OBJS): Delete sim-hload.o.
  170. 2015-12-26 Mike Frysinger <vapier@gentoo.org>
  171. * config.in, configure: Regenerate.
  172. 2015-11-15 Mike Frysinger <vapier@gentoo.org>
  173. * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
  174. 2015-11-15 Mike Frysinger <vapier@gentoo.org>
  175. * interp.c (sim_open): Delete sim_create_inferior call.
  176. 2015-11-15 Mike Frysinger <vapier@gentoo.org>
  177. * d10v_sim.h (d10v_callback): Delete.
  178. * interp.c (d10v_callback): Delete.
  179. (do_long, do_2_short, do_parallel, set_dmap_register,
  180. set_imap_register, xfer_mem, dmem_addr, imem_addr, sim_info,
  181. sim_create_inferior): Replace d10v_callback->printf_filtered
  182. with sim_io_printf.
  183. (sim_open): Delete d10v_callback assignment.
  184. * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
  185. do_trace_output_finish, trace_output_40, trace_output_32,
  186. trace_output_16, trace_output_void, trace_output_flag, OP_5F20,
  187. OP_5201, OP_27000000, OP_3220, OP_3400, OP_3000, OP_6C1F, OP_6C01,
  188. OP_6E1F, OP_6E01): Replace d10v_callback->printf_filtered with
  189. sim_io_printf and d10v_callback->flush_stdout with
  190. sim_io_flush_stdout.
  191. (OP_5F00): Likewise. Rename d10v_callback to cb.
  192. 2015-11-15 Mike Frysinger <vapier@gentoo.org>
  193. * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
  194. sim-stop.o.
  195. * d10v_sim.h (struct d10v_memory): Delete fault member.
  196. (struct _state): Delete exception member.
  197. * interp.c (lookup_hash): Call sim_engine_halt instead of setting
  198. State.exception.
  199. (do_2_short, do_parallel): Delete State.exception checks.
  200. (sim_size): Mark static.
  201. (map_memory): Call sim_engine_halt instead of returning fault.
  202. Call xcalloc instead of calloc and checking the return.
  203. (dmem_addr): Call sim_engine_halt when phys_size is 0.
  204. (imem_addr): Likewise.
  205. (stop_simulator, sim_stop, sim_stop_reason): Delete.
  206. (sim_resume): Rename to ...
  207. (step_once): ... this. Delete State.exception code and move
  208. siggnal checking to sim_engine_run.
  209. (sim_engine_run): New function.
  210. * simops.c (EXCEPTION): Define.
  211. (move_to_cr): Call EXCEPTION instead of setting State.exception.
  212. (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
  213. OP_6601, OP_6201, OP_6200, OP_33010000, OP_5201, OP_27000000,
  214. OP_2F000000, OP_3220, OP_3200, OP_3400, OP_3000, OP_34000000,
  215. OP_6800, OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000,
  216. OP_6A00, OP_6E1F, OP_6A01, OP_6E01, OP_37010000, OP_5FE0): Likewise.
  217. (OP_5F20): Call sim_engine_halt instead of setting State.exception.
  218. (OP_5F00): Call sim_engine_halt and EXCEPTION instead of setting
  219. State.exception.
  220. 2015-11-15 Mike Frysinger <vapier@gentoo.org>
  221. * d10v_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
  222. (SET_CREG, SET_HW_CREG, SET_PSW_BIT): Pass sd and cpu to move_to_cr.
  223. (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
  224. (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
  225. * endian.c: Change d10v_sim.h include to sim-main.h.
  226. * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
  227. * interp.c (lookup_hash, do_long, do_2_short, do_parallel,
  228. map_memory, set_dmap_register, dmap_register, set_imap_register,
  229. imap_register, sim_d10v_translate_dmap_addr, xfer_mem,
  230. sim_d10v_translate_imap_addr, sim_d10v_translate_addr): Add
  231. SIM_DESC and SIM_CPU args and adjust all callers.
  232. (trace_sd): Delete.
  233. (sim_open): Do not assign trace_sd.
  234. (sim_resume, sim_create_inferior, sim_fetch_register,
  235. sim_store_register): Set up cpu from the first one in sd.
  236. * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
  237. (trace_input_func, trace_input, do_trace_output_finish,
  238. do_trace_output_finish, trace_output_40, trace_output_32,
  239. trace_output_16, trace_output_void, trace_output_flag): Add
  240. SIM_DESC arg.
  241. (trace_input_func): Likewise. Change trace_sd to sd.
  242. (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
  243. 2015-11-14 Mike Frysinger <vapier@gentoo.org>
  244. * interp.c (sim_close): Delete.
  245. 2015-11-10 Mike Frysinger <vapier@gentoo.org>
  246. * interp.c (sim_d10v_translate_dmap_addr): Mark static.
  247. (sim_d10v_translate_imap_addr): Likewise.
  248. (sim_d10v_translate_addr): Likewise.
  249. 2015-06-23 Mike Frysinger <vapier@gentoo.org>
  250. * configure: Regenerate.
  251. 2015-06-12 Mike Frysinger <vapier@gentoo.org>
  252. * configure: Regenerate.
  253. 2015-06-12 Mike Frysinger <vapier@gentoo.org>
  254. * configure: Regenerate.
  255. 2015-04-18 Mike Frysinger <vapier@gentoo.org>
  256. * sim-main.h (SIM_CPU): Delete.
  257. 2015-04-18 Mike Frysinger <vapier@gentoo.org>
  258. * sim-main.h (sim_cia): Delete.
  259. 2015-04-17 Mike Frysinger <vapier@gentoo.org>
  260. * sim-main.h (CIA_GET, CIA_SET): Delete.
  261. 2015-04-17 Mike Frysinger <vapier@gentoo.org>
  262. * interp.c (d10v_pc_get, d10v_pc_set): New functions.
  263. (sim_open): Declare new local var i. Call CPU_PC_FETCH &
  264. CPU_PC_STORE for all cpus.
  265. 2015-04-15 Mike Frysinger <vapier@gentoo.org>
  266. * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
  267. * sim-main.h (STATE_CPU): Delete.
  268. 2015-04-13 Mike Frysinger <vapier@gentoo.org>
  269. * configure: Regenerate.
  270. 2015-04-06 Mike Frysinger <vapier@gentoo.org>
  271. * Makefile.in (SIM_OBJS): Delete sim-engine.o.
  272. 2015-04-02 Mike Frysinger <vapier@gentoo.org>
  273. * interp.c (lookup_hash): Change SIGILL to GDB_SIGNAL_ILL.
  274. (sim_resume): Change SIGBUS/SIGSEGV to GDB_SIGNAL_BUS, SIGILL to
  275. GDB_SIGNAL_ILL, and SIGTRAP to GDB_SIGNAL_TRAP.
  276. 2015-04-01 Mike Frysinger <vapier@gentoo.org>
  277. * interp.c (sim_set_profile, sim_set_profile_size): Delete.
  278. 2015-03-31 Mike Frysinger <vapier@gentoo.org>
  279. * Makefile.in (simops.o): New rule.
  280. 2015-03-30 Mike Frysinger <vapier@gentoo.org>
  281. * d10v_sim.h (text, text_start, text_end, prog_bfd): Delete.
  282. (SEXT8, SEXT16, SEXT32, MASK32): Undefine.
  283. * interp.c: Delete run-sim.h and d10v_sim.h includes. Include
  284. sim-main.h and sim-options.h.
  285. (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
  286. text, text_start, text_end, decode_pc, sim_set_profile,
  287. sim_set_profile_size, sim_set_trace, sim_set_callbacks,
  288. sim_trace, sim_do_command, sim_load): Delete.
  289. (INLINE): Delete define.
  290. (free_state): New function.
  291. (trace_sd): Declare global variable.
  292. (sim_open): Rewrite to use new common logic.
  293. (sim_close): Delete body.
  294. * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
  295. (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
  296. * sim-main.h: New file.
  297. * simops.c: Change d10v_sim.h include to sim-main.h.
  298. (trace_input_func): Rewrite pc checks to use trace_sd.
  299. 2015-03-30 Mike Frysinger <vapier@gentoo.org>
  300. * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
  301. * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
  302. ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
  303. (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
  304. 2015-03-30 Mike Frysinger <vapier@gentoo.org>
  305. * Makefile.in (gencode.o, d10v-opc.o): Add $(WARN_CFLAGS).
  306. (gencode): Add $(BUILD_LDFLAGS).
  307. * endian.c (get_word, get_longword, get_longlong, write_word,
  308. write_longword, write_longlong): Convert old style prototypes.
  309. * gencode.c: Include string.h.
  310. (main): Convert old style prototype.
  311. (write_header): Convert old style prototype and fix printf format.
  312. (write_template, write_opcodes): Likewise.
  313. (check_opcodes): Mark static void.
  314. * interp.c: Include inttypes.h and run-sim.h.
  315. (hash, lookup_hash, decode_pc, do_long, do_2_short, do_parallel,
  316. add_commas, sim_size, sim_write, sim_read, sim_open, sim_close,
  317. sim_set_profile, sim_set_profile_size, sim_stop, +sim_resume,
  318. sim_info, sim_set_callbacks, sim_stop_reason, sim_fetch_register,
  319. sim_store_register, sim_do_command, sim_load): Convert old style
  320. prototypes.
  321. (sim_create_inferior): Fix pointer cast to use uintptr_t.
  322. * simops.c (strrchr): Delete prototype.
  323. (trace_input_func): Mark name static.
  324. (trace_input_func, trace_output_void, trace_output_flag): Convert old style
  325. prototypes.
  326. (OP_*): Convert old style prototypes.
  327. 2015-03-30 Mike Frysinger <vapier@gentoo.org>
  328. * Makefile.in (interp.o, simops.o, endian.o, table.o): Delete rules.
  329. * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
  330. SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
  331. SIM_AC_OPTION_INLINE.
  332. * config.in, configure: Regenerate.
  333. * interp.c (sim_trace): Define.
  334. 2015-03-16 Mike Frysinger <vapier@gentoo.org>
  335. * config.in, configure: Regenerate.
  336. 2015-03-14 Mike Frysinger <vapier@gentoo.org>
  337. * Makefile.in (SIM_EXTRA_CFLAGS): Add
  338. -DSIM_USE_DEPRECATED_RUN_FRONTEND.
  339. (SIM_RUN_OBJS): Set to run.o.
  340. 2015-03-14 Mike Frysinger <vapier@gentoo.org>
  341. * configure.ac (AC_CHECK_HEADERS): Delete.
  342. * aclocal.m4, configure: Regenerate.
  343. 2014-08-19 Alan Modra <amodra@gmail.com>
  344. * configure: Regenerate.
  345. 2014-08-15 Roland McGrath <mcgrathr@google.com>
  346. * configure: Regenerate.
  347. * config.in: Regenerate.
  348. 2014-03-10 Mike Frysinger <vapier@gentoo.org>
  349. * interp.c (sim_do_command): Add const to cmd.
  350. 2014-03-05 Mike Frysinger <vapier@gentoo.org>
  351. * interp.c (sim_load): Add const to prog.
  352. 2014-03-04 Mike Frysinger <vapier@gentoo.org>
  353. * configure: Regenerate.
  354. 2013-09-23 Alan Modra <amodra@gmail.com>
  355. * configure: Regenerate.
  356. 2013-06-03 Mike Frysinger <vapier@gentoo.org>
  357. * aclocal.m4, configure: Regenerate.
  358. 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
  359. * configure: Rebuild.
  360. 2012-06-19 Joel Brobecker <brobecker@adacore.com>
  361. * interp.c: #include "config.h" instead of "sysdep.h".
  362. Add conditional include of string.h or strings.h, as well as
  363. conditional include of stdlib.h.
  364. 2012-06-15 Joel Brobecker <brobecker@adacore.com>
  365. * config.in, configure: Regenerate.
  366. 2012-05-24 Pedro Alves <palves@redhat.com>
  367. PR gdb/7205
  368. Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
  369. 2012-03-24 Mike Frysinger <vapier@gentoo.org>
  370. * aclocal.m4, config.in, configure: Regenerate.
  371. 2011-12-03 Mike Frysinger <vapier@gentoo.org>
  372. * aclocal.m4: New file.
  373. * configure: Regenerate.
  374. 2011-10-17 Mike Frysinger <vapier@gentoo.org>
  375. * configure.ac: Change include to common/acinclude.m4.
  376. 2011-10-17 Mike Frysinger <vapier@gentoo.org>
  377. * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
  378. call. Replace common.m4 include with SIM_AC_COMMON.
  379. * configure: Regenerate.
  380. 2010-04-14 Mike Frysinger <vapier@gentoo.org>
  381. * interp.c (sim_write): Add const to buffer arg.
  382. 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  383. * configure: Regenerate.
  384. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  385. * config.in: Regenerate.
  386. * configure: Likewise.
  387. * configure: Regenerate.
  388. 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
  389. * configure: Regenerate to track ../common/common.m4 changes.
  390. * config.in: Ditto.
  391. 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
  392. Daniel Jacobowitz <dan@codesourcery.com>
  393. Joseph Myers <joseph@codesourcery.com>
  394. * configure: Regenerate.
  395. 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
  396. * acconfig.h: Remove.
  397. * config.in: Regenerate.
  398. 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
  399. * configure: Regenerated.
  400. 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
  401. * configure: Regenerated.
  402. 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
  403. * configure: Regenerated.
  404. 2006-04-18 Nick Clifton <nickc@redhat.com>
  405. * interp.c (sim_stop_reason): Fix typo.
  406. 2005-11-28 Mark Mitchell <mark@codesourcery.com>
  407. * interp.c (gdb/signals.h): Include it.
  408. (sim_stop_reason): Use TARGET_SIGNAL_*.
  409. 2005-03-23 Mark Kettenis <kettenis@gnu.org>
  410. * configure: Regenerate.
  411. 2005-01-14 Andrew Cagney <cagney@gnu.org>
  412. * configure.ac: Sinclude aclocal.m4 before common.m4. Add
  413. explicit call to AC_CONFIG_HEADER.
  414. * configure: Regenerate.
  415. 2005-01-12 Andrew Cagney <cagney@gnu.org>
  416. * configure.ac: Update to use ../common/common.m4.
  417. * configure: Re-generate.
  418. 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
  419. * configure: Regenerated to track ../common/aclocal.m4 changes.
  420. 2005-01-07 Andrew Cagney <cagney@gnu.org>
  421. * configure.ac: Rename configure.in, require autoconf 2.59.
  422. * configure: Re-generate.
  423. 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
  424. * configure: Regenerate for ../common/aclocal.m4 update.
  425. 2004-06-28 Andrew Cagney <cagney@gnu.org>
  426. * interp.c (sim_resume): Rename ui_loop_hook to
  427. deprecated_ui_loop_hook.
  428. 2003-10-30 Andrew Cagney <cagney@redhat.com>
  429. * simops.c: Replace "struct symbol_cache_entry" with "struct
  430. bfd_symbol".
  431. 2003-06-22 Andrew Cagney <cagney@redhat.com>
  432. * interp.c (xfer_mem): Simplify. Only do a single partial
  433. transfer. Problem reported by Tom Rix.
  434. 2003-05-07 Andrew Cagney <cagney@redhat.com>
  435. * interp.c (sim_d10v_translate_addr): Add "regcache" parameter.
  436. (sim_d10v_translate_imap_addr): Ditto.
  437. (sim_d10v_translate_dmap_addr): Ditto.
  438. (xfer_mem): Pass NULL regcache to sim_d10v_translate_addr.
  439. (dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr.
  440. (dmap_register, imap_register): Add "regcache" parameter.
  441. (imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr.
  442. (sim_fetch_register): Pass NULL regcache to imap_register and
  443. dmap_register.
  444. 2003-02-27 Andrew Cagney <cagney@redhat.com>
  445. * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
  446. 2002-11-13 Andrew Cagney <cagney@redhat.com>
  447. * simops.c: Include <string.h>.
  448. 2002-06-17 Andrew Cagney <cagney@redhat.com>
  449. * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
  450. 2002-06-16 Andrew Cagney <ac131313@redhat.com>
  451. * configure: Regenerated to track ../common/aclocal.m4 changes.
  452. 2002-06-13 Tom Rix <trix@redhat.com>
  453. * interp.c (xfer_mem): Fix transfers across multiple segments.
  454. 2002-06-09 Andrew Cagney <cagney@redhat.com>
  455. * Makefile.in (INCLUDE): Update path to callback.h.
  456. * gencode.c: Do not include "callback.h".
  457. * d10v_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
  458. * interp.c: Ditto.
  459. 2002-06-08 Andrew Cagney <cagney@redhat.com>
  460. * interp.c (sim_fetch_register): Fix name of enum used in cast.
  461. (sim_store_register): Ditto.
  462. 2002-06-02 Elena Zannoni <ezannoni@redhat.com>
  463. From Jason Eckhardt <jle@redhat.com>
  464. * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
  465. less than MOD_S (post-decrement).
  466. 2002-06-01 Andrew Cagney <ac131313@redhat.com>
  467. * interp.c (sim_fetch_register, sim_store_register): Use a switch
  468. statement and enums from "sim-d10v.h".
  469. 2002-05-28 Elena Zannoni <ezannoni@redhat.com>
  470. * interp.c (sim_create_inferior): Add comment.
  471. From Alan Matsuoka <alanm@redhat.com>:
  472. From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
  473. * simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
  474. (OP_4401): Output "mvf0t" instead of "mf0t".
  475. (OP_460B): Do not output a flag register.
  476. (OP_4609): Do not output a flag register.
  477. 2002-05-23 Andrew Cagney <ac131313@redhat.com>
  478. * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
  479. * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
  480. 2001-08-01 John R. Moore <jmoore@redhat.com>
  481. * interp.c (sim_create_inferior): Removed a hack that stated
  482. it was setting r0/r1 with argc/argv.
  483. 2001-04-15 J.T. Conklin <jtc@redback.com>
  484. * Makefile.in (simops.o): Add simops.h to dependency list.
  485. Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
  486. * configure: Regenerated to track ../common/aclocal.m4 changes.
  487. Tue Apr 18 16:26:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
  488. * interp.c (sim_resume): Deliver SIGILL.
  489. (lookup_hash): Do not print SIGILL message.
  490. Tue Feb 22 18:24:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
  491. * Makefile.in (SIM_EXTRA_CFLAGS): Define SIM_HAVE_ENVIRONMENT.
  492. * interp.c (sim_set_trace): Replace sim_trace. Enable tracing.
  493. Tue Feb 8 17:41:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
  494. * d10v_sim.h (SIG_D10V_BUS): Define.
  495. * simops.c (address_exception): Delete function.
  496. (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
  497. OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
  498. OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
  499. OP_6E1F, OP_6A01, OP_6E01, OP_37010000): Replace call to
  500. address_exception with code that sets SIG_D10V_BUS.
  501. * interp.c (sim_resume): When SIGBUS or SIGSEGV, deliver a bus
  502. error to the simulator before resuming execution.
  503. (sim_trace): Check stop reason and use that to determine sim_trace
  504. return value.
  505. (sim_stop_reason): For SIG_D10V_BUS return a SIGBUS / SIGSEGV
  506. sigrc.
  507. Tue Jan 18 16:07:42 MST 2000 Diego Novillo <dnovillo@cygnus.com>
  508. * interp.c (sim_create_inferior): Change internal initial value for
  509. DMAP2 to 0x2000.
  510. Mon Jan 3 02:06:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
  511. * interp.c (lookup_hash): Stop the update of the PC when there was
  512. an illegal instruction exception.
  513. Mon Jan 3 00:14:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
  514. * simops.c (address_exception): New function.
  515. (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
  516. OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
  517. OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
  518. OP_6E1F, OP_6A01, OP_6E01, OP_37010000): For "ld", "ld2w", "st"
  519. and "st2w" check that the address is aligned.
  520. 1999-12-30 Chandra Chavva <cchavva@cygnus.com>
  521. * d10v_sim.h (INC_ADDR): Added code to assign
  522. proper address for loads with predec operations.
  523. 1999-11-25 Nick Clifton <nickc@cygnus.com>
  524. * simops.c (OP_4E0F): New function: Simulate new bit pattern for
  525. cpfg instruction.
  526. Fri Oct 29 18:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
  527. * simops.c (move_to_cr): Don't allow user to set PSW.DM in either
  528. DPSW and BPSW.
  529. Thu Oct 28 01:26:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
  530. * simops.c (OP_5F20): Use SET_HW_PSW when updating PSW.
  531. (PSW_HW_MASK): Declare.
  532. * d10v_sim.h (move_to_cr): Add ``psw_hw_p'' parameter.
  533. (SET_CREG, SET_PSW_BIT): Update.
  534. (SET_HW_CREG, SET_HW_PSW): Define.
  535. Sun Oct 24 21:38:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
  536. * interp.c (sim_d10v_translate_dmap_addr): Fix extraction of IOSP
  537. for DMAP3.
  538. Sun Oct 24 16:04:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
  539. * interp.c (sim_d10v_translate_addr): New function.
  540. (xfer_mem): Rewrite. Use sim_d10v_translate_addr.
  541. (map_memory): Make INLINE.
  542. Sun Oct 24 13:45:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
  543. * interp.c (sim_d10v_translate_dmap_addr): New function.
  544. (dmem_addr): Rewrite. Use sim_d10v_translate_dmap_addr. Change
  545. offset parameter to type uint16.
  546. * d10v_sim.h (dmem_addr): Update declaration.
  547. Sun Oct 24 13:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
  548. * interp.c (imap_register, set_imap_register, dmap_register,
  549. set_imap_register): Use map_memory.
  550. (DMAP): Update.
  551. (sim_create_inferior): Initialize all DMAP registers. NOTE that
  552. DMAP2, in internal memory mode, is set to 0x0000 and NOT
  553. 0x2000. This is consistent with the older d10v boards.
  554. Sun Oct 24 11:22:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
  555. * interp.c (sim_d10v_translate_imap_addr): New function.
  556. (imem_addr): Rewrite. Use sim_d10v_translate_imap_addr.
  557. (last_from, last_to): Declare.
  558. Sun Oct 24 01:21:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
  559. * d10v_sim.h (struct d10v_memory): Define. Support very long
  560. memories.
  561. (struct _state): Replace imem, dmem and umem by mem.
  562. (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE, IMEM_SEGMENTS,
  563. DMEM_SEGMENTS, UMEM_SEGMENTS): Define.
  564. * interp.c (map_memory): New function.
  565. (sim_size, xfer_memory, imem_addr, dmem_addr): Update.
  566. (UMEM_SEGMENTS): Moveed to "d10v_sim.h".
  567. (IMEM_SIZEDMEM_SIZE): Delete.
  568. Sat Oct 23 20:06:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
  569. * interp.c: Include "sim-d10v.h".
  570. (imap_register, set_imap_register, dmap_register,
  571. set_dmap_register, spi_register, spu_register, set_spi_register,
  572. set_spu_register): New functions.
  573. (sim_create_inferior): Update.
  574. (sim_fetch_register, sim_store_register): Rewrite. Use enums
  575. defined in sim-d10v.h.
  576. * d10v_sim.h (DEBUG_MEMORY): Define.
  577. (IMAP0, IMAP1, DMAP, SET_IMAP0, SET_IMAP1, SET_DMAP): Delete.
  578. Sat Oct 23 18:41:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
  579. * interp.c (sim_open): Allow a debug value to be passed to the -t
  580. option.
  581. (lookup_hash): Don't exit on an illegal instruction.
  582. (do_long, do_2_short, do_parallel): Check for failed instruction
  583. lookup.
  584. Mon Oct 18 18:03:24 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
  585. * simops.c (OP_3220): Fix trace output for illegal accumulator
  586. message.
  587. 1999-09-14 Nick Clifton <nickc@cygnus.com>
  588. * simops.c: Disable setting of DM bit in PSW.
  589. Wed Sep 8 19:34:55 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
  590. * simops.c (op_types): Added new memory indirect type OP_MEMREF3.
  591. (trace_input_func): Added support for OP_MEMREF3.
  592. (OP_32010000): New instruction ld.
  593. (OP_33010000): New instruction ld2w.
  594. (OP_5209): New instruction sac.
  595. (OP_4209): New instruction sachi.
  596. (OP_3220): New instruction slae.
  597. (OP_36010000): New instruction st.
  598. (OP_37010000): New instruction st2w.
  599. 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
  600. * interp.c (old_segment_mapping): New global.
  601. (xfer_mem): Change the default segment mapping to be the way
  602. that Mitsubishi prefers, but use the previous mapping if
  603. old_segment_mapping is true.
  604. (sim_open): Add an option -oldseg to get the old mapping.
  605. (sim_create_inferior): Init mapping registers based on the
  606. value of old_segment_mapping.
  607. 1999-09-07 Nick Clifton <nickc@cygnus.com>
  608. * simops.c (OP_6601): Do not write back decremented address if
  609. either of the destination registers was the same as the address
  610. register.
  611. (OP_6201): Do not write back incremented address if either of the
  612. destination registers was the same as the address register.
  613. Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
  614. * configure: Regenerated to track ../common/aclocal.m4 changes.
  615. 1999-05-08 Felix Lee <flee@cygnus.com>
  616. * configure: Regenerated to track ../common/aclocal.m4 changes.
  617. 1999-04-02 Keith Seitz <keiths@cygnus.com>
  618. * interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK
  619. defined).
  620. (sim_resume): If the counter has expired, call the ui_loop_hook,
  621. if defined.
  622. (UI_LOOP_POLL_INTERVAL): Define. Used to tweak the frequency of
  623. ui_loop_hook calls.
  624. * Makefile.in (SIM_EXTRA_CFLAGS): Include NEED_UI_LOOP_HOOK.
  625. Wed Mar 10 19:32:13 1999 Nick Clifton <nickc@cygnus.com>
  626. * simops.c: If load instruction with auto increment/decrement
  627. addressing is used when the destination register is the same as
  628. the address register, then ignore the auto increment/decrement.
  629. Wed Mar 10 19:32:13 1999 Martin M. Hunt <hunt@cygnus.com>
  630. * simops.c (OP_5F00): Ifdef SYS_stat case because
  631. not all systems have it defined.
  632. 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
  633. * simops.c (OP_5607): Correct saturation comparison/assignment.
  634. (OP_1201, OP_1203, OP_17001200, OP_17001202,
  635. OP_2A00, OP_2800, OP_2C00, OP_3200, OP_3201,
  636. OP_1001, OP_1003, OP_17001000, OP_17001002): Ditto.
  637. 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
  638. * simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation
  639. comparison.
  640. (OP_5607): Ditto.
  641. (OP_2A00): Ditto.
  642. (OP_2800): Ditto.
  643. 1999-01-13 Jason Molenda (jsm@bugshack.cygnus.com)
  644. * simops.c (OP_1223): Sign extend MIN32 and MAX32 before saturation
  645. comparison.
  646. Tue Nov 24 17:04:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
  647. * simops.c (sys/syscall.h): Include targ-vals.h instead.
  648. (SYS_*): Replace with TARGET_SYS_*.
  649. * Makefile.in: Add dependency on targ-vals.h.
  650. (NL_TARGET): Define as NL_TARGET_d10v.
  651. Wed Sep 30 00:06:32 1998 Andrew Cagney <cagney@amy.cygnus.com>
  652. * interp.c (xfer_mem): Missing break, instruction memory case
  653. flowed into unified memory case.
  654. Wed Sep 30 10:14:18 1998 Nick Clifton <nickc@cygnus.com>
  655. * simops.c: If load instruction with auto increment/decrement
  656. addressing is used when the destination register is the same as
  657. the address register, then ignore the auto increment/decrement.
  658. Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
  659. * configure: Regenerated to track ../common/aclocal.m4 changes.
  660. Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
  661. * configure: Regenerated to track ../common/aclocal.m4 changes.
  662. * config.in: Ditto.
  663. Sun Apr 26 15:20:23 1998 Tom Tromey <tromey@cygnus.com>
  664. * acconfig.h: New file.
  665. * configure.in: Reverted change of Apr 24; use sinclude again.
  666. Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
  667. * configure: Regenerated to track ../common/aclocal.m4 changes.
  668. * config.in: Ditto.
  669. Fri Apr 24 11:20:06 1998 Tom Tromey <tromey@cygnus.com>
  670. * configure.in: Don't call sinclude.
  671. Fri Apr 24 11:04:46 1998 Andrew Cagney <cagney@chook.cygnus.com>
  672. * interp.c (struct hash_entry): OPCODE and MASK are unsigned.
  673. * d10v_sim.h (remote-sim.h, sim-config.h): Include.
  674. Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
  675. * configure: Regenerated to track ../common/aclocal.m4 changes.
  676. Wed Apr 1 12:59:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
  677. * simops.c (trace_input_func): Use move_from_cr / CREGS to obtain
  678. up-to-date CR value.
  679. (OP_OP_1000000, add3): Trace inputs before performing add.
  680. (OP_5F00, <*>): Trace input registers before making system call.
  681. (OP_5F00, <kill>): Trace R0, R1 not REGn.
  682. (OP_5F00, <getpid>): Always return 47.
  683. * d10v_sim.h (SLOT, SLOT_NR, SLOT_PEND_MASK, SLOT_PEND,
  684. SLOT_DISCARD, SLOT_FLUSH): Define. An implementation of write
  685. back slots.
  686. (struct _state): Add struct slot slot to global state variable.
  687. (struct _state): Delete fields SM, EA, DB, DM, IE, RP, MD, FX, ST,
  688. F0, F1, C from global State variable.
  689. (struct _state): Add struct trace to global State variable.
  690. (GPR, SET_GPR): Define. SET_GPR uses SLOT_PEND.
  691. (PSW*, SET_PSW*): Define. SET_PSW* uses SET_CREG.
  692. (CREG, SET_CREG, SET_*): Define. SET_CREG uses func move_to_cr.
  693. (INC_ADDR): Re-implement. Use SET_GPR to update registers.
  694. (JMP): Re-implement. Use SET_* to update registers.
  695. * interp.c: Use new SET_* et.al. macros to fetch / store
  696. registers.
  697. (get_operands): Squirrel away trace values at start of each
  698. operand decode.
  699. (do_2_short): Flush pending writes before issuing second
  700. instruction.
  701. (sim_resume): Flush pending writes at end of instruction cycle.
  702. (sim_fetch_register, sim_store_register, sim_create_inferior):
  703. After scheduling updates to registers using SET_*, flush updates.
  704. (sim_resume): Re-order handling of RPT/repeat and IBA/hbreak so
  705. that each sets pc using SET_* and last SET_* eventually winds out.
  706. * simops.c: Use new SET_* et.al. macros to fetch / store
  707. registers.
  708. (move_to_cr): Add MASK argument for selective update of CREG bits.
  709. Re-implement using new SET_* macros.
  710. (trace_output_func, trace_output): Delete. Replace with.
  711. (do_trace_output_flush, trace_output_finish, trace_output_40,
  712. trace_output_32, trace_output_16, trace_output_void,
  713. trace_output_flag): New functions. Handle specific trace cases.
  714. (OP_*): Re-write tracing to use new trace_output_* functions.
  715. (OP_*): Re-write to use new SET_* et.al. macros.
  716. (FUNC, PARM[1-4], RETVAL, RETVAL32): Redo definition.
  717. (RETVAL_HIGH, RETVAL_LOW): Delete, use RETVAL32.
  718. Wed Apr 1 12:55:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
  719. * configure.in (SIM_AC_OPTION_WARNINGS): Add.
  720. configure: Re-generate.
  721. Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
  722. * configure: Regenerated to track ../common/aclocal.m4 changes.
  723. Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
  724. * configure: Regenerated to track ../common/aclocal.m4 changes.
  725. Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
  726. * configure: Regenerated to track ../common/aclocal.m4 changes.
  727. Tue Feb 17 12:38:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
  728. * interp.c (sim_store_register, sim_fetch_register): Pass in
  729. length parameter. Return -1.
  730. Mon Oct 27 14:43:33 1997 Fred Fish <fnf@cygnus.com>
  731. * (dmem_addr): If address is illegal or in I/O space, signal a bus
  732. error. Allocate unified memory on demand. Fix DMEM address
  733. calculations.
  734. Mon Feb 16 10:27:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
  735. * simops.c (OP_5F20): Implement "dbt".
  736. (OP_5F60): Implement "rtd".
  737. * d10v_sim.h (DPC_CR): Define enum.
  738. (DBT_VECTOR_START): Define
  739. (DPSW, DPC): Define.
  740. Fri Feb 13 15:15:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
  741. * simops.c (move_to_cr): Sync regs[SP_IDX] with State.sp according
  742. to PSW:SM.
  743. * d10v_sim.h (struct _state): Add sp, as holding area for SPI/SPU.
  744. (SP_IDX): Define.
  745. Wed Feb 11 16:53:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
  746. * simops.c (OP_5F00): Call error instead of abort for unknown
  747. syscalls.
  748. * d10v_sim.h (enum): Define DPSW_CR.
  749. * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW.
  750. Tue Feb 10 18:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
  751. * interp.c (sim_write_phys): Delete.
  752. (sim_load): Call sim_load_file with sim_write and LMA.
  753. Mon Feb 9 12:05:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
  754. * interp.c: Rewrite xfer_mem so that it translates addresses as -
  755. 0x00... - DMAP translated memory, 0x01... IMAP translated memory,
  756. 0x10... - on-chip data, 0x11... - on-chip insn, 0x12... - unified
  757. memory.
  758. (pc_addr): Delete.
  759. (imem_addr): New function - translate IMEM address.
  760. (sim_resume): Use imem_addr to translate insn address, abort if
  761. translation failed.
  762. (sim_create_inferior): Write ARGV to memory using sim_write. Pass
  763. argc/argv using r0/r1 not r2/r3.
  764. (sim_size): Do not initialize IMAP/DMAP here.
  765. (sim_open): Call sim_create_inferior and sim_size to initialize
  766. the system.
  767. (sim_create_inferior): Initialize IMAP/DMAP to hardware reset
  768. defaults.
  769. (init_system): Delete.
  770. (xfer_mem, sim_fetch_register, sim_store_register): Do not call
  771. init_system.
  772. (decode_pc): Check prog_bfd is defined before looking up .text
  773. section.
  774. Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
  775. * configure: Regenerated to track ../common/aclocal.m4 changes.
  776. Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
  777. * configure: Regenerated to track ../common/aclocal.m4 changes.
  778. Sun Jan 25 22:23:01 1998 Michael Meissner <meissner@cygnus.com>
  779. * interp.c (sim_stop_reason): Exit status is now in r0, not r2.
  780. Sat Jan 24 19:00:30 1998 Michael Meissner <meissner@cygnus.com>
  781. * d10v_sim.h (DEBUG_TRAP): New debug flag.
  782. * simops.c (OP_5F00): If DEBUG_TRAP is on, turn traps 0-14 into
  783. printing the registers.
  784. Thu Jan 22 17:54:01 1998 Michael Meissner <meissner@cygnus.com>
  785. * simops.c (op_types): New ABI, args are r0..r3, system call # is
  786. in r4.
  787. (trace_{in,out}put_func): Ditto.
  788. (OP_4900): Ditto.
  789. (OP_24800000): Ditto.
  790. (OP_4D00): Ditto.
  791. (OP_5F00): Ditto.
  792. Thu Jan 22 14:30:36 1998 Fred Fish <fnf@cygnus.com>
  793. * interp.c (UMEM_SEGMENTS): New define, set to 128.
  794. (sim_size): Use UMEM_SEGMENTS rather than hardwired constant.
  795. (sim_close): Reset prog_bfd to NULL after closing it. Also
  796. reset prog_bfd_was_opened_p after closing prog_bfd.
  797. (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd.
  798. (sim_create_inferior): Get start address from abfd not prog_bfd.
  799. (xfer_mem): Do bounds checking on addresses and return zero length
  800. read/write on bad addresses, rather than aborting. Prepare to
  801. be able to handle xfers that cross segment boundaries, but not
  802. yet implemented. Only emit debug message when d10v_debug is
  803. set as well as DEBUG being defined.
  804. Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
  805. * configure: Regenerated to track ../common/aclocal.m4 changes.
  806. Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
  807. * configure: Regenerated to track ../common/aclocal.m4 changes.
  808. * config.in: Ditto.
  809. Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
  810. * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR.
  811. (BPSW): Ditto for BPSW_CR and not PSW_CR.
  812. * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly.
  813. Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
  814. * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change
  815. reserved trap from 0 to 15. Add trap emulation code for 0-14.
  816. * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check
  817. IBA for SDBT.
  818. * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START,
  819. SDBT_VECTOR_START, TRAP_VECTOR_START): Define.
  820. * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW,
  821. use move_to_cr.
  822. (OP_5F00): For "trap", update BPSW with move_to_cr.
  823. Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
  824. * d10v_sim.h (enum): Enumerate CR register names.
  825. (enum): Enumerate PSW bit values.
  826. (PSW): Obtain value uing move_from_cr.
  827. (MOD_S, MOD_E, BPSW): Make r-values.
  828. (move_from_cr, move_to_cr): Declare functions.
  829. * interp.c (sim_fetch_register, sim_store_register): Use
  830. move_from_cr and move_to_cr for CR register transfers.
  831. * simops.c (move_from_cr, move_to_cr): New functions.
  832. (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr.
  833. (OP_5600): For "mvtc", use function move_to_cr.
  834. (OP_5200): For "mvfc", use function move_from_cr.
  835. Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
  836. * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the
  837. LSbit is zero.
  838. Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
  839. * configure: Regenerated to track ../common/aclocal.m4 changes.
  840. Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
  841. * d10v_sim.h (struct _state): Add DM - PSW debug mask.
  842. * simops.c (OP_5600): For "mvtc", save PSW.DM.
  843. (OP_5200): Ditto for "mvfc".
  844. Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
  845. * d10v_sim.h (SEXT56): Define.
  846. * simops.c (OP_4201): For "rac", sign extend 56 bit value before
  847. it is shifted.
  848. * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
  849. SIGNED64 macro.
  850. Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com>
  851. * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
  852. RIGHT_FIRST, as appropriate, instead of hardcoded ints that
  853. don't match enum values.
  854. Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
  855. * simops.c (OP_3A00): For "macu", perform multiply stage using 32
  856. bit rather than 16 bit precision.
  857. (OP_3C00): For "mulxu", store unsigned product in ACC.
  858. (OP_3800): For "msbu", subtract unsigned product from ACC,
  859. (OP_0): For "sub", compute carry by comparing inputs.
  860. Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
  861. * simops.c (OP_1000): For "sub2w", compute carry by comparing
  862. inputs.
  863. Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
  864. * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract,
  865. carry indicated by value > 0xffff.
  866. Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
  867. * interp.c (sim_resume): Don't set up SIGINT handler using signal,
  868. handled by client.
  869. (sim_resume): Fix race condition of a direct assignment to
  870. stop_simulator, conditionally call sim_stop.
  871. (sim_stop_reason): Check stop_simulator returning SIGINT. Clear
  872. stop_simulator ready for next sim_resume call.
  873. (sim_ctrl_c): Delete function.
  874. Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
  875. * interp.c (sim_resume): For "REP", only check/update the PC when
  876. a branch instruction has not been executed.
  877. Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
  878. * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
  879. extend bit 44 all constants.
  880. (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
  881. Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
  882. * d10v_sim.h: Include sim-types.h.
  883. (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef
  884. using unsigned8 et.al. from sim-types.h.
  885. (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with
  886. SIGNED64 macro.
  887. Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
  888. * interp.c (sim_write_phys): New function, write to physical
  889. instead of virtual memory.
  890. * interp.c (sim_load): Pass lma_p and sim_write_phys to
  891. sim_load_file.
  892. Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com>
  893. * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
  894. exception generation code to OP_6E01.
  895. (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
  896. generation code.
  897. Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com>
  898. * simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
  899. (OP_6601): Ditto.
  900. Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
  901. * configure: Regenerated to track ../common/aclocal.m4 changes.
  902. Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com>
  903. * interp.c (pc_addr): Discard upper bit(s) of PC in case
  904. IMAP1 selects unified memory.
  905. * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing
  906. for end condition.
  907. Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
  908. * configure: Regenerated to track ../common/aclocal.m4 changes.
  909. Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
  910. * configure: Regenerated to track ../common/aclocal.m4 changes.
  911. Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
  912. * configure: Regenerated to track ../common/aclocal.m4 changes.
  913. Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
  914. * configure: Regenerated to track ../common/aclocal.m4 changes.
  915. Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
  916. * configure: Regenerated to track ../common/aclocal.m4 changes.
  917. Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>
  918. * interp.c (sim_resume): Increment PC at end of rep
  919. loop.
  920. * simops.c (OP_4201): Fix rachi instruction.
  921. Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
  922. * configure: Regenerated to track ../common/aclocal.m4 changes.
  923. Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
  924. * configure: Regenerated to track ../common/aclocal.m4 changes.
  925. * config.in: Ditto.
  926. Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
  927. * interp.c (sim_kill): Delete.
  928. (sim_create_inferior): Add ABFD argument.
  929. (sim_load): Move setting of PC from here.
  930. (sim_create_inferior): To here.
  931. (start_address): Delete variable.
  932. Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
  933. * configure: Regenerated to track ../common/aclocal.m4 changes.
  934. * config.in: Ditto.
  935. Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
  936. * interp.c (sim_open): Add ABFD argument.
  937. Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
  938. * interp.c (sim_open): Add callback argument.
  939. (sim_set_callbacks): Remove SIM_DESC argument.
  940. Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
  941. * configure: Regenerated to track ../common/aclocal.m4 changes.
  942. Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com>
  943. * interp.c (sim_open): Undo patch to add -E support.
  944. Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
  945. * interp.c (sim_stop): New function.
  946. Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com>
  947. * Makefile.in (SIM_OBJS): Add sim-load.o.
  948. * d10v_sim.h (exec_bfd): Rename to prog_bfd.
  949. * interp.c: #include bfd.h.
  950. (myname, sim_kind, start_address): New static locals.
  951. (prog_bfd_was_opened_p, prog_bfd): New static locals.
  952. (decode_pc): Update to use prog_bfd.
  953. (sim_open): Set sim_kind, myname. Ignore -E arg.
  954. (sim_close): Close prog_bfd if simulator opened it.
  955. (sim_create_inferior): Return SIM_RC. Delete arg start_address.
  956. (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
  957. Call sim_load_file to load file into simulator.
  958. * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
  959. Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
  960. * simops.c (OP_5F00): Only provide system calls SYS_execv,
  961. SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
  962. Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
  963. * configure: Regenerated to track ../common/aclocal.m4 changes.
  964. * config.in: Ditto.
  965. Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
  966. * interp.c (sim_open): New arg `kind'.
  967. * configure: Regenerated to track ../common/aclocal.m4 changes.
  968. Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
  969. * configure: Regenerated to track ../common/aclocal.m4 changes.
  970. Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
  971. * configure: Re-generate.
  972. Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
  973. * configure: Regenerate to track ../common/aclocal.m4 changes.
  974. * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same
  975. as trap 0, which will be deprecated. Only set errno, if an error
  976. in fact was returned.
  977. Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com>
  978. * interp.c: Delete redundant prototypes of sim_foo fns.
  979. (sim_open): New SIM_DESC result. Argument is now in argv form.
  980. (other sim_*): New SIM_DESC argument.
  981. Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com>
  982. * simops.c (trace_{input,output}_func): Call flush_stdout from the
  983. callback functions.
  984. (OP_5F00): Ditto.
  985. (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer.
  986. (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in
  987. setting the carry bit after an add or a subtract.
  988. Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com>
  989. * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom
  990. 40 bits of accumulators. Sign/zero extend as appropriate.
  991. Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
  992. * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
  993. COMMON_{PRE,POST}_CONFIG_FRAG instead.
  994. * configure.in: sinclude ../common/aclocal.m4.
  995. * configure: Regenerated.
  996. Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
  997. * configure configure.in Makefile.in: Update to new configure
  998. scheme which is more compatible with WinGDB builds.
  999. * configure.in: Improve comment on how to run autoconf.
  1000. * configure: Re-run autoconf to get new ../common/aclocal.m4.
  1001. * Makefile.in: Use autoconf substitution to install common
  1002. makefile fragment.
  1003. Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com)
  1004. * gencode.c: patch to not #include "d10v_sim.h" which
  1005. unecessarily includes bfd.h and causes wingdb configure
  1006. to fail.
  1007. Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1008. * interp.c (xfer_mem): Change unified memory to 0x0.
  1009. Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1010. * simops.c (OP_3E01): Fix tracing information.
  1011. (OP_300{0,1}): Do not propigate sign.
  1012. Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com>
  1013. * config.in (WORDS_BIGENDIAN): Add.
  1014. * configure: Regenerated.
  1015. * d10v_sim.h: #include "config.h"
  1016. Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1017. * gencode.c (write_opcodes): Eliminate warnings when generated
  1018. table.c is compiled.
  1019. Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1020. * interp.c (sim_open): Cast result of calloc, and make sure NULL
  1021. was not returned.
  1022. (dmem_addr): If address is illegal or in I/O space, signal a bus
  1023. error.
  1024. (pc_addr): Signal bus error, not illegal instruction for bogus
  1025. pc.
  1026. Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com>
  1027. * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
  1028. (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
  1029. * configure.in: Simplify using macros in ../common/aclocal.m4.
  1030. Call AC_CHECK_HEADERS(unistd.h).
  1031. * configure: Regenerated.
  1032. * config.in: New file.
  1033. * interp.c: #include "callback.h".
  1034. * simops.c: #include "config.h". #include <unistd.h> if present.
  1035. Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1036. * d10v-sim.h (simops): Add flag is_long.
  1037. (State): Add pc_changed. Instructions which update the PC should
  1038. use the JMP macro which sets this.
  1039. (JMP): New macro. Sets the PC and the pc_changed flag.
  1040. * gencode.c (write_opcodes): Add is_long field.
  1041. * interp.c (lookup_hash): If we blindly apply a short opcode's mask
  1042. to a long opcode we could get a false match. Check the opcode size.
  1043. (hash): Add a size field to the hash table.
  1044. (sim_open): Initialize size field in hash table.
  1045. (sim_resume): Change to logic for setting the PC. Used to increment the
  1046. PC if it had not been changed. This didn't allow single-instruction loops.
  1047. Now checks the flag State.pc_changed. Also now stops when ^C is received.
  1048. (dmem_addr): Fix translation of data segments to unified memory.
  1049. (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag.
  1050. * simops.c: Changed all branch and jump instructions to use new JMP macro.
  1051. (OP_20000000): Corrected trace information to show this is a ldi.l, not
  1052. a ldi.s instruction.
  1053. Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1054. * interp.c (sim_fetch_register, sim_store_register): Fix bug where
  1055. updating the accumulators was overwriting other parts of the global
  1056. State variable.
  1057. Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1058. * interp.c (bfd.h) Don't include it here any more.
  1059. (text{,_start,_end}): Move here from simops.c and make extern.
  1060. (decode_pc): New function to return the PC as an address that the
  1061. debugger can use.
  1062. (dmem_addr): Print decoded PC in error message.
  1063. (pc_addr): Ditto.
  1064. * simops.c (bfd.h) Don't include it here any more.
  1065. (text{,_start,_end}): Move to simops.c.
  1066. (trace_input_func): Move decoding of PC, and looking up .text
  1067. start to decode_pc.
  1068. * d10v_sim.h (bfd.h): Include it here.
  1069. (text{,_start,_end}): Add external declarations.
  1070. (exec_bfd): Ditto.
  1071. (decode_pc): Ditto.
  1072. Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1073. * interp.c (sim_size): Now allocates unified memory for imap segments
  1074. 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0.
  1075. (sim_write): Just call xfer_mem().
  1076. (sim_read): Just call xfer_mem().
  1077. (xfer_mem): New function. Does appropriate memory mapping and copies bytes.
  1078. (dmem_addr): New function. Reads dmap register and translates data
  1079. addresses to local addresses.
  1080. (pc_addr): New function. Reads imap register and computes local address
  1081. corresponding to contents of the PC.
  1082. (sim_resume): Change to use pc_addr().
  1083. (sim_create_inferior): Change reinitialization code. Also reinitializes
  1084. imap[01] and dmap.
  1085. (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
  1086. (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
  1087. * simops.c (MEMPTR): Redefine to use dmem_addr().
  1088. (OP_5F00): Replace references to STate.imem with dmem_addr().
  1089. * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
  1090. (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
  1091. (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
  1092. Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1093. * d10v_sim.h (_ins_type): Reorganize, so that we can provide
  1094. better statistics, like not counting NOPS as parallel
  1095. instructions, and printing total cycles.
  1096. (ins_type_counters): Make unsigned long.
  1097. (left_nops,right_nops): Fold into ins_type_counters.
  1098. * simops.c (trace_input_func): Print new instruction types.
  1099. Handle OP_R2R3 as input types.
  1100. (OP_{38000000,7000}): Correctly sign extend bytes.
  1101. (OP_5E00): Don't count NOPs as parallel instructions.
  1102. (OP_460B): Remove unused variable.
  1103. (OP_5F00): Ditto.
  1104. * interp.c (ins_type_counters): Make unsigned long.
  1105. (left_nops,right_nops): Delete.
  1106. (most functions): Add prototypes.
  1107. (INLINE): If GCC and optimize define as __inline__.
  1108. ({,lookup_}hash,get_operands): Declare as INLINE.
  1109. (do_parallel): Count conditional operations.
  1110. (add_commas): New function, to add commas every 3 digits.
  1111. (sim_size): Call add_commas to print numbers.
  1112. (sim_{open,resume}): Delete unused variables.
  1113. (sim_info): Provide better statistics.
  1114. (sim_read): Add int return type.
  1115. Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1116. * interp.c (sim_resume): Change the way single-stepping and exceptions
  1117. are handled so single-stepping works again.
  1118. Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1119. * endian.c: Optimize simulated loads/stores on x86, AIX, and big
  1120. endian hosts.
  1121. * configure.in (--enable-sim-bswap): New switch to enable using
  1122. the BSWAP instruction on x86's.
  1123. * configure: Regenerate.
  1124. * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
  1125. support.
  1126. Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1127. * endian.c: New file. Move endian functions here from interp.c.
  1128. Optimize code, and make it work as either inline functions or as a
  1129. separate file.
  1130. * interp.c: Move endian functions from here to endian.c.
  1131. * Makefile.in (INCLUDE): Add endian.c.
  1132. (run,libsim.a): Add dependency on endian.o.
  1133. (endian.o): Add dependency.
  1134. * d10v_sim.h (read/write support): Always go through the machine
  1135. independent endian functions. If compiling with GCC and
  1136. optimizing, include endian.c so the endian functions are inlined.
  1137. * simops.c (OP_5F00): Correct tracing of accumulators.
  1138. Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1139. * simops.c (OP_5F00): Add support for getpid, kill system calls.
  1140. * interp.c (do_{2_short,parallel}): If an exception is raised,
  1141. don't execute the second instruction.
  1142. Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1143. * simops.c (OP_{31000000,6601,6201,6200}): Store address in a
  1144. temporary in case the register is overriden when loading.
  1145. (OP_6200): Output type is OP_DREG for tracing.
  1146. Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1147. * d10v_sim.h (struct _state): Add mem_{min,max} fields.
  1148. * interp.c (sim_size): Initialize mem_{min,max} fields.
  1149. (sim_write): Update mem_{min,max} fields.
  1150. (sim_resume): If PC is not in the minimum/maximum memory range,
  1151. abort.
  1152. (sim_create_inferior): Preserve mem_{min,max} fields.
  1153. Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com>
  1154. * simops.c (OP_5F00): Add support for time() system call.
  1155. Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1156. * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being
  1157. stored if tracing.
  1158. (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for
  1159. system calls.
  1160. Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1161. * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}.
  1162. (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}.
  1163. (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3
  1164. to call/subroutine returns to trace the first two arguments and
  1165. the return value. For small jumps, use CONSTANT8, not CONSTANT16.
  1166. Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1167. * interp.c (sim_create_inferior): Reinitialize State every time
  1168. sim_create_inferior() is called.
  1169. Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net>
  1170. * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right
  1171. on comparisons.
  1172. (OP_401): Fix tracing information.
  1173. Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1174. * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output.
  1175. (trace_input_func): Use them.
  1176. (trace_input_func): Make sure there is a trailing space after the
  1177. instruction.
  1178. (OP_6200): Fix tracing info.
  1179. * Makefile.in (run): Add dependencies on libbfd.a and
  1180. libiberity.a.
  1181. Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1182. * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line
  1183. numbers and function names in debug trace.
  1184. (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and
  1185. DEBUG_LINE_NUMBER.
  1186. (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction
  1187. and exit system call trap being executed.
  1188. * interp.c (sim_stop_reason): Set exit code correctly for stop
  1189. instruction and exit system call trap.
  1190. * configure.in (--enable-sim-cflags): Remove trace case.
  1191. (--enable-sim-debug): New switch to set the debug values.
  1192. * configure: Regenerate.
  1193. * simops.c (trace_{input,output}_func): Rename from
  1194. trace_{input,output}.
  1195. (trace_{input,output}): Call trace_{input,output}_func if
  1196. d10v_debug is non-zero.
  1197. (SIZE_INSTRUCTION): Cut down to 8.
  1198. (SIZE_OPERANDS): Cut down to 18.
  1199. (SIZE_LOCATION): New value for size of line number, function name
  1200. field.
  1201. (init_text_p,text{,_start,_end}): New static variables for
  1202. printing line number and function name.
  1203. (exec_bfd): New external that run.c sets.
  1204. (trace_input_func): Print line number and function name if
  1205. available and if desired.
  1206. (OP_4E09): Don't print out DBT message.
  1207. (OP_5FE0): Set exception field to SIG_D10V_STOP.
  1208. (OP_5F00): Set exception field to SIG_D10V_EXIT.
  1209. Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1210. * interp.c (do_2_short): If the instruction encodes jump->ins,
  1211. don't do the second instruction if the jump succeeds.
  1212. Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1213. * simops.c (OP_5F00): Use unknown traps to print all GPRs,
  1214. accumulators, PC, and F0/F1/C flags.
  1215. Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com>
  1216. * simops.c (OP_5F00): Fix problems with system calls.
  1217. Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1218. * simops.c (OP_5F00): Correct tracing information for trap.
  1219. Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1220. * Makefile.in (CSEARCH): Correctly find opcodes directory.
  1221. Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1222. * simops.c (trace_output): Properly align accumulator output.
  1223. (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
  1224. if shift count is too high.
  1225. (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
  1226. (OP_4E09): Make cpfg properly trace the input flags.
  1227. (op_types): Add OP_FLAG_OUTPUT.
  1228. (trace_{input,output}): Support OP_FLAG_OUTPUT.
  1229. (OP_31000000): This ld2w varient is a 16-bit memory reference, not
  1230. an 8-bit memory reference instruction for tracing purposes.
  1231. (OP_201): Addi needs to set the carry.
  1232. Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1233. * simops.c (OP_2600, OP_2601): Changed min and max comparisons
  1234. to use signed register values.
  1235. Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1236. * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
  1237. output.
  1238. (_ins_type): New enumeration to specify which container an
  1239. instruction is in, and whether it is part of a parallel operation.
  1240. (_state): Add ins_type field.
  1241. ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
  1242. (ins_type_counters): Counters for the various instruction types.
  1243. ({left,right}_nops): Counters for the number of nops in each
  1244. container.
  1245. (d10v_debug): New variable to indicate whether debugging is turned
  1246. on.
  1247. * simops.c: (all functions): Change all #ifdef DEBUG code so that
  1248. the input and output values can be traced, along with the
  1249. instruction type. Make the -t option enable tracing.
  1250. (all functions): Change printf calls to use the printf_filtered
  1251. function in the callback table.
  1252. * interp.c (_leftright): New enumeration to say whether 2 short
  1253. instructions are done left first or right first.
  1254. (do_{long,2_short,parallel}): Indicate in the machine state which
  1255. type of instruction this is. Count each of the types of
  1256. instructions executed.
  1257. (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
  1258. flag is set.
  1259. (sim_resume): Pass left/right indication to do_2_short.
  1260. (all functions): Change printf calls to use the printf_filtered
  1261. function in the callback table.
  1262. (sim_trace): Turn on debug flag if DEBUG was defined, and call
  1263. sim_resume.
  1264. (sim_info): Print out statistics on instructions.
  1265. (sim_{trace,create_inferior}): Eliminate extraneous output unless
  1266. debugging.
  1267. (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
  1268. Only initialize the hash table the first time sim_open is called.
  1269. * Makefile.in: Make objects depend on d10v_sim.h.
  1270. ({,SIM_}CFLAGS): Include configure dependent switches. Setting
  1271. CFLAGS does not override host/target defines or SIM_CFLAGS.
  1272. (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
  1273. (run): By default, the math library is not needed to be linked
  1274. in.
  1275. ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
  1276. overridden.
  1277. (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
  1278. makes.
  1279. ({run,callback}.o): Provide explicit paths to their appropriate
  1280. source directories.
  1281. (gencode{,.o},d10v-opc.o): Split compilation into creating object
  1282. and linking. Instead of linking in libopcodes.a, just compile
  1283. d10v-opc.o directly to handle canadian cross.
  1284. (CSEARCH): Add opcodes directory.
  1285. * configure.in (--enable-sim-cflags): New switch to allow user to
  1286. set the defaults.
  1287. (CC_FOR_BUILD): Deal with canadian crosses.
  1288. * configure: Regenerate.
  1289. Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
  1290. * simops.c: Include correct syscall.h for d10v, not host's.
  1291. Fix #ifdef SYS_stat.
  1292. Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1293. * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
  1294. Add trap 2 to be printf and trap 3 to be putchar.
  1295. Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
  1296. * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
  1297. for low-level system calls.
  1298. Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1299. * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
  1300. Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1301. * d10v_sim.h (SEXT32): Added.
  1302. * interp.c: Commented out printfs.
  1303. * simops.c: Fixed error in sb and st2w.
  1304. Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1305. * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
  1306. DSP instructions. Added modulo addressing.
  1307. Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1308. * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
  1309. Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1310. * d10v_sim.h, simops.c: Snapshot.
  1311. Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  1312. * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
  1313. gencode.c, interp.c, simops.c: Created.