changeset 99ca47c2130b in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=99ca47c2130b
description:
        merge

diffstat:

164 files changed, 4889 insertions(+), 9219 deletions(-)
src/arch/SConscript                                                             
     |    3 
src/arch/alpha/SConscript                                                       
     |    6 
src/arch/alpha/ev5.cc                                                           
     |   16 
src/arch/alpha/ev5.hh                                                           
     |    4 
src/arch/alpha/floatregfile.cc                                                  
     |   57 
src/arch/alpha/floatregfile.hh                                                  
     |  119 -
src/arch/alpha/intregfile.cc                                                    
     |   74 
src/arch/alpha/intregfile.hh                                                    
     |   73 
src/arch/alpha/isa.cc                                                           
     |  150 +
src/arch/alpha/isa.hh                                                           
     |  117 +
src/arch/alpha/isa/main.isa                                                     
     |    5 
src/arch/alpha/isa_traits.hh                                                    
     |   42 
src/arch/alpha/locked_mem.hh                                                    
     |    2 
src/arch/alpha/miscregfile.cc                                                   
     |  158 --
src/arch/alpha/miscregfile.hh                                                   
     |  126 -
src/arch/alpha/mmaped_ipr.hh                                                    
     |    3 
src/arch/alpha/regfile.cc                                                       
     |  100 -
src/arch/alpha/regfile.hh                                                       
     |  230 --
src/arch/alpha/registers.hh                                                     
     |  109 +
src/arch/alpha/regredir.cc                                                      
     |   52 
src/arch/alpha/regredir.hh                                                      
     |   43 
src/arch/alpha/remote_gdb.cc                                                    
     |    1 
src/arch/alpha/types.hh                                                         
     |   16 
src/arch/alpha/utility.cc                                                       
     |   35 
src/arch/alpha/utility.hh                                                       
     |   10 
src/arch/arm/SConscript                                                         
     |    1 
src/arch/arm/faults.cc                                                          
     |    2 
src/arch/arm/insts/macromem.hh                                                  
     |   42 
src/arch/arm/insts/mem.cc                                                       
     |   19 
src/arch/arm/insts/mem.hh                                                       
     |   91 -
src/arch/arm/insts/pred_inst.cc                                                 
     |   12 
src/arch/arm/insts/pred_inst.hh                                                 
     |  116 -
src/arch/arm/insts/static_inst.cc                                               
     |   89 -
src/arch/arm/insts/static_inst.hh                                               
     |    2 
src/arch/arm/isa.hh                                                             
     |  106 +
src/arch/arm/isa/decoder.isa                                                    
     |  294 ---
src/arch/arm/isa/formats/macromem.isa                                           
     |  237 ++-
src/arch/arm/isa/formats/mem.isa                                                
     |  291 +--
src/arch/arm/isa/formats/util.isa                                               
     |   96 -
src/arch/arm/isa/operands.isa                                                   
     |   51 
src/arch/arm/isa_traits.hh                                                      
     |   44 
src/arch/arm/regfile.hh                                                         
     |   36 
src/arch/arm/regfile/float_regfile.hh                                           
     |  181 --
src/arch/arm/regfile/int_regfile.hh                                             
     |  118 -
src/arch/arm/regfile/misc_regfile.hh                                            
     |   84 -
src/arch/arm/regfile/regfile.cc                                                 
     |   86 -
src/arch/arm/regfile/regfile.hh                                                 
     |  206 --
src/arch/arm/registers.hh                                                       
     |  150 +
src/arch/arm/types.hh                                                           
     |   20 
src/arch/arm/utility.hh                                                         
     |   12 
src/arch/isa_parser.py                                                          
     |  168 +-
src/arch/mips/SConscript                                                        
     |    5 
src/arch/mips/faults.cc                                                         
     |    2 
src/arch/mips/isa.cc                                                            
     |  621 ++++++++
src/arch/mips/isa.hh                                                            
     |  180 ++
src/arch/mips/isa/formats/fp.isa                                                
     |   34 
src/arch/mips/isa/includes.isa                                                  
     |    1 
src/arch/mips/isa/operands.isa                                                  
     |    5 
src/arch/mips/isa_traits.hh                                                     
     |  213 --
src/arch/mips/locked_mem.hh                                                     
     |    2 
src/arch/mips/mips_core_specific.cc                                             
     |   15 
src/arch/mips/mt.hh                                                             
     |    3 
src/arch/mips/regfile.cc                                                        
     |  211 --
src/arch/mips/regfile.hh                                                        
     |   36 
src/arch/mips/regfile/float_regfile.cc                                          
     |  151 -
