gem5/base
Kevin Lim e7825aab59 Changes to support automatic renaming of the shadow registers at decode time. This requires using an ExtMachInst (uint64_t) instead of the normal MachInst; the ExtMachInst is packed with extra decode context information. In the case of Alpha, the PAL mode is included.
The shadow registers are folded into the normal integer registers to ease renaming indexing.

Include the removed Opcdec class of instructions for faulting when a pal mode only instruction is decoded in non-pal mode.

arch/alpha/ev5.cc:
    Changes to automatically map the shadow registers if the instruction is in PAL mode.
arch/alpha/isa/branch.isa:
arch/alpha/isa/decoder.isa:
arch/alpha/isa/fp.isa:
arch/alpha/isa/int.isa:
arch/alpha/isa/mem.isa:
arch/alpha/isa/pal.isa:
arch/alpha/isa/unimp.isa:
    Changes for automatically using the shadow registers.  Now instructions must decode based on an ExtMachInst, which is a MachInst with any decode context information concatenated onto the higher order bits.
arch/alpha/isa/main.isa:
    Changes for automatically using the shadow registers.  Now instructions must decode based on an ExtMachInst, which is a MachInst with any decode context information concatenated onto the higher order bits.

    The decoder (for Alpha) uses the 32nd bit in order to determine if the machine is in PAL mode.  If it is, then it refers to the reg_redir table to determine the true index of the register it is using.

    Also include the opcdec instruction definition.
arch/alpha/isa_traits.hh:
    Define ExtMachInst type that is used by the static inst in order to decode the instruction, given the context of being in pal mode or not.

    Redefine the number of Int registers, splitting it into NumIntArchRegs (32) and NumIntRegs (32 + 8 shadow registers).

    Change the dependence tags to reflect the integer registers include the 8 shadow registers.

    Define function to make an ExtMachInst.  Currently it is somewhat specific to Alpha; in the future it must be decided to make this more generic and possibly slower, or leave it specific to each architecture and ifdef it within the CPU.
arch/isa_parser.py:
    Have static insts decode on the ExtMachInst.
base/remote_gdb.cc:
    Support the automatic remapping of shadow registers.  Remote GDB must now look at the PC being read in order to tell if it should use the normal register indices or the shadow register indices.
cpu/o3/regfile.hh:
    Comment out the pal registers; they are now a part of the integer registers.
cpu/simple/cpu.cc:
    Create an ExtMachInst to decode on, based on the normal MachInst and the PC of the instructoin.
cpu/static_inst.hh:
    Change from MachInst to ExtMachInst to support shadow register renaming.

