Make trap instructions always generate TrapInstruction Fault objects which call into...
authorGabe Black <gblack@eecs.umich.edu>
Wed, 28 Feb 2007 16:36:38 +0000 (16:36 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 28 Feb 2007 16:36:38 +0000 (16:36 +0000)
commit29e5df890d9512a6a2c726dcb4ee46b92ac4cb22
tree4858cf8e087521bba01ad78783a5f4a768b5ab26
parent99948060b2863b37c0db5e6b609ff7ff30de6d1b
Make trap instructions always generate TrapInstruction Fault objects which call into the Process object to handle system calls. Refactored the Process objects, and move the handler code into it's own file, and add some syscalls which are used in a natively compiled hello world. Software traps with trap number 3 (not syscall number 3) are supposed to cause the register windows to be flushed but are ignored right now. Finally, made uname for SPARC report a 2.6.12 kernel which is what m22-018.pool happens to be running.

--HG--
extra : convert_revision : ea873f01c62234c0542f310cc143c6a7c76ade94
12 files changed:
src/arch/sparc/faults.cc
src/arch/sparc/faults.hh
src/arch/sparc/isa/decoder.isa
src/arch/sparc/linux/process.cc
src/arch/sparc/linux/process.hh
src/arch/sparc/process.cc
src/arch/sparc/process.hh
src/base/loader/elf_object.cc
src/base/loader/object_file.hh
src/cpu/thread_context.hh
src/sim/process.cc
src/sim/process.hh