src/arch/mips/regfile/float_regfile.hh                                          
     |  104 -
src/arch/mips/regfile/int_regfile.cc                                            
     |  103 -
src/arch/mips/regfile/int_regfile.hh                                            
     |   87 -
src/arch/mips/regfile/misc_regfile.cc                                           
     |  631 --------
src/arch/mips/regfile/misc_regfile.hh                                           
     |  167 --
src/arch/mips/regfile/regfile.cc                                                
     |  225 --
src/arch/mips/regfile/regfile.hh                                                
     |  113 -
src/arch/mips/registers.hh                                                      
     |  307 +++
src/arch/mips/tlb.cc                                                            
     |   15 
src/arch/mips/types.hh                                                          
     |   20 
src/arch/mips/utility.cc                                                        
     |   24 
src/arch/mips/utility.hh                                                        
     |   19 
src/arch/sparc/SConscript                                                       
     |    5 
src/arch/sparc/floatregfile.cc                                                  
     |  197 --
src/arch/sparc/floatregfile.hh                                                  
     |   86 -
src/arch/sparc/interrupts.hh                                                    
     |    1 
src/arch/sparc/intregfile.cc                                                    
     |   80 -
src/arch/sparc/intregfile.hh                                                    
     |   70 
src/arch/sparc/isa.cc                                                           
     |  770 ++++++++++
src/arch/sparc/isa.hh                                                           
     |  213 ++
src/arch/sparc/isa/includes.isa                                                 
     |    2 
src/arch/sparc/isa_traits.hh                                                    
     |   22 
src/arch/sparc/linux/process.cc                                                 
     |    2 
src/arch/sparc/miscregfile.cc                                                   
     |  724 ---------
src/arch/sparc/miscregfile.hh                                                   
     |  303 ---
src/arch/sparc/miscregs.hh                                                      
     |  159 ++
src/arch/sparc/predecoder.hh                                                    
     |    2 
src/arch/sparc/process.cc                                                       
     |    3 
src/arch/sparc/regfile.cc                                                       
     |  396 -----
src/arch/sparc/regfile.hh                                                       
     |  134 -
src/arch/sparc/registers.hh                                                     
     |   80 +
src/arch/sparc/solaris/process.cc                                               
     |    2 
src/arch/sparc/sparc_traits.hh                                                  
     |    3 
src/arch/sparc/tlb.cc                                                           
     |    2 
src/arch/sparc/types.hh                                                         
     |   12 
src/arch/sparc/ua2005.cc                                                        
     |   59 
src/arch/sparc/utility.cc                                                       
     |  155 ++
src/arch/sparc/utility.hh                                                       
     |    5 
src/arch/x86/SConscript                                                         
     |    5 
src/arch/x86/emulenv.hh                                                         
     |    1 
src/arch/x86/floatregfile.cc                                                    
     |  141 -
src/arch/x86/floatregfile.hh                                                    
     |  138 -
src/arch/x86/intregfile.cc                                                      
     |  132 -
src/arch/x86/intregfile.hh                                                      
     |  129 -
src/arch/x86/isa.cc                                                             
     |  379 ++++
src/arch/x86/isa.hh                                                             
     |   77 +
src/arch/x86/isa/includes.isa                                                   
     |    3 
src/arch/x86/isa/insts/general_purpose/control_transfer/interrupts_and_exceptions.py
 |    2 
src/arch/x86/isa_traits.hh                                                      
     |   34 
src/arch/x86/linux/process.cc                                                   
     |    2 
src/arch/x86/miscregfile.cc                                                     
     |  406 -----
src/arch/x86/miscregfile.hh                                                     
     |  138 -
src/arch/x86/process.cc                                                         
     |    1 
src/arch/x86/regfile.cc                                                         
     |  275 ---
src/arch/x86/regfile.hh                                                         
     |  160 --
src/arch/x86/registers.hh                                                       
     |  133 +
src/arch/x86/tlb.cc                                                             
     |    2 
src/arch/x86/types.hh                                                           
     |   18 
src/arch/x86/utility.cc                                                         
     |   26 
src/arch/x86/utility.hh                                                         
     |    5 
src/cpu/checker/cpu.cc                                                          
     |    3 
src/cpu/checker/cpu.hh                                                          
     |   36 
src/cpu/checker/thread_context.hh                                               
     |   18 
src/cpu/exec_context.hh                                                         
     |   17 
src/cpu/inorder/cpu.cc                                                          
     |   54 
src/cpu/inorder/cpu.hh                                                          
     |   33 
src/cpu/inorder/inorder_dyn_inst.cc                                             
     |   39 
src/cpu/inorder/inorder_dyn_inst.hh                                             
     |   28 
