1. 10 Nov, 2009 2 commits
  2. 06 Dec, 2008 2 commits
  3. 31 Oct, 2006 1 commit
    • Roland Levillain's avatar
      Catch up with TC's bison++. · 2e252544
      Roland Levillain authored
      	* build-aux/bison++.in: Don't take a `dir' argument, use the
      	dirnames of the input and output files.
      	* src/parse/Makefile.am: Adjust bison++ invocation.
      2e252544
  4. 17 Apr, 2006 1 commit
    • Benoit Perrot's avatar
      2006-04-17 Benoit Perrot <benoit@lrde.epita.fr> · 9b49936e
      Benoit Perrot authored
      	Make extraction of option's value more conventional.
      
      	* src/task/task_register.cc: Split argv[] on `=' for long options'
      	values only. Split argv[] in place for short options' value. Use
      	the next argv[] when no value is provided.
      
      9b49936e
  5. 06 Mar, 2006 1 commit
  6. 05 Mar, 2006 3 commits
  7. 08 Jan, 2006 4 commits
    • Benoit Perrot's avatar
      2006-01-08 Benoît Perrot <benoit@lrde.epita.fr> · 5ce2b34b
      Benoit Perrot authored
      	Control coprocessor has the system library
      
      	* src/vm/cp0.hh, src/vm/cp0.hxx:
      	(set_system_library) New.
      	(raise_syscall) Invoke system library if any.
      	* src/vm/cpu.hh, src/vm/cpu.hxx:
      	(set_system_library) Remove.
      	* src/vm/cpu.cc:
      	(syscall) Raise a syscall exception through cp0.
      	* src/vm/virtual_machine.hh, src/vm/virtual_machine.hxx:
      	(get_cp0) New non-const accessor.
      	(set_system_library) Remove.
      	* src/vm-tasks.cc:
      	Access cp0 to set system library.
      
      5ce2b34b
    • Benoit Perrot's avatar
      2006-01-08 Benoît Perrot <benoit@lrde.epita.fr> · ccb4add9
      Benoit Perrot authored
      	Do not call exit_set inside control coprocessor
      
      	* src/vm/cp0.hh, src/vm/cp0.hxx:
      	(get_register) New.
      	(raise_overflow, raise_addr_load, raise_addr_store): Activate
      	fatal_exception_, remove call to exit_set.
      	* src/vm/virtual_machine.cc:
      	(execute) Use exit_set to report internal exception.
      
      ccb4add9
    • Benoit Perrot's avatar
      2006-01-08 Benoît Perrot <benoit@lrde.epita.fr> · 313aa026
      Benoit Perrot authored
      	Remove dirty access to libparse internal
      
      	* src/inst/program_solver.gen.py, src/inst/program_solver.hxx:
      	Replace dirty access to libparse internal by an internal flag.
      	* src/inst-tasks.cc:
      	Use it.
      	
      313aa026
    • Benoit Perrot's avatar
      2006-01-08 Benoît Perrot <benoit@lrde.epita.fr> · 883f5fac
      Benoit Perrot authored
      	Move inline implementations from .hh files to .hxx
      
      	* src/inst/register.hh,
      	* src/inst/label.hh,
      	* src/inst/text_label.hh,
      	* src/inst/exp.hh,
      	* src/inst/int_exp.hh,
      	* src/inst/label_exp.hh,
      	* src/inst/op_exp.hh,
      	* src/inst/inst.hh,
      	* src/inst/section.hh,
      	* src/inst/data_section.hh,
      	* src/inst/text_section.hh,
      	* src/inst/program.hh,
      	* src/inst/program_builder.hh.gen.py,
      	* src/inst/program_solver.gen.py,
      	* src/vm/cp0.hh,
      	* src/vm/cpu.hh,
      	* src/vm/mmu.hh,
      	* src/vm/memory.hh,
      	* src/vm/segment.hh,
      	* src/vm/system_library.hh,
      	* src/vm/spim_system_library.hh,
      	* src/vm/nolimips_system_library.hh,
      	* src/vm/virtual_machine.hh,
      	* src/shell/cmd.hh,
      	* src/shell/shell.hh,
      	* src/task/task.hh,
      	* src/task/task_register.hh:
      	Split into...
      	* src/inst/register.hxx,
      	* src/inst/label.hxx, src/inst/label.cc,
      	* src/inst/text_label.hxx, src/inst/text_label.cc,	
      	* src/inst/exp.hxx, src/inst/exp.cc,
      	* src/inst/int_exp.hxx, src/inst/int_exp.cc,
      	* src/inst/label_exp.hxx, src/inst/label_exp.cc,
      	* src/inst/op_exp.hxx, src/inst/op_exp.cc,
      	* src/inst/inst.hxx, src/inst/inst.cc,
      	* src/inst/section.hxx, src/inst/section.cc,	
      	* src/inst/data_section.hxx, src/inst/data_section.cc,
      	* src/inst/text_section.hxx, src/inst/text_section.cc,
      	* src/inst/program.hxx,
      	* src/inst/program_builder.hxx,
      	* src/inst/program_solver.hxx,
      	* src/vm/cp0.hxx,
      	* src/vm/cpu.hxx, src/vm/cpu.cc,
      	* src/vm/mmu.hxx,
      	* src/vm/memory.hxx,
      	* src/vm/segment.hxx,
      	* src/vm/system_library.hxx, src/vm/system_library.cc,
      	* src/vm/spim_system_library.hxx, src/vm/spim_system_library.cc,
      	* src/vm/nolimips_system_library.hxx, src/vm/nolimips_system_library.cc,
      	* src/vm/virtual_machine.hxx, src/vm/virtual_machine.cc,
      	* src/shell/cmd.hxx,
      	* src/shell/shell.hxx, src/shell/shell.cc,
      	* src/task/task.hxx, src/task/task.cc,
      	* src/task/task_register.hxx, src/task/task_register.cc:
      	... These files, respectively.
      	* src/inst/Makefile.am,
      	* src/shell/Makefile.am,
      	* src/task/Makefile.am,
      	* src/vm/Makefile.am:
      	Update accordingly.
      
      	* src/inst/exp-visitor.hh:
      	Use fwd.hh
      	* src/task-tasks.cc, src/nolimips-tasks.cc:
      	Include task_register.hh
      	* src/task/boolean_task.hh,
      	* src/task/function_task.hh,
      	* src/task/int_task.hh,
      	* src/task/string_task.hh:
      	Homogeneize coding style.
      
      883f5fac
  8. 07 Jan, 2006 2 commits
    • Benoit Perrot's avatar
      2006-01-07 Benoît Perrot <benoit@lrde.epita.fr> · 315c946f
      Benoit Perrot authored
      	Print a generated-file warning at the beginning of generated
      	files.
      	Suggested by Roland Levillain.
      
      	* dev/nolimips.py (generated_by_hand): Add warning string.
      	* src/parse/asm-parse.yy.gen.py,
      	* src/parse/asm-scan.ll.gen.py,
      	* src/inst/program_solver.gen.py,
      	* src/inst/nodes.gen.py,
      	* src/inst/program_builder.hh.gen.py,
      	Print warning right after license.
      	* src/inst/nodes.mk.gen.py: Remove a useless import.
      
      315c946f
    • Benoit Perrot's avatar
      2006-01-07 Benoît Perrot <benoit@lrde.epita.fr> · f5410445
      Benoit Perrot authored
      	Add forward declarations files
      
      	* src/inst/nodes.gen.py: Generate forward declarations in an
      	fwd.hh file instead of decl.hh
      	* src/inst/nodes.mk.gen.py: Update accordingly.
      	* src/parse/fwd.hh: New.
      	* src/parse/Makefile.am: Distribute.
      	* src/vm/fwd.hh: New.
      	* src/vm/Makefile.am: Distribute.
      
      f5410445
  9. 02 Jan, 2006 1 commit
    • Roland Levillain's avatar
      2006-01-02 Roland Levillain <roland@lrde.epita.fr> · b9336511
      Roland Levillain authored
      	Prepare for Bison 2.2.
      
      	* src/parse/asm-parse.yy.gen.py: Require Bison 2.1a.
      	Use the LALR(1) C++ skeleton.
      	* asm-scan.ll.gen.py: Update the the scanner to use tokens from
      	yy::parser::token.
      	* src/parse/asm-scan.hh (yylex): Adjust the types of the
      	arguments.
      	* src/parse/libparse.cc: Include parse/asm-scan.hh.
      	* build-aux/bison++.in: Remove Bison 2.0 support.
      b9336511
  10. 27 Dec, 2005 2 commits
    • Benoit Perrot's avatar
      2005-12-27 Benoît Perrot <benoit@lrde.epita.fr> · ab222035
      Benoit Perrot authored
      	print is still a python keyword
      
      	* src/misc/table.hh,
      	* src/inst/register.hh,
      	* src/inst/exp.hh, src/inst/exp.cc,
      	* src/inst/op_exp.hh, src/inst/op_exp.cc,
      	* src/inst/label_exp.hh, src/inst/label_exp.cc,
      	* src/inst/section.hh,
      	* src/inst/data_section.hh, src/inst/data_section.cc,
      	* src/inst/text_section.hh, src/inst/text_section.cc,
      	* src/inst/program.hh,
      	* src/vm/cpu.hh, src/vm/cpu.cc,
      	* src/vm/virtual_machine.hh:
      	(print) Rename as...
      	(write).
      
      ab222035
    • Benoit Perrot's avatar
      2005-12-27 Benoît Perrot <benoit@lrde.epita.fr> · 9e40ce78
      Benoit Perrot authored
      	print is a python keyword
      
      	* src/inst/inst.hh, src/inst/nodes.gen.py:
      	(print) Rename as...
      	(write).
      
      9e40ce78
  11. 23 Dec, 2005 2 commits
  12. 05 Nov, 2005 1 commit
    • Benoit Perrot's avatar
      2005-11-05 Benoît Perrot <benoit@lrde.epita.fr> · 9c8e14bd
      Benoit Perrot authored
      	Rename config/ as build-aux/ to match with up-to-date coding
      	standards.
      	
      	* config/Makefile.am, config/bison++.in,
      	* config/move-if-change, config/readline.m4:
      	Move to...
      	* build-aux/Makefile.am, build-aux/bison++.in,
      	* build-aux/move-if-change, build-aux/readline.m4:
      	... here.
      	* configure.ac, Makefile.am, src/parse/Makefile.am:
      	Adjust accordingly.
      
      9c8e14bd
  13. 20 Oct, 2005 1 commit
    • Roland Levillain's avatar
      2005-10-20 Roland Levillain <roland@lrde.epita.fr> · 2d20d595
      Roland Levillain authored
      	Update bison++.
      
      	* configure.ac: Check for bison instead of yacc.
      	(AC_CONFIG_FILES): Generate config/bison++.
      	* config/bison++: Rename as...
      	* config/bison++.in: ...this.
      	Be robust to absolute srcdir paths.
      	* config/Makefile.am (dist_noinst_SCRIPTS): Move bison++...
      	(nodist_noinst_SCRIPTS): ...here (new variable).
      	* src/parse/Makefile.am (BISONXX, BISONXX_IN): New.
      	(BISONXX_IN): New rule.
      	(EXTRA_DIST): Add $(srcdir)/asm-parse.yy.
      	((srcdir)/bison++.stamp): Add $(srcdir)/asm-parse.yy as a
      	dependency and ensure bison++ is up-to-date.
      	(libparse_a_SOURCES): Remove asm-parse.yy.
      	Add asm-parse.cc.
      2d20d595
  14. 16 Oct, 2005 1 commit
    • Benoit Perrot's avatar
      2005-10-16 Benoît Perrot <benoit@lrde.epita.fr> · 11416d95
      Benoit Perrot authored
      	Provide --system-library option.
      
      	* src/task/string_task.hh, src/task/string_task.cc:
      	New.
      	* src/task/libtask.hh, src/task/Makefile.am:
      	Distribute them.
      	* src/vm-tasks.hh, src/vm-tasks.hh:
      	(select_system_library): Implement builtin system library
      	selection.
      	* NEWS: Update.
      
      11416d95
  15. 03 Oct, 2005 1 commit
  16. 01 Oct, 2005 1 commit
    • Benoit Perrot's avatar
      2005-10-01 Benoît Perrot <benoit@lrde.epita.fr> · 1fd5e72f
      Benoit Perrot authored
      	Introduce nolimips system library.
      	
      	* src/vm/nolimips_system_library.hh,
      	* src/vm/nolimips_system_library.hxx,
      	* src/vm/nolimips_system_library.cc:
      	Provide a set of some libc functions as syscalls.
      	* src/vm/Makefile.am: Distribute these new files.
      	* src/vm-tasks.cc: Fix missing include.
      	
      1fd5e72f
  17. 28 Sep, 2005 1 commit
  18. 25 Sep, 2005 1 commit
    • Benoit Perrot's avatar
      2005-09-25 Benoît Perrot <benoit@lrde.epita.fr> · 4fbb0766
      Benoit Perrot authored
      	Reduce includes' dependencies.
      	
      	* src/vm/cpu.hh, src/vm/cpu.cc
      	* src/vm/virtual_machine.hh, src/vm/virtual_machine.cc
      	* src/parse/asm-parse.yy.gen.py, src/parse/asm-scan.ll.gen.py,
      	* src/inst/register.hh,
      	* src/inst/op_exp.hh,
      	* src/inst/label_exp.hh,
      	* src/inst/exp.hh,
      	* src/inst/section.hh, src/inst/data_section.hh,
      	* src/inst/program.hh
      	* src/inst/nodes.gen.py
      	* src/inst/inst.hh
      	* src/inst/label.hh:
      	Remove unused includes, forward-declare classes.
      
      4fbb0766
  19. 24 Sep, 2005 1 commit
    • Benoit Perrot's avatar
      2005-09-24 Benoît Perrot <benoit@lrde.epita.fr> · 902282e4
      Benoit Perrot authored
      	Introduce system libraries.
      
      	* src/vm/cpu.hh, src/vm/cpu.cc:
      	Export mmu and cp0. Move syscalls' implementation to...
      	* src/vm/system_library.hh, src/vm/system_library.cc,
      	* src/vm/spim_system_library.hh, src/vm/spim_system_library.hxx,
      	* src/vm/spim_system_library.cc:
      	These new files.
      	* src/vm/cp0.hh: Export fatal_exception flag.
      	* src/vm/Makefile.am: Update accordingly.
      	* src/vm/virtual_machine.hh, src/vm/virtual_machine.cc:
      	Propagate system library to cpu.
      	* src/vm-tasks.cc: 
      	Give a default system library to virtual machine.
      
      902282e4
  20. 17 Sep, 2005 2 commits
  21. 03 Sep, 2005 2 commits
    • Benoit Perrot's avatar
      2005-09-03 Benoît Perrot <benoit@lrde.epita.fr> · c87d6b9a
      Benoit Perrot authored
      	Detect several definitions of the same label in a section.
      
      	* src/inst/section.hh (register_label):
      	Return false when label is already known in the section, true
      	otherwise. Move implementation to...
      	* src/inst/section.cc, src/inst/Makefile.am:
      	This new file.
      	* src/inst/data_section.hh, src/inst/data_section.cc,
      	* src/inst/text_section.hh, src/inst/text_section.cc (define_label):
      	Propagate status of register_label.
      	* src/inst/program_builder.hh.gen.py:
      	Generate an error when a label is defined more than once.
      	* tests/solve/data-label-already-defined.s,
      	* tests/solve/text-label-already-defined.s,
      	* tests/solve/Makefile.am:
      	Test it.
      
      c87d6b9a
    • Benoit Perrot's avatar
      2005-09-03 Benoît Perrot <benoit@lrde.epita.fr> · cca2f866
      Benoit Perrot authored
      	* src/misc/unique_string.hh, src/misc/unique_string.cc: 
      	Introduce a constructor from a const char*. Factor string
      	insertion in pool.
      	Suggested by Akim Demaille: Use a set of strings instead of a set
      	of pointers as internal pool. Compose an iterator instead of a
      	pointer.
      	* src/parse/asm-scan.ll.gen.py: 
      	Suggested by Akim Demaille: Don't be affraid to side-affect
      	yytext.
      
      cca2f866
  22. 01 Sep, 2005 2 commits
    • Benoit Perrot's avatar
      2005-09-01 Benoît Perrot <benoit@lrde.epita.fr> · 7e46b563
      Benoit Perrot authored
      	Shame on me.
      
      	* src/misc/unique_string.hh: Fix error: static member function cannot 
      	have const qualifier.
      
      7e46b563
    • Benoit Perrot's avatar
      2005-09-01 Benoît Perrot <benoit@lrde.epita.fr> · 082b5c71
      Benoit Perrot authored
      	Simplify unique_string construction.
      
      	* src/misc/unique_string.hh, src/misc/unique_string.cc (create):
      	Remove. Move its implementation to unique_string's constructor,
      	hence make unique_string aggregate a pointer-to-string instead of a
      	reference.
      	* src/misc/test-unique_string.cc, src/vm/virtual_machine.cc, 
      	* src/shell/shell.cc, src/parse/asm-parse.yy.gen.py,
      	* src/parse/asm-scan.ll.gen.py, src/inst/label_exp.hh,
      	* src/inst/section.hh, src/inst/label.hh:
      	Adjust.
      
      082b5c71
  23. 07 Aug, 2005 2 commits
  24. 31 Jul, 2005 2 commits
    • Benoit Perrot's avatar
      2005-07-31 Benoît Perrot <benoit@nostromo.lrde.epita.fr> · e7ae3852
      Benoit Perrot authored
      	Move generators to source directories.
      
      	* dev/parse-asm-parse-gen.py, dev/parse-asm-scan-gen.py,
      	* dev/inst-solver-gen.py, dev/inst-nodes-gen.py,
      	* dev/inst-builder-gen.py, dev/inst-nodes-mk-gen.py,
      	* dev/doc-inst-set-gen.py:
      	Move to...
      	* src/parse/asm-parse.yy.gen.py, src/parse/asm-scan.ll.gen.py,
      	* src/inst/program_solver.gen.py, src/inst/nodes.gen.py,
      	* src/inst/program_builder.hh.gen.py, src/inst/nodes.mk.gen.py,
      	* doc/inst-set.texi.gen.py:
      	These files (respectively).
      	* src/parse/Makefile.am, src/inst/Makefile.am, doc/Makefile.am,
      	* Makefile.am:
      	Update accordingly.
      	
      e7ae3852
    • Benoit Perrot's avatar
      2005-07-31 Benoît Perrot <benoit@nostromo.lrde.epita.fr> · 50db7c36
      Benoit Perrot authored
      	* configure.ac: Bump to 0.8a
      	* NEWS: Fix release date.
      
      50db7c36
  25. 11 Jul, 2005 1 commit