summaryrefslogtreecommitdiff
path: root/sim/process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/process.cc')
-rw-r--r--sim/process.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/process.cc b/sim/process.cc
index c5eee4527..28d59e22c 100644
--- a/sim/process.cc
+++ b/sim/process.cc
@@ -75,6 +75,7 @@ Process::Process(const string &name,
// allocate initial register file
init_regs = new RegFile;
+ memset(init_regs, 0, sizeof(RegFile));
// initialize first 3 fds (stdin, stdout, stderr)
fd_map[STDIN_FILENO] = stdin_fd;