From 29e5df890d9512a6a2c726dcb4ee46b92ac4cb22 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 28 Feb 2007 16:36:38 +0000 Subject: 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 --- src/sim/process.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sim/process.hh') diff --git a/src/sim/process.hh b/src/sim/process.hh index bf65c6e06..1226db81b 100644 --- a/src/sim/process.hh +++ b/src/sim/process.hh @@ -44,6 +44,7 @@ #include #include "base/statistics.hh" +#include "sim/host.hh" #include "sim/sim_object.hh" class ThreadContext; @@ -59,7 +60,7 @@ namespace TheISA void copyStringArray(std::vector &strings, Addr array_ptr, - Addr data_ptr, TranslatingPort* memPort); + Addr data_ptr, TranslatingPort* memPort, int ptr_size = sizeof(Addr)); class Process : public SimObject { -- cgit v1.2.3