gem5.git
18 years agoSplit out alpha integer register file into it's own files.
Gabe Black [Fri, 10 Nov 2006 09:54:25 +0000 (04:54 -0500)]
Split out alpha integer register file into it's own files.

--HG--
extra : convert_revision : 164bdcec2860c5dca3f0f11d189781b88dd717cb

18 years agoThe reset function of the MiscRegFile really resets it now. This function is called...
Gabe Black [Fri, 10 Nov 2006 09:33:41 +0000 (04:33 -0500)]
The reset function of the MiscRegFile really resets it now. This function is called from the class's constructor.

--HG--
extra : convert_revision : 4e7a40ffe0a9a71fd1b2b171d9c0dcac50e1a1fe

18 years agoSet the ASI register to be something explicitly so that simulation is deterministic.
Gabe Black [Fri, 10 Nov 2006 09:14:25 +0000 (04:14 -0500)]
Set the ASI register to be something explicitly so that simulation is deterministic.

--HG--
extra : convert_revision : 38cd06f946fc0cc22288f71f567e77ce8fdfea99

18 years agoChange exetrace code for working with my trace tool to use stream io rather than...
Gabe Black [Fri, 10 Nov 2006 09:11:46 +0000 (04:11 -0500)]
Change exetrace code for working with my trace tool to use stream io rather than sprintf which was breaking on 64 bit hosts.

--HG--
extra : convert_revision : 184d751392dfcc8c80ac1a6c0ebc3061ff0a3f20

18 years agoFix up instructions to read and write control registers, and got rid of the control...
Gabe Black [Fri, 10 Nov 2006 09:02:39 +0000 (04:02 -0500)]
Fix up instructions to read and write control registers, and got rid of the control register fields which won't work on a big endian host.

--HG--
extra : convert_revision : 1b518873b6e1a073b58cbe27642537d5ae3a604d

18 years agoMoved the Alpha MiscRegFile into it's own file, and got rid of the Alpha specific...
Gabe Black [Fri, 10 Nov 2006 02:30:48 +0000 (21:30 -0500)]
Moved the Alpha MiscRegFile into it's own file, and got rid of the Alpha specific DepTag constants.

--HG--
extra : convert_revision : e4af5e2fb2a6953f8837ad9bda309b7d6fa7abfb

18 years agoFix a couple uninitialized variables.
Gabe Black [Fri, 10 Nov 2006 00:24:35 +0000 (19:24 -0500)]
Fix a couple uninitialized variables.

--HG--
extra : convert_revision : d17d28a9520524e5f56bd79beb9b2be6ce76a22f

18 years agoGet SPARC to the point that it starts running. Add ability to load the ROM bin files...
Ali Saidi [Thu, 9 Nov 2006 23:22:46 +0000 (18:22 -0500)]
Get SPARC to the point that it starts running. Add ability to load the ROM bin files, cleanup lockstep printing a bit
Since we don't have a platform yet, you need to comment out the default responder stuff in Bus.py to make it work.

SConstruct:
    Add TARGET_ISA to the list of environment variables that end up in the build_env for python
configs/common/FSConfig.py:
    add a simple SPARC system to being testing with, you'll need to change makeLinuxAlphaSystem to makeSparcSystem in fs.py for now
src/SConscript:
    add a raw file object, at least until we get more info about how to compile openboot properly
src/arch/sparc/system.cc:
src/arch/sparc/system.hh:
    add parameters for ROM files (OBP/Reset/Hypervisor), a ROM, load files into ROM
src/base/loader/object_file.cc:
src/base/loader/object_file.hh:
    add option to try raw when nothing works
src/cpu/exetrace.cc:
    cleanup lockstep printing a little bit
src/cpu/m5legion_interface.h:
    change the instruction to be 32 bits because it is
src/mem/physical.cc:
    fix assert that doesn't work if memory starts somewhere above 0
src/python/m5/objects/BaseCPU.py:
    Add if statement to choose between sparc tlbs and alpha tlbs
src/python/m5/objects/System.py:
    Add a sparc system that sets the rom addresses correctly
src/python/m5/params.py:
    add the ability to add Addr() together

--HG--
extra : convert_revision : bbbd8a56134f2dda2728091f740e2f7119b0c4af

18 years agoFactor out all of the encumbered stuff into separate SConscript
Nathan Binkert [Thu, 9 Nov 2006 16:43:35 +0000 (08:43 -0800)]
Factor out all of the encumbered stuff into separate SConscript
files so the directories can easily be deleted.
Remove the FullCPU from the ALL_CPU_LIST and only add it if
it exists.

--HG--
extra : convert_revision : b16f56bb92a0063803c5099732dc289fe4363768