--HG--
extra : convert_revision : 1d23eabf735e297068e1917445a6348e9f8c88d5
2006-03-03 15:28:25 -05:00
..
compression Many files: 2005-06-05 05:16:00 -04:00
loader Changed targetarch to just arch. 2006-02-27 05:35:43 -05:00
stats better placement of database commits 2005-11-20 18:25:31 -05:00
bitfield.hh Many files: 2005-06-05 05:16:00 -04:00
callback.hh Many files: 2005-06-05 05:16:00 -04:00
circlebuf.cc Many files: 2005-06-05 05:16:00 -04:00
circlebuf.hh Many files: 2005-06-05 05:16:00 -04:00
cprintf.cc Many files: 2005-06-05 05:16:00 -04:00
cprintf.hh Many files: 2005-06-05 05:16:00 -04:00
cprintf_formats.hh Many files: 2005-06-05 05:16:00 -04:00
crc.cc Many files: 2005-06-05 04:21:22 -04:00
crc.hh Many files: 2005-06-05 05:16:00 -04:00
date.cc Many files: 2005-06-05 05:16:00 -04:00
dbl_list.hh Many files: 2005-06-05 05:16:00 -04:00
endian.hh Many files: 2005-06-05 05:16:00 -04:00
fast_alloc.cc Many files: 2005-06-05 05:16:00 -04:00
fast_alloc.hh Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
fenv.hh Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
fifo_buffer.cc Many files: 2005-06-05 05:16:00 -04:00
fifo_buffer.hh Many files: 2005-06-05 05:16:00 -04:00
hashmap.hh Many files: 2005-06-05 05:16:00 -04:00
hostinfo.cc format string did not match variable size -> stack corruption 2005-09-12 16:09:51 -04:00
hostinfo.hh Many files: 2005-06-05 05:16:00 -04:00
hybrid_pred.cc Many files: 2005-06-05 05:16:00 -04:00
hybrid_pred.hh Many files: 2005-06-05 05:16:00 -04:00
inet.cc Many files: 2005-06-05 05:16:00 -04:00
inet.hh Many files: 2005-06-05 05:16:00 -04:00
inifile.cc Many files: 2005-06-05 05:16:00 -04:00
inifile.hh Many files: 2005-06-05 05:16:00 -04:00
intmath.cc Change base/intmath.{cc,hh} to follow m5 style. 2005-12-23 13:32:31 -05:00
intmath.hh fix problems on darwin/*BSD for syscall emulation mode 2006-02-10 14:21:32 -05:00
kgdb.h Many files: 2005-06-05 04:21:22 -04:00
match.cc Many files: 2005-06-05 05:16:00 -04:00
match.hh Many files: 2005-06-05 05:16:00 -04:00
misc.cc Many files: 2005-06-05 05:16:00 -04:00
misc.hh Many files: 2005-06-05 05:16:00 -04:00
mod_num.hh Many files: 2005-06-05 05:16:00 -04:00
mysql.cc Many files: 2005-06-05 05:16:00 -04:00
mysql.hh fixes for gcc 4.0 2005-09-12 03:01:43 -04:00
output.cc Rework the command line paramters for python output and how 2005-02-11 09:47:41 -05:00
output.hh Rework the command line paramters for python output and how 2005-02-11 09:47:41 -05:00
pollevent.cc Many files: 2005-06-05 05:16:00 -04:00
pollevent.hh fixes for gcc 4.0 2005-09-12 03:01:43 -04:00
predictor.hh Many files: 2005-06-05 05:16:00 -04:00
random.cc Update random come to always have explict min/max 2005-11-11 18:41:45 -05:00
random.hh Update random come to always have explict min/max 2005-11-11 18:41:45 -05:00
range.cc Many files: 2005-06-05 05:16:00 -04:00
range.hh Fix minor doxygen issues. 2005-06-05 08:08:29 -04:00
refcnt.hh Changed Fault from a FaultBase * to a RefCountingPtr, added "new"s where appropriate, and took away the constant examples of each fault which where for comparing to a fault to determine its type. 2006-02-24 01:51:45 -05:00
remote_gdb.cc Changes to support automatic renaming of the shadow registers at decode time. This requires using an ExtMachInst (uint64_t) instead of the normal MachInst; the ExtMachInst is packed with extra decode context information. In the case of Alpha, the PAL mode is included. 2006-03-03 15:28:25 -05:00
remote_gdb.hh Made Addr a global type 2006-02-21 03:38:21 -05:00
res_list.hh Many files: 2005-06-05 05:16:00 -04:00
sat_counter.cc Many files: 2005-06-05 05:16:00 -04:00
sat_counter.hh Many files: 2005-06-05 05:16:00 -04:00
sched_list.hh Replace ad-hoc or locally defined power-of-2 tests 2006-02-08 10:40:43 -05:00
socket.cc fix problems on darwin/*BSD for syscall emulation mode 2006-02-10 14:21:32 -05:00
socket.hh Many files: 2005-06-05 05:16:00 -04:00
statistics.cc Change base/intmath.{cc,hh} to follow m5 style. 2005-12-23 13:32:31 -05:00
statistics.hh Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
str.cc Change base/intmath.{cc,hh} to follow m5 style. 2005-12-23 13:32:31 -05:00
str.hh Many files: 2005-06-05 05:16:00 -04:00
time.cc Many files: 2005-06-05 05:16:00 -04:00
time.hh Many files: 2005-06-05 05:16:00 -04:00
timebuf.hh Many files: 2005-06-05 05:16:00 -04:00
trace.cc Many files: 2005-06-05 05:16:00 -04:00
trace.hh Syscall DPRINTF and warning cleanup. 2005-11-10 21:05:31 -05:00
traceflags.py Syscall DPRINTF and warning cleanup. 2005-11-10 21:05:31 -05:00
userinfo.cc Many files: 2005-06-05 05:16:00 -04:00
userinfo.hh Many files: 2005-06-05 05:16:00 -04:00