-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathChangeLog
More file actions
7034 lines (5005 loc) · 235 KB
/
ChangeLog
File metadata and controls
7034 lines (5005 loc) · 235 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2016-08-15 Mike Frysinger <[email protected]>
* sim-base.h (sim_state_base): Add prog_syms_count.
(STATE_PROG_SYMS_COUNT): Define.
* sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
(trace_load_symbols): New function.
(trace_sym_value): Likewise.
(trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
loading logic with a call to trace_load_symbols.
* sim-trace.h (trace_load_symbols, trace_sym_value): New
prototypes.
2016-08-13 Mike Frysinger <[email protected]>
* cgen-types.h (mode_names): Mark const.
* cgen-utils.c (mode_names): Likewise.
2016-08-13 Mike Frysinger <[email protected]>
* cgen-defs.h (struct cgen_state): Delete argv and envp.
(STATE_ARGV, STATE_ENVP): Delete.
2016-02-04 Nick Clifton <[email protected]>
* cgen-scache.c (scache_option_handler): Prevent possible
undefined behaviour computing the size of the scache by using
unsigned integers instead of signed integers.
2016-01-17 Joel Brobecker <[email protected]>
* sim-fpu.c: Minor comment fixes throughout.
2016-01-17 Joel Brobecker <[email protected]>
* sim-fpu.c (print_bits): Minor reformatting (no code change).
(sim_fpu_map): Likewise.
2016-01-11 Mike Frysinger <[email protected]>
* sim-config.c (print_sim_config): Drop extra whitespace before =
in output for byte order, stdio, and msb settings.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
sim-stdio, sim-trace, and sim-profile.
(SIM_AC_OPTION_ENVIRONMENT): Likewise.
(SIM_AC_OPTION_ASSERT): Likewise.
(SIM_AC_OPTION_SMP): Likewise.
(SIM_AC_OPTION_XOR_ENDIAN): Likewise.
* configure: Regenerate.
* Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
(CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
$(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
* sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
WITH_ENVIRONMENT & USER_ENVIRONMENT.
* sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
WITH_ASSERT, WITH_STDIO): Delete.
* sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
check.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
* configure: Regenerate.
* Make-common.in (SIM_PACKAGES): Delete.
(CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
sim_link_links.
(SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
* gentmap.c: Change targ-vals.def include to nltvals.def.
* Make-common.in (gentmap): Change targ-vals.def to
$(srccom)/nltvals.def.
(distclean): Delete rm -f targ-vals.def.
* Makefile.in: Update comment.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
(SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
and --enable-sim-stdcall and sim_stdcall.
* configure: Regenerate.
* Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
(CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
* sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
* sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
(REGPARM_*): Delete all regparm defines and their use.
2016-01-10 Mike Frysinger <[email protected]>
* acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
* Make-common.in (SIM_CFLAGS): Delete.
(CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
* Makefile.in: Likewise.
2016-01-09 Mike Frysinger <[email protected]>
* configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
* acinclude.m4 (SIM_AC_COMMON): ... here.
* aclocal.m4, configure: Regenerate.
* config.in: Delete file.
* callback.c: Change cconfig.h include to config.h.
* dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
syscall.c: Likewise.
* Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
* Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
2016-01-06 Mike Frysinger <[email protected]>
* sim-config.c (print_sim_config): Delete sim_io_printf of version,
date, and time information.
2016-01-06 Mike Frysinger <[email protected]>
* sim-options.c (sim_parse_args): Mark argv array const.
* sim-options.h (sim_parse_args): Likewise.
2016-01-05 Mike Frysinger <[email protected]>
* sim-trace.c: Include dis-asm.h.
(OPTION_TRACE_DISASM): New enum.
(trace_options): Add trace-disasm flag.
(trace_option_handler): Handle OPTION_TRACE_DISASM.
(trace_idx_to_str): Handle TRACE_DISASM_IDX.
(dis_read, dis_printf, trace_disasm): New functions.
* sim-trace.h: Include dis-asm.h.
(TRACE_INSN_IDX): Clarify comment.
(TRACE_DISASM_IDX): New enum.
(TRACE_disasm): New define.
(WITH_TRACE_DISASM_P): New define.
(struct _trace_data): Add dis_bfd, disassembler, and dis_info.
(STRACE_DISASM_P): New define.
(TRACE_DISASM_P): Likewise.
(TRACE_DISASM_P): Likewise.
(TRACE_DISASM): Likewise.
(trace_disasm): New function.
2016-01-04 Mike Frysinger <[email protected]>
* sim-utils.c (sim_state_free): Change to STATE_MAGIC.
2016-01-04 Mike Frysinger <[email protected]>
* cgen-scache.c (MAX): Delete.
(scache_init): Change MAX to max.
* cgen-trace.c (min): Delete.
* cgen-utils.c (min): Delete.
* sim-basics.h [!min] (min): Define.
[!max] (max): Define.
2016-01-04 Mike Frysinger <[email protected]>
* sim-options.c (sim_parse_args): Tweak getopt error message.
2016-01-04 Mike Frysinger <[email protected]>
* acinclude.m4 (sim-bswap): Delete.
* configure: Regenerate.
* Make-common.in (SIM_BSWAP): Delete.
(CONFIG_CFLAGS): Delete $(SIM_BSWAP).
* sim-config.h (htonl, ntohl): Delete.
(WITH_BSWAP): Delete.
2016-01-03 Mike Frysinger <[email protected]>
* sim-options.c (sim_parse_args): Declare local save_opterr. Save
opterr state to it before calling getopt_long and restore afterwards.
Set opterr to 0. When optc is '?', call sim_io_eprintf.
2016-01-03 Mike Frysinger <[email protected]>
* hw-device.h (device): Delete commented typedef.
* sim-basics.h (device): Delete typedef.
2016-01-03 Mike Frysinger <[email protected]>
* sim-options.c (sim_parse_args): Replace for loop with a call
to countargv.
2016-01-03 Mike Frysinger <[email protected]>
* nrun.c (myname): Mark const.
(main): Mark name const. Replace myname parsing loop with a
call to lbasename.
2016-01-03 Mike Frysinger <[email protected]>
(CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
* acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
(SIM_AC_OPTION_HOSTENDIAN): Delete.
* config.in, configure: Regenerate.
* Make-common.in (SIM_HOSTENDIAN): Delete.
* sim-config.c (current_host_byte_order): Delete.
(sim_config): Delete current_host_byte_order assignments and
CURRENT_HOST_BYTE_ORDER checks.
(print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
* sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
(HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
(current_host_byte_order): Delete.
(CURRENT_HOST_BYTE_ORDER): Likewise.
* sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
(HOST_BYTE_ORDER): ... this.
(sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
HOST_BYTE_ORDER.
(sim_endian_join_16): Likewise.
* sim-n-core.h (sim_core_read_misaligned_N): Change
CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
(sim_core_write_misaligned_N): Likewise.
* sim-n-endian.h (endian_t2h_N): Likewise.
(endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
endian_le2h_N): Likewise.
(offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
2016-01-02 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
BFD_ENDIAN_UNKNOWN.
(SIM_AC_OPTION_HOSTENDIAN): Likewise.
* cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
(SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
* nrun.c (main): Likewise.
* sim-config.c (current_host_byte_order): Change type to enum
bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
(current_target_byte_order): Likewise.
(config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
BFD_ENDIAN_UNKNOWN.
(sim_config): Change prefered_target_byte_order type to enum
bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
* sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
Delete all the various arch/OS endian includes & defines.
(current_host_byte_order): Change type to enum bfd_endian.
(current_target_byte_order): Likewise.
(CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
(CURRENT_TARGET_BYTE_ORDER): Likewise.
* sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
* sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
BFD_ENDIAN_UNKNOWN.
(sim_events_watch_core): Likewise.
* sim-events.h: Likewise.
* sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
BFD_ENDIAN_BIG.
(sim_core_write_misaligned_N): Likewise.
* sim-n-endian.h (endian_h2be_N): Likewise.
(endian_be2h_N): Likewise.
(endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
(offset_N): Likewise.
* sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
2016-01-02 Mike Frysinger <[email protected]>
* cgen-defs.h (current_state): Delete.
* sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
* sim-utils.c (current_state): Delete.
2015-12-30 Mike Frysinger <[email protected]>
* sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
to use lbasename.
2015-12-27 Mike Frysinger <[email protected]>
* Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
2015-12-26 Mike Frysinger <[email protected]>
* acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
* config.in, configure: Regenerate.
* Make-common.in (sim-basics_h): Delete tconfig.h.
(distclean): Likewise.
* sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
(new_sim_core_mapping): Delete WITH_HW and device *device.
(sim_core_map_attach, sim_core_attach): Likewise.
(sim_core_read_buffer): Delete WITH_DEVICES logic.
(sim_core_write_buffer): Likewise.
* sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
*device.
(sim_core_attach): Likewise.
(device_io_read_buffer, device_io_write_buffer): Delete.
* sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
(sim_core_write_aligned_N): Likewise.
* tconfig.h: Delete file.
2015-12-26 Mike Frysinger <[email protected]>
* sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
Call sim_cpu_hw_io_read_buffer if cpu is valid.
(sim_core_write_buffer): Move cia decl to top of func. Call
sim_cpu_hw_io_write_buffer if cpu is valid.
2015-12-25 Mike Frysinger <[email protected]>
* hw-properties.c (hw_find_ihandle_runtime_property): Delete
HW_TRACE call.
(hw_find_integer_property): Likewise.
(hw_find_integer_array_property): Likewise.
(hw_add_duplicate_property): Likewise.
2015-12-25 Mike Frysinger <[email protected]>
* sim-config.h (WITH_ENGINE): Delete.
* sim-module.c (modules): Always include sim_engine_install.
2015-12-25 Mike Frysinger <[email protected]>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
* cgen-types.h (SIM_HAVE_MODEL): Delete.
* sim-base.h: Always include sim-model.h.
* sim-config.h (WITH_DEFAULT_MODEL): Delete.
* sim-cpu.h (sim_cpu_base): Always declare mach/model members.
* sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
[!WITH_MODEL_P] (sim_machs): Define.
* sim-model.h: Add some developer docs.
[!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
(WITH_MODEL_P): Define.
* sim-module.c (modules): Always include sim_model_install.
* sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
2015-12-25 Mike Frysinger <[email protected]>
* sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
* sim-model.c: Likewise.
* sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
SIM_MACH_IMP_PROPERTIES
2015-12-25 Mike Frysinger <[email protected]>
* sim-core.c (device_error): Delete.
(sim_core_map_attach): Delete calls to device_error.
(sim_core_attach): Likewise.
* sim-core.h (device_error): Delete.
* sim-n-core.h (sim_core_read_aligned_N): Change device_error call
to sim_engine_abort.
(sim_core_write_aligned_N): Likewise.
2015-12-25 Mike Frysinger <[email protected]>
* sim-config.h (WITH_CALLBACK_MEMORY): Delete.
* sim-core.c (sim_core_write_buffer): Likewise.
* sim-n-core.h (sim_core_read_aligned_N): Likewise.
(sim_core_write_aligned_N): Likewise.
2015-12-25 Mike Frysinger <[email protected]>
* dv-pal.c: Include config.h and sim-main.h.
(hw_pal_io_read_buffer): Always call CPU_INDEX.
2015-12-24 Mike Frysinger <[email protected]>
* sim-options.c (standard_options): Always enable load-lma and
load-vma options.
(standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
2015-12-24 Mike Frysinger <[email protected]>
* sim-module.c (MODULE_LIST): Delete.
2015-12-24 Mike Frysinger <[email protected]>
* sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
Move to h8300/compile.c.
[SIM_H8300] (standard_options): Likewise.
(standard_option_handler): Likewise.
2015-12-24 Mike Frysinger <[email protected]>
* sim-module.c [WITH_WATCHPOINTS] (modules): Always call
sim_watchpoint_install.
2015-12-24 Mike Frysinger <[email protected]>
* sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
* sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
sim_memopt_install.
* sim-options.c (OPTION_MEM_SIZE): Delete.
[SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
(standard_option_handler): Likewise.
2015-12-24 Mike Frysinger <[email protected]>
* tconfig.h (SIM_HAVE_SIMCACHE): Delete.
2015-11-21 Mike Frysinger <[email protected]>
PR sim/18762
* Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
2015-11-21 Mike Frysinger <[email protected]>
PR sim/19273
* sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
vasprintf, and va_end together. Check ret after va_end call.
2015-11-21 Mike Frysinger <[email protected]>
* sim-types.h (SIM_PRI_TB): Define.
(PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
(PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
(PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
(PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
2015-11-17 Mike Frysinger <[email protected]>
* sim-main.h (WITH_MODULO_MEMORY): Delete.
* sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
(sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
(sim_core_translate): Likewise.
* sim-core.h: Delete mention of WITH_MODULO_MEMORY.
2015-11-16 Mike Frysinger <[email protected]>
* sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
(cgen_cpu_close): Change to XCONCAT2.
2015-11-15 Mike Frysinger <[email protected]>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
and sim-stop.o.
2015-11-14 Mike Frysinger <[email protected]>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
* sim-close.c: New file.
2015-09-25 Andrew Bennett <[email protected]>
Ali Lown <[email protected]>
* sim-bits.h (EXTEND6): New macro.
(EXTEND12): New macro.
(EXTEND25): New macro.
2015-06-24 Mike Frysinger <[email protected]>
* sim-trace.c (trace_one_insn): Delete.
* sim-trace.h (trace_one_insn): Delete.
2015-06-24 Mike Frysinger <[email protected]>
* sim-trace.c (debug_printf): Rename to ...
(sim_debug_printf): ... this.
* sim-trace.h (debug_printf): Delete define.
(debug_printf): Rename to ...
(sim_debug_printf): ... this.
2015-06-24 Mike Frysinger <[email protected]>
* sim-trace.c (OPTION_TRACE_REGISTER): New enum.
(trace_options): Add trace-register option.
(trace_option_handler): Handle OPTION_TRACE_REGISTER case.
(trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
* sim-trace.h (TRACE_REGISTER_IDX): New enum.
(TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
TRACE_REGISTER_P, TRACE_REGISTER): Define.
2015-06-24 Mike Frysinger <[email protected]>
* sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
STRACE_DEBUG): Define.
2015-06-24 Mike Frysinger <[email protected]>
* sim-trace.c (trace_options): Update help text for trace-alu,
trace-fpu, trace-vpu, and trace-semantics.
* sim-trace.h (TRACE_ALU_IDX): Update comment text.
(TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
2015-06-24 Mike Frysinger <[email protected]>
* sim-assert.h (SIM_FILTER_PATH): Delete.
[!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
(SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
[!ASSERT, WITH_ASSERT]: Include libiberty.h.
(ASSERT): Replace SIM_FILTER_PATH with lbasename.
* sim-events.c: Include libiberty.h.
(ETRACE): Replace SIM_FILTER_PATH with lbasename.
2015-06-23 Mike Frysinger <[email protected]>
* acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
(AC_ARG_ENABLE(sim-cflags)): Likewise.
(AC_ARG_ENABLE(sim-debug)): Likewise.
(AC_ARG_ENABLE(sim-stdio)): Likewise.
(AC_ARG_ENABLE(sim-trace)): Likewise.
(AC_ARG_ENABLE(sim-profile)): Likewise.
(AC_ARG_ENABLE(sim-environment)): Likewise.
(AC_ARG_ENABLE(sim-alignment)): Likewise.
(AC_ARG_ENABLE(sim-assert)): Likewise.
(AC_ARG_ENABLE(sim-bitsize)): Likewise.
(AC_ARG_ENABLE(sim-endian)): Likewise.
(AC_ARG_ENABLE(sim-hostendian)): Likewise.
(AC_ARG_ENABLE(sim-float)): Likewise.
(AC_ARG_ENABLE(sim-scache)): Likewise.
(AC_ARG_ENABLE(sim-default-model)): Likewise.
(AC_ARG_ENABLE(sim-inline)): Likewise.
(AC_ARG_ENABLE(sim-packages)): Likewise.
(AC_ARG_ENABLE(sim-regparm)): Likewise.
(AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
(AC_ARG_ENABLE(sim-smp)): Likewise.
(AC_ARG_ENABLE(sim-stdcall)): Likewise.
(AC_ARG_ENABLE(sim-xor-endian)): Likewise.
(AC_ARG_ENABLE(cgen-maint)): Likewise.
* configure: Regenerate.
2015-06-23 Mike Frysinger <[email protected]>
* sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
2015-06-23 Mike Frysinger <[email protected]>
* cgen-trace.c [!__STDC__]: Delete.
* sim-trace.h [!__STDC__]: Likewise.
2015-06-21 Mike Frysinger <[email protected]>
* sim-model.c (sim_model_init): Assert model is not NULL.
2015-06-21 Mike Frysinger <[email protected]>
* sim-types.h: Move SIM_TYPES_H define to top of file. Include
stdint.h. Replace all signed/unsigned typedefs with int#_t and
uint#_t.
2015-06-21 Mike Frysinger <[email protected]>
* sim-alu.h (_SIM_ALU_H_): Rename to ...
(SIM_ALU_H): ... this.
* sim-assert.h (_SIM_ASSERT_H_): Rename to ...
(SIM_ASSERT_H): ... this.
* sim-basics.h (_SIM_BASICS_H_): Rename to ...
(SIM_BASICS_H): ... this.
* sim-bits.h (_SIM_BITS_H_): Rename to ...
(SIM_BITS_H): ... this.
* sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
(SIM_ENDIAN_H): ... this.
2015-06-18 Mike Frysinger <[email protected]>
* sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
constant string.
2015-06-18 Mike Frysinger <[email protected]>
* callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
m for sentinel testing.
2015-06-17 Mike Frysinger <[email protected]>
* sim-syscall.c: Include errno.h and targ-vals.h.
(sim_syscall_multi, sim_syscall): Define.
* sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
* syscall.c (cb_syscall): Extend comment.
2015-06-17 Mike Frysinger <[email protected]>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
* sim-syscall.c: New file.
* sim-syscall.h: New file.
2015-06-17 Mike Frysinger <[email protected]>
* callback.c (cb_target_map_entry, cb_host_map_entry): Define.
(cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
(cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
(cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
Define.
* gentmap.c (gen_targ_map_c): Output name field.
2015-06-12 Mike Frysinger <[email protected]>
* acinclude.m4: Change configure.in to configure.ac.
* sim-config.h: Likewise.
2015-06-12 Mike Frysinger <[email protected]>
* acinclude.m4 (sim-trace): Delete -DTRACE flags.
* configure: Regenerate.
2015-06-12 Mike Frysinger <[email protected]>
* sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
TRACE_DEBUG): Define.
2015-06-12 Mike Frysinger <[email protected]>
* sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
* sim-trace.c (trace_option_handler): Likewise.
* sim-trace.h (WITH_TRACE_ANY_P): Define.
(STRACE_ANY_P): Use WITH_TRACE_ANY_P.
(TRACE_ANY_P): Likewise.
2015-06-12 Mike Frysinger <[email protected]>
* cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
CGEN_TRACE_INSN_FINI.
* cgen-trace.c: Rename trace_insn to cgen_trace_insn,
trace_result to cgen_trace_result, trace_insn_fini to
cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
and trace_extract to cgen_trace_extract.
* cgen-trace.h (trace_insn_init): Rename to ...
(cgen_trace_insn_init): ... this.
(trace_insn_fini): Rename to ...
(cgen_trace_insn_fini): ... this.
(trace_insn): Rename to ...
(cgen_trace_insn): ... this.
(trace_extract): Rename to ...
(cgen_trace_extract): ... this.
(trace_result): Rename to ...
(cgen_trace_result): ... this.
(TRACE_RESULT_P): Rename to ...
(CGEN_TRACE_RESULT_P): ... this.
(TRACE_INSN_INIT): Rename to ...
(CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
cgen_trace_insn_init.
(TRACE_INSN_FINI): Rename to ...
(CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
cgen_trace_insn_fini.
(TRACE_PRINTF): Rename to ...
(CGEN_TRACE_PRINTF): ... this.
(TRACE_INSN): Rename to ...
(CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
(TRACE_EXTRACT): Rename to ...
(CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
cgen_trace_extract.
(TRACE_RESULT): Rename to ...
(CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
* genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
TRACE_INSN to CGEN_TRACE_INSN.
(@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
2015-06-11 Mike Frysinger <[email protected]>
* sim-events.c (ETRACE_P): Delete.
(ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
(update_time_from_event, sim_events_schedule_vtracef): Likewise.
* sim-events.h (struct _sim_events): Delete trace member.
* sim-trace.c (set_trace_option_mask): Delete trace_nr check and
always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
2015-06-11 Mike Frysinger <[email protected]>
* sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
2015-06-11 Mike Frysinger <[email protected]>
* sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
2015-06-11 Mike Frysinger <[email protected]>
* sim-trace.h (WITH_TRACE_P): New define.
(WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
Redefine to use WITH_TRACE_P.
2015-06-09 Mike Stump <[email protected]>
* sim-events.c (sim_events_schedule_after_signal): Fix spelling
mistake in call to sim_engine_abort.
2015-04-29 Nick Clifton <[email protected]>
PR 18273
* sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
increasing parenthesis around casts to signed values.
2015-04-21 Mike Frysinger <[email protected]>
* gennltvals.sh: Add mcore support.
* nltvals.def: Regenerate.
2015-04-21 Mike Frysinger <[email protected]>
* cgen.sh: Add +x permissions.
* genmloop.sh: Likewise.
* gentvals.sh: Likewise.
* gennltvals.sh (newlibroot): New variable to hold the path to newlib.
Change all uses of srcroot for newlib to newlibroot.
2015-04-18 Mike Frysinger <[email protected]>
* sim-base.h (SIM_CPU): New typedef.
2015-04-18 Mike Frysinger <[email protected]>
* cgen-engine.h (CIA_ADDR): Delete.
* sim-base.h: Update sim_cia example.
[!CIA_ADDR] (sim_cia): New typedef.
2015-04-17 Mike Frysinger <[email protected]>
* cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
* sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
* sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
* sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
CIA_SET to CPU_PC_SET.
2015-04-15 Mike Frysinger <[email protected]>
* Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
* sim-main.h (STATE_CPU): Remove from comment and define.
2015-04-13 Mike Frysinger <[email protected]>
* acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
* configure: Regenerate.
2015-04-13 Mike Frysinger <[email protected]>
* sim-options.c: Include version.h.
(OPTIONS_VERSION): New enum.
(standard_options): Add "version".
(standard_option_handler): Handle OPTIONS_VERSION.
2015-04-13 Mike Frysinger <[email protected]>
* Makefile.in (version.o): Change to using create-version.sh from gdb.
(create-version.sh): Delete.
2015-04-06 Mike Frysinger <[email protected]>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
2015-04-01 Mike Frysinger <[email protected]>
* run-sim.h, run.c: Delete.
* tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
2015-03-31 Mike Frysinger <[email protected]>
* config.in, configure: Regenerate.
* Make-common.in (CSEARCH): Add $(ZLIBINC).
(ZLIB, ZLIBINC): Define.
(BFD_LIB): Add $(ZLIB).
2015-03-31 Mike Frysinger <[email protected]>
* cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
* cgen-ops.h (SEMOPS_INLINE): Likewise.
2015-03-29 Mike Frysinger <[email protected]>
* sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
(sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
* sim-inline.h (INLINE2): Define to gnu_inline when available.
2015-03-24 Mike Frysinger <[email protected]>
* sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
usage of STATE_WATCHPOINTS.
(profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
2015-03-24 Mike Frysinger <[email protected]>
* tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
2015-03-24 Mike Frysinger <[email protected]>
* tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
2015-03-24 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
of enable_sim_hardware to AC_ARG_ENABLE.
2015-03-23 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
Add dv-sockser.o to sim_hw_objs.
2015-03-23 Mike Frysinger <[email protected]>
* dv-sockser.c: Include config.h.
* dv-sockser.h: Include sim-inline.h.
[HAVE_DV_SOCKSER]: Move all prototypes here.
[!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
dv_sockser_write_buffer, dv_sockser_read): New stub functions.
2015-03-16 Mike Frysinger <[email protected]>
* gentmap.c, run.c: Convert old style prototypes.
2015-03-16 Mike Frysinger <[email protected]>
* acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
symlinking tconfig.h to tconfig.in.
* config.in, configure: Regenerate.
* nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
* tconfig.in: Rename file ...
* tconfig.h: ... here.
2015-03-15 Mike Frysinger <[email protected]>
* dv-socker.h (dv_sockser_install): Declare.
* sim-module.c: Include config.h.
[HAVE_DV_SOCKSER]: Include dv-sockser.h.
(modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
* sim-module.h: Include gdb/remote-sim.h.
2015-03-14 Mike Frysinger <[email protected]>
* Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
(sim-inline.c): Delete rule.
2015-03-14 Mike Frysinger <[email protected]>
* Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
* run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
[!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
2015-03-14 Mike Frysinger <[email protected]>
* sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
[!ASSERT, WITH_ASSERT]: Likewise.
* sim-endian.c: Delete sim-io.h include.
2015-02-19 Mike Frysinger <[email protected]>
* run-sim.h (sim_kill): Delete unused prototype.
2015-02-13 Chen Gang <[email protected]>
* gentmap.c: Include "string.h".
2015-02-02 Chen Gang <[email protected]>
* sim-options.c (sim_args_command): Call freeargv() when failure
occurs.
2015-01-07 Joel Brobecker <[email protected]>
* aclocal.m4, configure: Regenerate using automake 1.11.1.
2014-12-03 Joel Brobecker <[email protected]>
* sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
callbacks following renaming in callback.h.
* syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
callback by call to "to_lstat" callback
2014-08-28 Gary Benson <[email protected]>
* sim-trace.h (debug_printf): New define.
2014-08-19 Alan Modra <[email protected]>
* configure: Regenerate.
2014-08-15 Roland McGrath <[email protected]>
* configure: Regenerate.
* config.in: Regenerate.
2014-03-10 Mike Frysinger <[email protected]>
* sim-command.c (sim_do_command): Add const to cmd.
* sim-options.c (sim_args_command): Add const to cmd.
* sim-options.h (sim_args_command): Add const to cmd.
2014-03-05 Mike Frysinger <[email protected]>
* sim-hload.c (sim_load): Add const to prog.
* sim-load.c (sim_load_file): Likewise.
* sim-utils.c (sim_analyze_program): Likewise.
* sim-utils.h (sim_analyze_program): Likewise.
(sim_load_file): Likewise.
2014-03-04 Mike Frysinger <[email protected]>
* acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
* callback.c (system): Delete unused prototype.
(os_init): Likewise.
(os_shutdown): Likewise.
(os_unlink): Likewise.
(os_time): Likewise.
(os_system): Likewise.
(os_rename): Likewise.
(os_write_stdout): Likewise.
(os_flush_stdout): Likewise.
(os_write_stderr): Likewise.
(os_flush_stderr): Likewise.
(os_write): Likewise.
(os_read_stdin): Likewise.
(os_read): Likewise.
(os_open): Likewise.
(os_lseek): Likewise.
(os_isatty): Likewise.
(os_get_errno): Likewise.
(os_close): Likewise.
(os_vprintf_filtered): Likewise.
(os_evprintf_filtered): Likewise.
(os_error): Likewise.
(fdmap): Likewise.
(fdbad): Likewise.
(wrap): Likewise.
(wrap): Change to new style prototype.
(fdbad): Likewise.
(fdmap): Likewise.
(os_close): Likewise.
(os_poll_quit): Likewise.
(os_get_errno): Likewise.
(os_isatty): Likewise.
(os_lseek): Likewise.
(os_open): Likewise.
(os_read): Likewise.
(os_read_stdin): Likewise.
(os_write): Likewise.
(os_write_stdout): Likewise.
(os_flush_stdout): Likewise.
(os_write_stderr): Likewise.
(os_flush_stderr): Likewise.
(os_rename): Likewise.
(os_system): Likewise.
(os_time): Likewise.
(os_unlink): Likewise.
(os_stat): Likewise.
(os_fstat): Likewise.
(os_lstat): Likewise.
(os_ftruncate): Likewise.
(os_truncate): Likewise.
(os_pipe): Likewise.
(os_pipe_empty): Likewise.
(os_pipe_nonempty): Likewise.
(os_shutdown): Likewise.
(os_init): Likewise.
(cb_read_target_syscall_maps): Likewise.
(cb_target_to_host_syscall): Likewise.
(cb_host_to_target_errno): Likewise.
(cb_target_to_host_open): Likewise.
(cb_store_target_endian): Likewise.
(cb_host_to_target_stat): Likewise.
* sim-hload.c (sim_load): Change to new style prototype.
* sim-load.c (sim_load_file): Change to new style prototype.
(report_transfer_performance): Likewise.
(xprintf_bfd_vma): Likewise.
* syscall.c (cb_get_string): Change to new style prototype.
(get_path): Likewise.
(cb_syscall): Likewise.
2013-10-15 Hans-Peter Nilsson <[email protected]>
* create-version.sh: Align parameters to match those of
../../gdb/common/create-version.sh.
* Make-common.in (srcsim): New variable.
(version.c): Adjust call to create-version.sh as per above.
2013-09-23 Alan Modra <[email protected]>
* configure: Regenerate.
2013-09-03 Mike Stump <[email protected]>
* sim-options.c (complete_option_list): Mark text and word const.
2013-06-28 Tom Tromey <[email protected]>
* Make-common.in (version.c): Use version.in, not
common/version.in.
* create-version.sh: Likewise.
2013-06-24 Joel Brobecker <[email protected]>