18 years agoMerge zizzer.eecs.umich.edu:/bk/newmem/
Gabe Black [Wed, 8 Nov 2006 21:52:44 +0000 (16:52 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem/
into  zeep.eecs.umich.edu:/home/gblack/m5/newmemmemops

--HG--
extra : convert_revision : 0ab912df014cf1511e960e4058bee3eea047f9f6

18 years agothe tests assume -1 to signify MaxTick, that's changed, so fix that here.
Lisa Hsu [Wed, 8 Nov 2006 21:49:59 +0000 (16:49 -0500)]
the tests assume -1 to signify MaxTick, that's changed, so fix that here.

--HG--
extra : convert_revision : 73ff143ba3b733f80ab867fcd72489cd1ee49d76

18 years agoMerge zizzer.eecs.umich.edu:/bk/newmem/
Gabe Black [Wed, 8 Nov 2006 21:18:10 +0000 (16:18 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem/
into  zeep.eecs.umich.edu:/home/gblack/m5/newmemmemops

--HG--
extra : convert_revision : dc165840841bdd88e40111b98d1be493441703f0

18 years agoPut the MIPS stacktrace into the MipsISA namespace to fit with Alpha and SPARC.
Gabe Black [Wed, 8 Nov 2006 21:15:20 +0000 (16:15 -0500)]
Put the MIPS stacktrace into the MipsISA namespace to fit with Alpha and SPARC.

--HG--
extra : convert_revision : 86f5585fe9ceb2ee30836d35384ebcddc1357c2a

18 years agoMake a function to say how big gdbregs is in bytes vs. regs.
Gabe Black [Wed, 8 Nov 2006 20:31:52 +0000 (15:31 -0500)]
Make a function to say how big gdbregs is in bytes vs. regs.

--HG--
extra : convert_revision : 10c50c2d45a8e510d71cccde520059363116da8a

18 years agoMerge zizzer:/bk/newmem
Lisa Hsu [Wed, 8 Nov 2006 20:07:31 +0000 (15:07 -0500)]
Merge zizzer:/bk/newmem
into  zed.eecs.umich.edu:/z/hsul/work/m5/newmem

--HG--
extra : convert_revision : 5f4b39beba9f672ba1741cb45f4c3cf853ce574b

18 years agoMerge zizzer:/bk/newmem
Ali Saidi [Wed, 8 Nov 2006 20:06:17 +0000 (15:06 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : 643e28482e6739bd264a9c2d69c17279853aa0c5

18 years agoDWARF2 symbol support seems to be broken on Solaris. Use stabs+
Ali Saidi [Wed, 8 Nov 2006 20:05:54 +0000 (15:05 -0500)]
DWARF2 symbol support seems to be broken on Solaris. Use stabs+
align the character arrays that are used by placement-new for classes lest we have an unaligned fault on SPARC/Solaris

src/SConscript:
    DWARF2 symbol support seems to be broken on Solaris. Use stabs+
src/base/statistics.hh:
    align the character arrays that are used by placement-new for classes lest we have an unaligned fault on SPARC/Solaris

--HG--
extra : convert_revision : bc875a4fdfb4553062d3278537bc32a5ab9b6cca

18 years agosimplify maxtick parsing in both the python and the c++.
Lisa Hsu [Wed, 8 Nov 2006 20:05:23 +0000 (15:05 -0500)]
simplify maxtick parsing in both the python and the c++.

configs/common/Simulation.py:
    simplify maxtick code a little bit - instead of checking for -1, just set it at MaxTick.
src/python/m5/__init__.py:
    make a new m5 param called MaxTick.
src/sim/host.hh:
    fix the M5 def. of MaxTick
src/sim/main.cc:
    Simplify the MaxTick/num_cycles parsing within main.cc

--HG--
extra : convert_revision : f800addfbc1323591c2e05b892276b439b671668

18 years agomake rcS files read from the m5 source directory, not /dist.
Lisa Hsu [Wed, 8 Nov 2006 19:10:25 +0000 (14:10 -0500)]
make rcS files read from the m5 source directory, not /dist.

--HG--
extra : convert_revision : 45a2dbf5b05b19dd60fbc3a5b10e9355c8351e3b

18 years agochange to os.path.join like nate wanted.
Lisa Hsu [Wed, 8 Nov 2006 19:01:23 +0000 (14:01 -0500)]
change to os.path.join like nate wanted.

--HG--
extra : convert_revision : 6e8a0153adf04f0cc07904434e4cb6a83fe900eb

18 years agoFirst cut at full blown SPARC faults. There are a few details that are missing.
Gabe Black [Wed, 8 Nov 2006 18:58:00 +0000 (13:58 -0500)]
First cut at full blown SPARC faults. There are a few details that are missing.

--HG--
extra : convert_revision : 8023db1479cb9bf99fc9edfeb521c4e5b581f895

18 years agoMove the check to see if you're in user mode into the isa directory.
Gabe Black [Wed, 8 Nov 2006 18:55:48 +0000 (13:55 -0500)]
Move the check to see if you're in user mode into the isa directory.

--HG--
extra : convert_revision : b5b7cdf4a5e5e54228c592093516bf18d0f7dbe6

18 years agoRemove mem parameter. Should have been removed earlier.
Kevin Lim [Wed, 8 Nov 2006 18:04:36 +0000 (13:04 -0500)]
Remove mem parameter.  Should have been removed earlier.

src/python/m5/objects/BaseCPU.py:
    These parameters should have been removed in an earlier push.

--HG--
extra : convert_revision : 781b39ca370361e9568b1af0be96ff5848b1f3f4

18 years agoMerge ktlim@zizzer:/bk/newmem
Kevin Lim [Wed, 8 Nov 2006 16:41:10 +0000 (11:41 -0500)]
Merge ktlim@zizzer:/bk/newmem
into  zamp.eecs.umich.edu:/z/ktlim2/clean/newmem-busfix

--HG--
extra : convert_revision : 29426cebe81ac077c1a83f50e914ff6955ce81d4

18 years agoUpdate refs.
Kevin Lim [Wed, 8 Nov 2006 16:40:59 +0000 (11:40 -0500)]
Update refs.

tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/config.out:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/config.out:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/config.out:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/config.out:
    Update config.
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/stderr:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/stderr:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/stderr:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/stderr:
    Update ref.

--HG--
extra : convert_revision : ca4fe7ff5bf9fcd112b703b88a5196a312c594ab

18 years agoSorted faults by the trap type constant, expanded their names, added in new faults...
Gabe Black [Wed, 8 Nov 2006 15:27:38 +0000 (10:27 -0500)]
Sorted faults by the trap type constant, expanded their names, added in new faults for ua2005, and commented out ones which are apparently dropped.

--HG--
extra : convert_revision : 32bd0c3a75d7c036ad4a3cb0bc1c32e0b6cb3d87

18 years agoFix for slightly mangled merge.
Gabe Black [Wed, 8 Nov 2006 13:25:37 +0000 (08:25 -0500)]
Fix for slightly mangled merge.

--HG--
extra : convert_revision : 1dea04ca222dd423c3d462114bc1c65afa52825d

18 years agoMerge zeep.eecs.umich.edu:/home/gblack/m5/newmem
Gabe Black [Wed, 8 Nov 2006 13:19:52 +0000 (08:19 -0500)]
Merge zeep.eecs.umich.edu:/home/gblack/m5/newmem
into  zeep.eecs.umich.edu:/home/gblack/m5/newmemmemops

src/arch/sparc/faults.hh:
    Hand merged.

--HG--
extra : convert_revision : 1bcefe47fa98e878a0dfbcfa5869b5b171927911

18 years agoMajor clean up of the fault code.
Gabe Black [Wed, 8 Nov 2006 13:12:19 +0000 (08:12 -0500)]
Major clean up of the fault code.

--HG--
extra : convert_revision : eb7e016a127417cbb0e1e2c733b17f82469c2f24

18 years agoThe new global level is computed with min, not max.
Gabe Black [Wed, 8 Nov 2006 09:18:15 +0000 (04:18 -0500)]
The new global level is computed with min, not max.

--HG--
extra : convert_revision : 6339c82d3655694445c3eb43e467b9aa6b4c8224

18 years agoChanged the getReg and setReg functions so that they work like netbsd. Apparently...
Gabe Black [Wed, 8 Nov 2006 07:13:47 +0000 (02:13 -0500)]
Changed the getReg and setReg functions so that they work like netbsd. Apparently, gdb expects to do single stepping on its own, so those functions panic for SPARC. acc still needs to be implemented.

--HG--
extra : convert_revision : c6e98e37b8ab3d6f8d6b3cd2c961faa65b08a179

18 years agoPut the ProcessInfo and StackTrace objects into the ISA namespaces.
Gabe Black [Wed, 8 Nov 2006 05:52:04 +0000 (00:52 -0500)]
Put the ProcessInfo and StackTrace objects into the ISA namespaces.

--HG--
extra : convert_revision : 1626703583f02a1c9823874290462c1b6bdb6c3c

18 years agoStubs for SPARC's tlbs
Gabe Black [Wed, 8 Nov 2006 05:32:40 +0000 (00:32 -0500)]
Stubs for SPARC's tlbs

--HG--
extra : convert_revision : ba08da78693cc6f59f7358134f121f471910dbf6

18 years agoReplaced getArg with a SPARC implementation.
Gabe Black [Wed, 8 Nov 2006 05:32:04 +0000 (00:32 -0500)]
Replaced getArg with a SPARC implementation.

--HG--
extra : convert_revision : ba31171a81b6c46de2997de2701d35fcf8c614b7

18 years agoForce remote gdb code to use signal numbers and not ISA specific trap numbers.
Gabe Black [Wed, 8 Nov 2006 04:40:54 +0000 (23:40 -0500)]
Force remote gdb code to use signal numbers and not ISA specific trap numbers.

--HG--
extra : convert_revision : 4f45a4b48e3993ac6991db2afffbce2e666eab6c

18 years agoFixed to account for branch delay slots.
Gabe Black [Wed, 8 Nov 2006 04:33:59 +0000 (23:33 -0500)]
Fixed to account for branch delay slots.

--HG--
extra : convert_revision : 36a91ad4ed56c61b6754548034a13c02cf580fc6

18 years agoPut kernel_stats back into arch.
Gabe Black [Wed, 8 Nov 2006 03:34:34 +0000 (22:34 -0500)]
Put kernel_stats back into arch.

--HG--
rename : src/kern/alpha/idle_event.cc => src/arch/alpha/idle_event.cc
rename : src/kern/alpha/idle_event.hh => src/arch/alpha/idle_event.hh
rename : src/kern/alpha/kernel_stats.cc => src/arch/alpha/kernel_stats.cc
rename : src/kern/alpha/kernel_stats.hh => src/arch/alpha/kernel_stats.hh
rename : src/kern/sparc/kernel_stats.hh => src/arch/sparc/kernel_stats.hh
rename : src/kern/base_kernel_stats.cc => src/kern/kernel_stats.cc
rename : src/kern/base_kernel_stats.hh => src/kern/kernel_stats.hh
extra : convert_revision : 42bd3e36b407edbd19b912c9218f4e5923a15966

18 years agoMerge 141.212.106.238:/home/gblack/m5/newmemmemops
Gabe Black [Wed, 8 Nov 2006 01:35:43 +0000 (20:35 -0500)]
Merge 141.212.106.238:/home/gblack/m5/newmemmemops
into  zizzer.eecs.umich.edu:/.automount/wexford/x/gblack/m5/newmemmemops

--HG--
extra : convert_revision : 2d498496b5df97f94479ea01cc8306c24dac3dbb

18 years agoA cleaner hack.
Gabe Black [Wed, 8 Nov 2006 01:35:42 +0000 (20:35 -0500)]
A cleaner hack.

--HG--
extra : convert_revision : 8992af33f2779a8d9dc357e648ba39005d0c971a

18 years agoOnly include kern/kernel_stats.hh if in full system. This was breaking MIPS_SE
Gabe Black [Wed, 8 Nov 2006 01:26:45 +0000 (20:26 -0500)]
Only include kern/kernel_stats.hh if in full system. This was breaking MIPS_SE

--HG--
extra : convert_revision : b3f956af92cb98b4945aebc8aece1dffcabdf15c

18 years agoadd code to operate in lockstep with legion
Ali Saidi [Tue, 7 Nov 2006 20:51:37 +0000 (15:51 -0500)]
add code to operate in lockstep with legion

src/python/m5/main.py:
    add option to operate in lockstep with legion

--HG--
extra : convert_revision : 2cc90ec0cf7e8d028ee813c2034a77415671a628

18 years agoFix error message.
Kevin Lim [Tue, 7 Nov 2006 20:45:03 +0000 (15:45 -0500)]
Fix error message.

--HG--
extra : convert_revision : 7ac0f40595c89b0d9352e82e447d25380b038408

18 years agoFix up bus draining and add draining to the caches.
Kevin Lim [Tue, 7 Nov 2006 19:25:54 +0000 (14:25 -0500)]
Fix up bus draining and add draining to the caches.

src/mem/bus.cc:
    Fix up draining to work properly.
src/mem/bus.hh:
    Initialize drainEvent to NULL.
src/mem/cache/base_cache.cc:
src/mem/cache/base_cache.hh:
    Add draining to the caches.

--HG--
extra : convert_revision : 3082220a75d50876f10909f9f99bec535889f818

18 years agoRemove hack by setting configuration better.
Kevin Lim [Tue, 7 Nov 2006 19:24:31 +0000 (14:24 -0500)]
Remove hack by setting configuration better.

src/dev/isa_fake.cc:
src/dev/isa_fake.hh:
    No need for specialized init() function any more.
src/python/m5/objects/Tsunami.py:
    Override responder when set by user.  This avoids having bus.responder floating around and not doing anything when the user has specified their own default responder.

--HG--
extra : convert_revision : c547daf15b23a889c98e62bfd53c293c85d7a041

18 years agoFix compile error.
Kevin Lim [Tue, 7 Nov 2006 18:53:49 +0000 (13:53 -0500)]
Fix compile error.

--HG--
extra : convert_revision : a4c4195bc07383149a56907f26d327a4bfa77c26

18 years agoInitialize mem dep unit properly.
Kevin Lim [Tue, 7 Nov 2006 18:53:06 +0000 (13:53 -0500)]
Initialize mem dep unit properly.

src/cpu/o3/mem_dep_unit_impl.hh:
    Initialize mem dep unit properly, add debug output.

--HG--
extra : convert_revision : 3c56dedfa57de1edc4b1c8f8d9bc94e18002eff2

18 years agoDefinition of stub kernel_stats object. This just uses the base object.
Gabe Black [Tue, 7 Nov 2006 10:47:10 +0000 (05:47 -0500)]
Definition of stub kernel_stats object. This just uses the base object.

--HG--
extra : convert_revision : 349b6743b82eef4fe46b04f10b5adfa8adfb6a0e

18 years agoAlpha derived classes for kernel_stats.
Gabe Black [Tue, 7 Nov 2006 10:46:15 +0000 (05:46 -0500)]
Alpha derived classes for kernel_stats.

--HG--
extra : convert_revision : 93b2c6f6687b21c84b97a7665cd9fc04c59ba9d6

18 years agoSConscripts for the architecture specific directories in kern.
Gabe Black [Tue, 7 Nov 2006 10:45:12 +0000 (05:45 -0500)]
SConscripts for the architecture specific directories in kern.

--HG--
extra : convert_revision : d1ca26c7933a006946372978deeae840595688c7

18 years agoA dummy implementation of stacktrace.cc to clear up linker errors.
Gabe Black [Tue, 7 Nov 2006 10:44:22 +0000 (05:44 -0500)]
A dummy implementation of stacktrace.cc to clear up linker errors.

--HG--
extra : convert_revision : ea1e54a529ad7ae4a6564dd6fb47c31fb0573adf

18 years agoArguments class for SPARC. This is basically just a copy of Alpha's
Gabe Black [Tue, 7 Nov 2006 10:43:33 +0000 (05:43 -0500)]
Arguments class for SPARC. This is basically just a copy of Alpha's

--HG--
extra : convert_revision : 9df68973c63d5ff256d6de485e8d918c454c8ff1

18 years agoRemoved unnecessary arch/alpha/ev5.hh include
Gabe Black [Tue, 7 Nov 2006 10:42:52 +0000 (05:42 -0500)]
Removed unnecessary arch/alpha/ev5.hh include

--HG--
extra : convert_revision : e8277cc279be839c1754b5da96f9153da06d3ec1

18 years agoAdded sim/host.hh for the Addr type.
Gabe Black [Tue, 7 Nov 2006 10:42:15 +0000 (05:42 -0500)]
Added sim/host.hh for the Addr type.

--HG--
extra : convert_revision : cd07a920417b7fb34e5ca3bf70d707327eb59eb3

18 years agoGot rid of a stray blank line.
Gabe Black [Tue, 7 Nov 2006 10:41:51 +0000 (05:41 -0500)]
Got rid of a stray blank line.

--HG--
extra : convert_revision : 7b58f75e5efc3c9ead2434f87605cbabcb23d90a

18 years agoAdded a stub implementation of fixFuncEventAddr to get past linker errors.
Gabe Black [Tue, 7 Nov 2006 10:41:23 +0000 (05:41 -0500)]
Added a stub implementation of fixFuncEventAddr to get past linker errors.

--HG--
extra : convert_revision : 24ab1789496c5fae6c0992db2d521ea02354ee90

18 years agoThe normal spill and fill faults only need to behave specially in SE.
Gabe Black [Tue, 7 Nov 2006 10:40:48 +0000 (05:40 -0500)]
The normal spill and fill faults only need to behave specially in SE.

--HG--
extra : convert_revision : 4d4b866699e3450b88418822fc198411ee3d831a

18 years agoAdded in alot of missing source files.
Gabe Black [Tue, 7 Nov 2006 10:40:06 +0000 (05:40 -0500)]
Added in alot of missing source files.

--HG--
extra : convert_revision : 335b458d195a00dac3d04e92fe9df915e660538f

18 years agoBroke remote_gdb into a base class and architecture specific derived classes.
Gabe Black [Tue, 7 Nov 2006 10:39:40 +0000 (05:39 -0500)]
Broke remote_gdb into a base class and architecture specific derived classes.

--HG--
extra : convert_revision : 8c528fab56a95b8245ad0f2572d62bb556ce0dde

18 years agoMoved the idle event out of system_events.hh. The skipFuncEvent can be made ISA indep...
Gabe Black [Tue, 7 Nov 2006 10:38:33 +0000 (05:38 -0500)]
Moved the idle event out of system_events.hh. The skipFuncEvent can be made ISA independent by making it use the #define for branch delay slots (and NNPC)

--HG--
extra : convert_revision : b2631b1163397ecc99f2f315e2b88537e2002731

18 years agoMoved the switched version of kernel_stats.hh back to kern, and moved the base kernel...
Gabe Black [Tue, 7 Nov 2006 10:36:54 +0000 (05:36 -0500)]
Moved the switched version of kernel_stats.hh back to kern, and moved the base kernel_stats to base_kernel_stats

--HG--
extra : convert_revision : 2a010d2eb7ea2586ff063b99b8bcde6eb1e8e017

18 years agoMissed this file in my last changeset.
Gabe Black [Tue, 7 Nov 2006 10:34:14 +0000 (05:34 -0500)]
Missed this file in my last changeset.

--HG--
extra : convert_revision : 94affbcfb5e5fd948010b10d481627a4dd500267

18 years agoMade kern a switching header file directory.
Gabe Black [Tue, 7 Nov 2006 10:33:21 +0000 (05:33 -0500)]
Made kern a switching header file directory.

SConstruct:
    Put the code to make a switching header directory into a function so they are easy to make.
src/arch/SConscript:
    Replace switching header code with the new function call.
src/kern/SConscript:
    Created a new switching header directory in kern, and moved the declaration of some source files here.

--HG--
rename : src/kern/kernel_stats.cc => src/kern/base_kernel_stats.cc
rename : src/kern/kernel_stats.hh => src/kern/base_kernel_stats.hh
extra : convert_revision : 98f5320a5ade567c3e4f67fef123dfb0c5122545

18 years agoCleaned up remnants of ivlb and ivle
Gabe Black [Tue, 7 Nov 2006 01:49:48 +0000 (20:49 -0500)]
Cleaned up remnants of ivlb and ivle

--HG--
extra : convert_revision : 93b37dbcd3d9dd1eced0f829223f52b53fe58643

18 years agoGot rid of the ivlb and ivle kernel stats.
Gabe Black [Tue, 7 Nov 2006 01:07:44 +0000 (20:07 -0500)]
Got rid of the ivlb and ivle kernel stats.

--HG--
extra : convert_revision : d85627bb3eafe6411355995a92ba8b151be8320d

18 years agoGet rid of pcifake.cc and tsunami_fake.cc to go with the merged default devices.
Gabe Black [Tue, 7 Nov 2006 00:56:57 +0000 (19:56 -0500)]
Get rid of pcifake.cc and tsunami_fake.cc to go with the merged default devices.

--HG--
extra : convert_revision : e88aaaa43843c1283f29cef0886e057412705899

18 years agoOnly bother with the device SConscript if you're in FULL_SYSTEM
Gabe Black [Tue, 7 Nov 2006 00:55:42 +0000 (19:55 -0500)]
Only bother with the device SConscript if you're in FULL_SYSTEM

--HG--
extra : convert_revision : ac52f548afb98dd0437e7d7c2600ff9b8ebfd1fa

18 years agoMerge zizzer.eecs.umich.edu:/bk/newmem/
Gabe Black [Tue, 7 Nov 2006 00:52:32 +0000 (19:52 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem/
into  zeep.eecs.umich.edu:/home/gblack/m5/newmemmemops

src/SConscript:
    SCCS merged

--HG--
extra : convert_revision : f130c8a2d33f58d857e5d5a02bb9698c1bceb23b

18 years agoMoved the tsunami devices into the dev/alpha directory. Other devices "generic" devic...
Gabe Black [Tue, 7 Nov 2006 00:45:00 +0000 (19:45 -0500)]
Moved the tsunami devices into the dev/alpha directory. Other devices "generic" devices are dependent on some of those files. That will either need to change, or most likely those devices will have to be considered architecture dependent.

--HG--
rename : src/dev/tsunami.cc => src/dev/alpha/tsunami.cc
rename : src/dev/tsunami.hh => src/dev/alpha/tsunami.hh
rename : src/dev/tsunami_cchip.cc => src/dev/alpha/tsunami_cchip.cc
rename : src/dev/tsunami_cchip.hh => src/dev/alpha/tsunami_cchip.hh
rename : src/dev/tsunami_io.cc => src/dev/alpha/tsunami_io.cc
rename : src/dev/tsunami_io.hh => src/dev/alpha/tsunami_io.hh
rename : src/dev/tsunami_pchip.cc => src/dev/alpha/tsunami_pchip.cc
rename : src/dev/tsunami_pchip.hh => src/dev/alpha/tsunami_pchip.hh
rename : src/dev/tsunamireg.h => src/dev/alpha/tsunamireg.h
extra : convert_revision : ffbb6fd93341d2623a6932bf096019b8976da694

18 years agoGot rid of stray alpha include
Gabe Black [Tue, 7 Nov 2006 00:10:13 +0000 (19:10 -0500)]
Got rid of stray alpha include

--HG--
extra : convert_revision : eddd64dd9291d6656821fe6387aeab2f9ddbaf58

18 years agoGot rid of obsolete ivlb and ivle psuedo instructions.
Gabe Black [Tue, 7 Nov 2006 00:09:23 +0000 (19:09 -0500)]
Got rid of obsolete ivlb and ivle psuedo instructions.

--HG--
extra : convert_revision : c3c2dd5a6e7181ad94194146d7fa2b33b21074fb

18 years agoStub for SPARC interrupt handling object.
Gabe Black [Mon, 6 Nov 2006 23:30:28 +0000 (18:30 -0500)]
Stub for SPARC interrupt handling object.

--HG--
extra : convert_revision : 7257e3387c01e84e5a1018a9cdcc09a79edfa934

18 years agoRemote GDB support has been changed to use inheritance. Alpha should work, but isn...
Gabe Black [Mon, 6 Nov 2006 23:29:58 +0000 (18:29 -0500)]
Remote GDB support has been changed to use inheritance. Alpha should work, but isn't tested. Other architectures will not.

--HG--
extra : convert_revision : fc7e1e73e2f3b1a4ab9905a1eb98c5f07c6c8707

18 years agoTook the Alpha prefix off of AlphaArguments, and made sure it was being used from...
Gabe Black [Mon, 6 Nov 2006 23:28:10 +0000 (18:28 -0500)]
Took the Alpha prefix off of AlphaArguments, and made sure it was being used from TheISA:: rather than AlphaISA::

--HG--
extra : convert_revision : 17c143d3cbc2f58a7a9d01366a8f649810ff7f33

18 years agoCreated seperate SConscript for the dev directory. Made subdirectories for Alpha...
Gabe Black [Mon, 6 Nov 2006 23:26:11 +0000 (18:26 -0500)]
Created seperate SConscript for the dev directory. Made subdirectories for Alpha and SPARC and put SConscripts in them.

--HG--
rename : src/base/kgdb.h => src/arch/alpha/kgdb.h
rename : src/dev/alpha_access.h => src/dev/alpha/access.h
rename : src/dev/alpha_console.cc => src/dev/alpha/console.cc
rename : src/dev/alpha_console.hh => src/dev/alpha/console.hh
extra : convert_revision : a7dd466308cb83edc40528689aacb72413089cdf

18 years agodelete pcifake, tsunamifake. Combine BadAddr/IsaFake into one
Ali Saidi [Mon, 6 Nov 2006 21:24:25 +0000 (16:24 -0500)]
delete pcifake, tsunamifake. Combine BadAddr/IsaFake into one

src/SConscript:
    remove pcifake and tsunami fake from sconscript
src/dev/isa_fake.cc:
src/dev/isa_fake.hh:
    combine badaddr and isa fake into one
src/python/m5/objects/Pci.py:
    remove pcifake
src/python/m5/objects/Tsunami.py:
    make badaddr derive from isafake

--HG--
extra : convert_revision : 91470db60aa1de6b85827304e27bd3414cc9d8d1

18 years agoMerge zizzer:/bk/newmem
Ali Saidi [Mon, 6 Nov 2006 19:14:49 +0000 (14:14 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : f77e5cf8cc5b99960d28e1cc109d140f1013cfca

18 years agosmall fixes for solaris
Ali Saidi [Mon, 6 Nov 2006 19:14:18 +0000 (14:14 -0500)]
small fixes for solaris

--HG--
extra : convert_revision : 3546b2cecf7e7e8e62295abc1ed08b3b6d2b0a8b

18 years agoMerge ktlim@zizzer:/bk/newmem
Kevin Lim [Mon, 6 Nov 2006 18:27:57 +0000 (13:27 -0500)]
Merge ktlim@zizzer:/bk/newmem
into  zamp.eecs.umich.edu:/z/ktlim2/clean/newmem

--HG--
extra : convert_revision : d6bb87586cf7ee63ca32e36944c3755fae0b55d0

18 years agoClean up clock phase drift code a bit.
Kevin Lim [Mon, 6 Nov 2006 18:27:45 +0000 (13:27 -0500)]
Clean up clock phase drift code a bit.

src/cpu/base.cc:
    Move clock phase drift code to the base CPU so that any CPU model can use it.
src/cpu/base.hh:
    Added two functions to help get the next cycle the CPU should be scheduled.
src/cpu/simple/atomic.cc:
src/cpu/simple/timing.cc:
    Use the function now in BaseCPU.

--HG--
extra : convert_revision : 444494b66ffc85fc473c23f57683c5f9458ad80c

18 years agoreplace NULL with 0.... Why isn't NULL defined by default on Mac OS X I don't know
Ali Saidi [Mon, 6 Nov 2006 15:15:27 +0000 (10:15 -0500)]
replace NULL with 0.... Why isn't NULL defined by default on Mac OS X I don't know

--HG--
extra : convert_revision : b60403445bd4e855732fd4e6753068abd90ecc9d

18 years agoUpdate refs.
Kevin Lim [Mon, 6 Nov 2006 01:42:05 +0000 (20:42 -0500)]
Update refs.

--HG--
extra : convert_revision : 61d298fb0d9a66a76209a6bfcdb7c14f2efca947

18 years agoInitialize pointer to NULL.
Kevin Lim [Mon, 6 Nov 2006 01:29:38 +0000 (20:29 -0500)]
Initialize pointer to NULL.

src/cpu/o3/lsq_unit_impl.hh:
    Be sure to initialize pointer to NULL.

--HG--
extra : convert_revision : 917d5119e4bd8eae10959ed07069d8c694315c7a

18 years agoMerge zizzer:/bk/newmem
Ali Saidi [Sun, 5 Nov 2006 02:41:10 +0000 (21:41 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : d7133e32cfca9f15869ee9ab7a93e3470e7d9038

18 years agofixes so that M5 will compile under solaris
Ali Saidi [Sun, 5 Nov 2006 02:41:01 +0000 (21:41 -0500)]
fixes so that M5 will compile under solaris

SConstruct:
    Add check to see if we need to include libsocket
src/arch/sparc/floatregfile.cc:
src/arch/sparc/intregfile.cc:
    use memset rather than bzero and include the appropriate headerfile
src/base/pollevent.cc:
    If we're compling under solaris we need sys/file.h
src/base/random.cc:
src/base/random.hh:
    solaris doesn't have random(), so use rint with the correct rounding mode
    if we're compiling on solaris
src/base/stats/flags.hh:
    u_int32_t??
src/base/time.hh:
    grab the timersub() define from freebsd since it doesn't exist in solaris
src/cpu/inst_seq.hh:
    we don't need to include stdint here
src/sim/byteswap.hh:
    the method to detect endianness on Solaris is a little more complex...

--HG--
extra : convert_revision : 6b7db0e900e7bccfc250d65c125065f27280dda1

18 years agoMake things compile in SE again.
Gabe Black [Fri, 3 Nov 2006 19:42:12 +0000 (14:42 -0500)]
Make things compile in SE again.

--HG--
extra : convert_revision : cf7faf5001b31d61c61ddce2386d61c919075800

18 years agoUse a PowerOnReset to initialize the cpu.
Gabe Black [Fri, 3 Nov 2006 19:41:27 +0000 (14:41 -0500)]
Use a PowerOnReset to initialize the cpu.

--HG--
extra : convert_revision : 9e65af095c37c7c67db377424d2d4363fa8065f9

18 years agoCalling syscalls from within the trap instruction's invoke method won't work because...
Gabe Black [Fri, 3 Nov 2006 19:40:35 +0000 (14:40 -0500)]
Calling syscalls from within the trap instruction's invoke method won't work because apparently you need an xc for that and not a tc. Cleaned up the TrapInstruction fault in light of this.

--HG--
extra : convert_revision : 1805c9244cfd62d0ee7862d8fd7c9983e00c5747

18 years agoThe tc needs to be protected instead of private so that the CpuEventWrapper can acces...
Gabe Black [Fri, 3 Nov 2006 16:05:56 +0000 (11:05 -0500)]
The tc needs to be protected instead of private so that the CpuEventWrapper can access it.

--HG--
extra : convert_revision : bd836d63ac3630b20dda552e7b289730f3c114ef

18 years agoGutted out the old Alpha stuff.
Gabe Black [Fri, 3 Nov 2006 16:05:13 +0000 (11:05 -0500)]
Gutted out the old Alpha stuff.

--HG--
extra : convert_revision : 6767dc1305a58e3e7eb0ee909d54768e51744927

18 years agoAdded a stub initCPU function. This would be a good place to force in a PowerOnReset...
Gabe Black [Fri, 3 Nov 2006 16:04:10 +0000 (11:04 -0500)]
Added a stub initCPU function. This would be a good place to force in a PowerOnReset fault to kick start the CPU.

--HG--
extra : convert_revision : 79e1fa2ef40e326682069639e260db255fd29d93

18 years agoCompilation fixes.
Gabe Black [Fri, 3 Nov 2006 16:03:03 +0000 (11:03 -0500)]
Compilation fixes.

--HG--
extra : convert_revision : 44d67a3bb95f875f17586499aa4a04268aa2fd46

18 years agoAdded this constant to get compilation to work. The value is bogus since I don't...
Gabe Black [Fri, 3 Nov 2006 15:59:24 +0000 (10:59 -0500)]
Added this constant to get compilation to work. The value is bogus since I don't know what it actually represents.

--HG--
extra : convert_revision : ab579c1275bfcfb7ffe21633bd8c5b9bea24015e

18 years agoAdd the syscall number as the second parameter for the trap fault. This could be...
Gabe Black [Fri, 3 Nov 2006 15:56:47 +0000 (10:56 -0500)]
Add the syscall number as the second parameter for the trap fault. This could be improved and syscalls could be called from the trap's invoke method.

--HG--
extra : convert_revision : 127a3673a076110fb3605c0fbc93e8d7e9fec84b

18 years agoAdd an invoke function for PowerOnReset
Gabe Black [Fri, 3 Nov 2006 15:55:29 +0000 (10:55 -0500)]
Add an invoke function for PowerOnReset

--HG--
extra : convert_revision : a1cdd35c74f6e85f42a04061b466ec7617da8ac2

18 years agoMove around misc reg code
Gabe Black [Fri, 3 Nov 2006 15:54:34 +0000 (10:54 -0500)]
Move around misc reg code

src/arch/sparc/faults.cc:
    Moved some code here from miscregfile.cc
src/arch/sparc/miscregfile.cc:
    Moved code from here to faults.cc, and merged (read|set)MiscRegWithEffect and it's FS version from ua2005.cc
src/arch/sparc/miscregfile.hh:
    readFSRegWithEffect is no longer a seperate function, and is instead done in the main readRegWith Effect.

--HG--
extra : convert_revision : 0b45f0f78e83929b32ddd2f443c8b1dbf9bc04fb

18 years agoremoved ua2005.cc since it's been obsorbed into the miscregfile, and added system.cc
Gabe Black [Fri, 3 Nov 2006 15:52:08 +0000 (10:52 -0500)]
removed ua2005.cc since it's been obsorbed into the miscregfile, and added system.cc

--HG--
extra : convert_revision : 2a124adcefe0d15860632a05e8788d3fd34008c2

18 years agoGot rid of "inPalMode". Some places are still effectively checking if they are in...
Gabe Black [Fri, 3 Nov 2006 09:25:33 +0000 (04:25 -0500)]
Got rid of "inPalMode". Some places are still effectively checking if they are in PAL mode, however.

--HG--
extra : convert_revision : b52d9642efc474eaf97437fa2df879efefa0062b

18 years agoAdd a new file which describes an ISA's interrupt handling mechanism. It records...
Gabe Black [Fri, 3 Nov 2006 07:25:39 +0000 (02:25 -0500)]
Add a new file which describes an ISA's interrupt handling mechanism. It records when interrupts are requested, and returns an interrupt to execute if the

--HG--
extra : convert_revision : c535000a6a170caefd441687b60f940513d29739

18 years agoFixed a comment
Gabe Black [Fri, 3 Nov 2006 06:15:31 +0000 (01:15 -0500)]
Fixed a comment

--HG--
extra : convert_revision : bebc701508e1d38ee74a07377c634d5e46e89abe

18 years agoMerge ktlim@zizzer:/bk/newmem
Kevin Lim [Thu, 2 Nov 2006 20:20:47 +0000 (15:20 -0500)]
Merge ktlim@zizzer:/bk/newmem
into  zamp.eecs.umich.edu:/z/ktlim2/clean/newmem-busfix

--HG--
extra : convert_revision : a9a41e2c292bd95aa148e1cf4d9a77c0622a462b