src/cpu/inorder/resources/execution_unit.cc                                     
     |    3 
src/cpu/inorder/resources/use_def.cc                                            
     |   23 
src/cpu/inorder/thread_context.cc                                               
     |   25 
src/cpu/inorder/thread_context.hh                                               
     |   14 
src/cpu/inorder/thread_state.hh                                                 
     |    4 
src/cpu/legiontrace.cc                                                          
     |    8 
src/cpu/nativetrace.cc                                                          
     |    2 
src/cpu/o3/cpu.cc                                                               
     |   64 
src/cpu/o3/cpu.hh                                                               
     |   35 
src/cpu/o3/dyn_inst.hh                                                          
     |   25 
src/cpu/o3/free_list.hh                                                         
     |    2 
src/cpu/o3/regfile.hh                                                           
     |   96 -
src/cpu/o3/rename_impl.hh                                                       
     |    8 
src/cpu/o3/thread_context.hh                                                    
     |   11 
src/cpu/o3/thread_context_impl.hh                                               
     |   92 -
src/cpu/o3/thread_state.hh                                                      
     |    4 
src/cpu/ozone/cpu.hh                                                            
     |    9 
src/cpu/ozone/cpu_impl.hh                                                       
     |   53 
src/cpu/ozone/dyn_inst.hh                                                       
     |   30 
src/cpu/ozone/thread_state.hh                                                   
     |    5 
src/cpu/simple/base.cc                                                          
     |    2 
src/cpu/simple/base.hh                                                          
     |   27 
src/cpu/simple_thread.cc                                                        
     |   31 
src/cpu/simple_thread.hh                                                        
     |  141 +
src/cpu/thread_context.hh                                                       
     |   33 
src/cpu/thread_state.cc                                                         
     |   11 
src/cpu/thread_state.hh                                                         
     |   21 
src/kern/tru64/tru64.hh                                                         
     |    2 
src/mem/physical.cc                                                             
     |    2 
src/sim/process.hh                                                              
     |    2 
src/sim/syscall_emul.cc                                                         
     |    2 

diffs (truncated from 17152 to 300 lines):

diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/SConscript
--- a/src/arch/SConscript       Mon Jul 13 14:45:15 2009 -0500
+++ b/src/arch/SConscript       Mon Jul 13 14:49:51 2009 -0500
@@ -46,6 +46,7 @@
         arguments.hh
         faults.hh
         interrupts.hh
+       isa.hh
         isa_traits.hh
         kernel_stats.hh
         locked_mem.hh
@@ -54,7 +55,7 @@
         mt.hh
         process.hh
         predecoder.hh
-        regfile.hh
+        registers.hh
         remote_gdb.hh
         stacktrace.hh
         tlb.hh
diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/alpha/SConscript
--- a/src/arch/alpha/SConscript Mon Jul 13 14:45:15 2009 -0500
+++ b/src/arch/alpha/SConscript Mon Jul 13 14:49:51 2009 -0500
@@ -34,12 +34,10 @@
 if env['TARGET_ISA'] == 'alpha':
     Source('ev5.cc')
     Source('faults.cc')
-    Source('floatregfile.cc')
-    Source('intregfile.cc')
     Source('ipr.cc')
-    Source('miscregfile.cc')
+    Source('isa.cc')
     Source('pagetable.cc')
-    Source('regfile.cc')
+    Source('regredir.cc')
     Source('remote_gdb.cc')
     Source('tlb.cc')
     Source('utility.cc')
diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/alpha/ev5.cc
--- a/src/arch/alpha/ev5.cc     Mon Jul 13 14:45:15 2009 -0500
+++ b/src/arch/alpha/ev5.cc     Mon Jul 13 14:49:51 2009 -0500
@@ -127,18 +127,6 @@
     cpu->thread->setFloatReg(ZeroReg, 0.0);
 }
 
-int
-MiscRegFile::getInstAsid()
-{
-    return ITB_ASN_ASN(ipr[IPR_ITB_ASN]);
-}
-
-int
-MiscRegFile::getDataAsid()
-{
-    return DTB_ASN_ASN(ipr[IPR_DTB_ASN]);
-}
-
 #endif
 
 ////////////////////////////////////////////////////////////////////////
@@ -158,7 +146,7 @@
 }
 
 MiscReg
