From aeb8e8ccb7d9a69e44c3943a5e82b6e58e7082f3 Mon Sep 17 00:00:00 2001
From: Steve Reinhardt <stever@eecs.umich.edu>
Date: Wed, 24 Mar 2004 23:29:10 -0800
Subject: Minor cleanup from building & diffing behavior on various platforms.

base/hashmap.hh:
    gcc on Alpha doesn't always define __LP64__,
    even though it arguably should.
cpu/exec_context.cc:
    Clear register file on non-full-system too (even though
    it typically gets overwritten by the initial regs from
    the Process object).
sim/process.cc:
    Clear initial register copy in Process object.
    Not all regs get initialized when the executable is loaded.

--HG--
extra : convert_revision : f1fe4734a5ea81331d70994cb5284b1e9db0dceb
---
 cpu/exec_context.cc | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'cpu/exec_context.cc')

diff --git a/cpu/exec_context.cc b/cpu/exec_context.cc
index eedd8b8a8..e7d3e0b91 100644
--- a/cpu/exec_context.cc
+++ b/cpu/exec_context.cc
@@ -60,6 +60,7 @@ ExecContext::ExecContext(BaseCPU *_cpu, int _thread_num,
       process(_process), mem(process->getMemory()), asid(_asid),
       func_exe_inst(0), storeCondFailures(0)
 {
+    memset(&regs, 0, sizeof(RegFile));
 }
 
 ExecContext::ExecContext(BaseCPU *_cpu, int _thread_num,
@@ -67,6 +68,7 @@ ExecContext::ExecContext(BaseCPU *_cpu, int _thread_num,
     : cpu(_cpu), thread_num(_thread_num), process(0), mem(_mem), asid(_asid),
       func_exe_inst(0), storeCondFailures(0)
 {
+    memset(&regs, 0, sizeof(RegFile));
 }
 #endif
 
-- 
cgit v1.2.3


From 65205b82acee56b0034c0122d5f5a89f57c760fc Mon Sep 17 00:00:00 2001
From: Steve Reinhardt <stever@eecs.umich.edu>
Date: Sat, 3 Apr 2004 13:46:10 -0800
Subject: More {Itb,Dtb} -> {ITB,DTB} renames (forgot to test build KERNEL).
 Also missed renames in a bunch of config files somehow. (See previous
 changeset for list of renames.)

arch/alpha/alpha_memory.cc:
arch/alpha/ev5.cc:
arch/alpha/faults.hh:
cpu/exec_context.cc:
cpu/exec_context.hh:
cpu/simple_cpu/simple_cpu.hh:
    More {Itb,Dtb} -> {ITB,DTB} renames (forgot to test build KERNEL).

--HG--
extra : convert_revision : b2c6ca0916b72b59895520fcacaf028667560a0d
---
 cpu/exec_context.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'cpu/exec_context.cc')

diff --git a/cpu/exec_context.cc b/cpu/exec_context.cc
index e7d3e0b91..a89cf4bb5 100644
--- a/cpu/exec_context.cc
+++ b/cpu/exec_context.cc
@@ -42,7 +42,7 @@ using namespace std;
 // constructor
 #ifdef FULL_SYSTEM
 ExecContext::ExecContext(BaseCPU *_cpu, int _thread_num, System *_sys,
-                         AlphaItb *_itb, AlphaDtb *_dtb,
+                         AlphaITB *_itb, AlphaDTB *_dtb,
                          FunctionalMemory *_mem)
     : _status(ExecContext::Unallocated),
       kernelStats(this, _cpu), cpu(_cpu), thread_num(_thread_num),
-- 
cgit v1.2.3