-MiscRegFile::readIpr(int idx, ThreadContext *tc)
+ISA::readIpr(int idx, ThreadContext *tc)
 {
     uint64_t retval = 0;        // return value, default 0
 
@@ -270,7 +258,7 @@
 #endif
 
 void
-MiscRegFile::setIpr(int idx, uint64_t val, ThreadContext *tc)
+ISA::setIpr(int idx, uint64_t val, ThreadContext *tc)
 {
     uint64_t old;
 
diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/alpha/ev5.hh
--- a/src/arch/alpha/ev5.hh     Mon Jul 13 14:45:15 2009 -0500
+++ b/src/arch/alpha/ev5.hh     Mon Jul 13 14:49:51 2009 -0500
@@ -35,6 +35,8 @@
 
 #include "arch/alpha/isa_traits.hh"
 
+class ThreadContext;
+
 namespace AlphaISA {
 
 const uint64_t AsnMask = ULL(0xff);
@@ -106,6 +108,8 @@
 const Addr PalBase = 0x4000;
 const Addr PalMax = 0x10000;
 
+void copyIprs(ThreadContext *src, ThreadContext *dest);
+
 } // namespace AlphaISA
 
 #endif // __ARCH_ALPHA_EV5_HH__
diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/alpha/floatregfile.cc
--- a/src/arch/alpha/floatregfile.cc    Mon Jul 13 14:45:15 2009 -0500
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) 2003-2005 The Regents of The University of Michigan
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Steve Reinhardt
- *          Gabe Black
- *          Kevin Lim
- */
-
-#include <cstring>
-
-#include "arch/alpha/floatregfile.hh"
-#include "sim/serialize.hh"
-
-namespace AlphaISA {
-void
-FloatRegFile::clear()
-{
-    std::memset(d, 0, sizeof(d));
-}
-
-void
-FloatRegFile::serialize(std::ostream &os)
-{
-    SERIALIZE_ARRAY(q, NumFloatRegs);
-}
-
-void
-FloatRegFile::unserialize(Checkpoint *cp, const std::string &section)
-{
-    UNSERIALIZE_ARRAY(q, NumFloatRegs);
-}
-
-} // namespace AlphaISA
diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/alpha/floatregfile.hh
--- a/src/arch/alpha/floatregfile.hh    Mon Jul 13 14:45:15 2009 -0500
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
-/*
- * Copyright (c) 2003-2005 The Regents of The University of Michigan
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Steve Reinhardt
- *          Gabe Black
- */
-
-#ifndef __ARCH_ALPHA_FLOATREGFILE_HH__
-#define __ARCH_ALPHA_FLOATREGFILE_HH__
-
-#include <iosfwd>
-#include <string>
-
-#include "arch/alpha/isa_traits.hh"
-#include "arch/alpha/types.hh"
-
-class Checkpoint;
-
-namespace AlphaISA {
-
-const int SingleWidth = 32;
-const int SingleBytes = SingleWidth / 4;
-const int DoubleWidth = 64;
-const int DoubleBytes = DoubleWidth / 4;
-const int QuadWidth = 128;
-const int QuadBytes = QuadWidth / 4;
-
-class FloatRegFile
-{
-  public:
-    static const int regWidth = DoubleWidth;
-
-    union {
-        uint64_t q[NumFloatRegs];   // integer qword view
-        double d[NumFloatRegs];     // double-precision floating point view
-    };
-
-    void clear();
-
-    void serialize(std::ostream &os);
-    void unserialize(Checkpoint *cp, const std::string &section);
-
-    FloatReg
-    readReg(int floatReg)
-    {
-        return d[floatReg];
-    }
-
-    FloatReg
-    readReg(int floatReg, int width)
-    {
-        return readReg(floatReg);
-    }
-
-    FloatRegBits
-    readRegBits(int floatReg)
-    {
-        return q[floatReg];
-    }
-
-    FloatRegBits
-    readRegBits(int floatReg, int width)
-    {
-        return readRegBits(floatReg);
-    }
-
-    void
-    setReg(int floatReg, const FloatReg &val)
-    {
-        d[floatReg] = val;
-    }
-
-    void
-    setReg(int floatReg, const FloatReg &val, int width)
-    {
-        setReg(floatReg, val);
-    }
-
-    void
-    setRegBits(int floatReg, const FloatRegBits &val)
-    {
-        q[floatReg] = val;
-    }
-
-    void
-    setRegBits(int floatReg, const FloatRegBits &val, int width)
-    {
-        setRegBits(floatReg, val);
-    }
-
-};
-
-} // namespace AlphaISA
-
-#endif // __ARCH_ALPHA_FLOATREGFILE_HH__
diff -r 61f8eb04e96d -r 99ca47c2130b src/arch/alpha/intregfile.cc
--- a/src/arch/alpha/intregfile.cc      Mon Jul 13 14:45:15 2009 -0500
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2003-2005 The Regents of The University of Michigan
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to