gem5.git
19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Tue, 1 Mar 2005 06:16:54 +0000 (01:16 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : 439e7d84ea9a66177b0cc2cab4cd77ecb90aa6fe

19 years agoUpdated Monet Configuration and validations tests
Ali Saidi [Tue, 1 Mar 2005 06:03:37 +0000 (01:03 -0500)]
Updated Monet Configuration and validations tests

--HG--
extra : convert_revision : d58aed18f8f809185ad2639eb92465a5fc6695de

19 years agoFix stats incompatibility with g++ 3.4.
Steve Reinhardt [Tue, 1 Mar 2005 05:41:19 +0000 (00:41 -0500)]
Fix stats incompatibility with g++ 3.4.

base/statistics.hh:
    Get rid of operator%... g++ 3.4 complains that this isn't defined
    for doubles (which makes sense).  We never use it anyway.

--HG--
extra : convert_revision : 3ca724e1cc42559226549835f6cd3509308e02ca

19 years agoAdd a new operation class for IPR accesses, and have IPR-accessing
Steve Reinhardt [Tue, 1 Mar 2005 05:39:57 +0000 (00:39 -0500)]
Add a new operation class for IPR accesses, and have IPR-accessing
instructions use it (instead of IntALU, as before).  Default config
has a single non-pipelined 3-cycle unit.  A bit conservative for the
ev6 (some are 1, some are 3).

arch/alpha/isa_desc:
    Make hw_mfpr and hw_mtpr use IprAccessOp op class.
cpu/full_cpu/op_class.hh:
    Add IprAccess.

--HG--
extra : convert_revision : d4103da3343a586936839e29981fd15d6930d442

19 years agoMake all StaticInst methods const. StaticInst objects represent a
Steve Reinhardt [Sat, 26 Feb 2005 02:44:33 +0000 (21:44 -0500)]
Make all StaticInst methods const.  StaticInst objects represent a
particular binary machine instruction and should be immutable after
they are constructed.

cpu/simple_cpu/simple_cpu.hh:
    Make StaticInst parameters const.

--HG--
extra : convert_revision : e535fa10c842ce173336323f39d9108c1847f8ba

19 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
Steve Reinhardt [Fri, 25 Feb 2005 19:49:39 +0000 (14:49 -0500)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/stever/bk/m5

--HG--
extra : convert_revision : 312d9edd677afef6c973c0cb45af4f827a2b881a

19 years agoMake the SimConsole device dump its output to a file by default
Nathan Binkert [Fri, 25 Feb 2005 19:38:00 +0000 (14:38 -0500)]
Make the SimConsole device dump its output to a file by default

--HG--
extra : convert_revision : 59cc7c3234d1bc96919d08dc0ec7584d8aff1d6f

19 years agoFix timing modeling of faults: functionally the very next instruction after
Steve Reinhardt [Fri, 25 Feb 2005 17:41:08 +0000 (12:41 -0500)]
Fix timing modeling of faults: functionally the very next instruction after
a faulting instruction is the fault handler, which appears as an independent
instruction to the timing model.  New code will stall fetch and not fetch the
fault handler as long as there's a faulting instruction in the pipeline (i.e.,
the faulting inst has to commit first).

Also fix Ali's bad-address assertion that doesn't apply to full system.

Added some more debugging support in the process.  Hopefully we'll move to the new
cpu model soon and we won't need it anymore.

arch/alpha/alpha_memory.cc:
    Reorganize lookup() so we can trace the result of the lookup as well.
arch/alpha/isa_traits.hh:
    Add NoopMachInst (so we can insert them in the pipeline on ifetch faults).
base/traceflags.py:
    Replace "Dispatch" flag with "Pipeline" (since I added similar
    DPRINTFs in other pipe stages).
cpu/exetrace.cc:
    Change default for printing mis-speculated instructions to true (since
    that's often what we want, and right now you can't change it from the
    command line...).

--HG--
extra : convert_revision : a29a98a373076d62bbbb1d6f40ba51ecae436dbc

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Thu, 24 Feb 2005 20:59:29 +0000 (15:59 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : a63405fac7237014c4ef8b765d31d59d3e1bb500

19 years agoif we have an invalid addr and it's not a miss-speculation panic
Ali Saidi [Thu, 24 Feb 2005 20:57:52 +0000 (15:57 -0500)]
if we have an invalid addr and it's not a miss-speculation panic

--HG--
extra : convert_revision : 4c906f68c6168100f7e8f2030b1f957c88900768

19 years agoFix it so that using a sampler works with the occ and ocp configurations.
Ron Dreslinski [Thu, 24 Feb 2005 16:43:03 +0000 (11:43 -0500)]
Fix it so that using a sampler works with the occ and ocp configurations.

--HG--
extra : convert_revision : a990503a6c01a156230d8910ad86876d09b4f1b3

19 years agoPrint an error message if a Checkpoint number was defined, but no checkpoint file...
Ron Dreslinski [Thu, 24 Feb 2005 16:34:58 +0000 (11:34 -0500)]
Print an error message if a Checkpoint number was defined, but no checkpoint file was sourced

--HG--
extra : convert_revision : 302c1d6720c0ee24fcfc266cd99f501af734a452

19 years agoFix the python panic message
Nathan Binkert [Wed, 23 Feb 2005 17:26:35 +0000 (12:26 -0500)]
Fix the python panic message

sim/pyconfig/m5config.py:
    Fix panic

--HG--
extra : convert_revision : 56d93398e992ed6e95380f6dcdb61cbee54b3893

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Wed, 23 Feb 2005 16:47:49 +0000 (11:47 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : f149b8ea762d4a83ef76b3bb95f28e0709391ecf

19 years agoadded two validation rcs files
Ali Saidi [Wed, 23 Feb 2005 16:46:28 +0000 (11:46 -0500)]
added two validation rcs files

--HG--
extra : convert_revision : 19e57e5192be3435d72652e3b36aac3b6e43d81c

19 years agoAdded mmap start and end so detailed CPU can know if an access is
Ali Saidi [Wed, 23 Feb 2005 16:45:25 +0000 (11:45 -0500)]
Added mmap start and end so detailed CPU can know if an access is
in a mmaped region

--HG--
extra : convert_revision : e4ee0520c84d94a0d2e804d02035228766abe71f

19 years agoUpdated Monet configurations
Ali Saidi [Wed, 23 Feb 2005 16:43:18 +0000 (11:43 -0500)]
Updated Monet configurations

--HG--
extra : convert_revision : 8f9c875541adcf685effcfb2e138f2dbb8463137

19 years agoSmall initial steps toward generating C++ param structs
Steve Reinhardt [Wed, 23 Feb 2005 04:53:34 +0000 (23:53 -0500)]
Small initial steps toward generating C++ param structs
from Python object descriptions.  Mostly cleanup of Python
code based on things I encountered trying to figure out
what's going on.  Main reason I'm committing this now is
to transfer work from my laptop to zizzer.

sim/pyconfig/m5config.py:
    Small steps toward param struct generation: all param
    objects should now have a _cppname attribute that holds
    their corresponding C++ type name.

    Made Param ptype attribute an actual type instead of a
    string.  String is still stored in ptype_string.

    Get rid of AddToPath() and Import() (redundant copies
    are in importer, and that seems to be the more logical
    place for them).

    Add a few comments, delete some unused code.
test/genini.py:
    A few fixes to make the environment more compatible
    with what really happens when configs are executed
    from the m5 binary.

--HG--
extra : convert_revision : 9fc8f72cd0c22ba3deada02f37484787342534f2

19 years agoSet the proper job name for statistics if we're using a JOBNAME
Nathan Binkert [Mon, 21 Feb 2005 23:06:09 +0000 (18:06 -0500)]
Set the proper job name for statistics if we're using a JOBNAME
and JOBFILE

--HG--
extra : convert_revision : 44253a39f40efcbbcda226701b0e97d8ea46cf1e

19 years agoformatting fixes
Nathan Binkert [Mon, 21 Feb 2005 22:32:57 +0000 (17:32 -0500)]
formatting fixes

--HG--
extra : convert_revision : 8b9bfed29b66e8bce11448f175273f5ebb6876b2

19 years agoClean up CPU stuff and make it use params structs
Nathan Binkert [Sat, 19 Feb 2005 16:46:41 +0000 (11:46 -0500)]
Clean up CPU stuff and make it use params structs

cpu/base_cpu.cc:
cpu/base_cpu.hh:
    Convert the CPU stuff to use a params struct
cpu/memtest/memtest.cc:
    The memory tester is really not a cpu, so don't derive from
    BaseCPU since it just makes things a pain in the butt.  Keep
    track of max loads in the memtest class now that the base class
    doesn't do it for us.
    Don't have any default parameters.
cpu/memtest/memtest.hh:
    The memory tester is really not a cpu, so don't derive from
    BaseCPU since it just makes things a pain in the butt.  Keep
    track of max loads in the memtest class now that the base class
    doesn't do it for us.
cpu/simple_cpu/simple_cpu.cc:
    Convert to use a params struct.
    remove default parameters
cpu/simple_cpu/simple_cpu.hh:
    convert to use a params struct
cpu/trace/opt_cpu.cc:
cpu/trace/opt_cpu.hh:
cpu/trace/trace_cpu.cc:
cpu/trace/trace_cpu.hh:
    this isn't really a cpu.  don't derive from BaseCPU
objects/MemTest.mpy:
    we only need one max_loads parameter
sim/main.cc:
    Don't check for the number of CPUs since we may be doing something
    else going on.  If we don't have anything to simulate, the
    simulator will exit anyway.

--HG--
extra : convert_revision : 2195a34a9ec90b5414324054ceb3bab643540dd5

19 years agoInclude errno.h to fix compile errors in gcc 3.4
Kevin Lim [Fri, 18 Feb 2005 00:22:42 +0000 (19:22 -0500)]
Include errno.h to fix compile errors in gcc 3.4

sim/main.cc:
    Include errno.h

--HG--
extra : convert_revision : ff91579ae590b3c1d11f7468b71f295e6f3edd68

19 years agorename the simple cpu's multiplier parameter. call it width.
Nathan Binkert [Thu, 17 Feb 2005 19:02:03 +0000 (14:02 -0500)]
rename the simple cpu's multiplier parameter.  call it width.
it makes more sense and is less confusing.

cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
    width is a better name than multiplier

--HG--
extra : convert_revision : ea2fa4faa160f5657aece41df469bbc9f7244b21

19 years agoFix compile on linux
Nathan Binkert [Thu, 17 Feb 2005 08:40:17 +0000 (03:40 -0500)]
Fix compile on linux

sim/main.cc:
    For some unknown reason linux's basename doesn't take a const char *

--HG--
extra : convert_revision : 30289195881e16a05429f7025abab7914a9e3eb6

19 years agoMake code more portable.
Nathan Binkert [Thu, 17 Feb 2005 07:50:34 +0000 (02:50 -0500)]
Make code more portable.

sim/main.cc:
    basename is in libgen

--HG--
extra : convert_revision : 1af6ff2f492b4deee9e56edfa5ee6ea235cd4eb0

19 years agoSeveral tweaks to make binning work in any simulation
Nathan Binkert [Thu, 17 Feb 2005 07:48:56 +0000 (02:48 -0500)]
Several tweaks to make binning work in any simulation
configuration so that we can always have binning on.

base/statistics.cc:
    If we're binning, and there is no bin active at the time
    we check all stats stuff, create a bin.
base/statistics.hh:
    FS_MEASURE doesn't exist anymore
base/stats/text.cc:
    don't print out bin names if there is only one bin
sim/process.cc:
    don't zero stats.  It happens automatically.
    Don't activate the context at the time it is registered,
    instead activate the first context in a startup callback.
sim/process.hh:
    Add startup callback to initialize the first exec context

--HG--
extra : convert_revision : bcb23cdb184b0abf7cecd79902f8a59b50f71fe4

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Tue, 15 Feb 2005 01:47:23 +0000 (20:47 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : c807a78d9c3f3be51763dab9685aa4b7361c585c

19 years agoundoing change per nates request
Ali Saidi [Tue, 15 Feb 2005 01:47:05 +0000 (20:47 -0500)]
undoing change per nates request

--HG--
extra : convert_revision : c5c2fd88dfd8d893da51c2b80907260ec14a7593

19 years agoMake it so we append jobs to the joblist in the for loop not
Nathan Binkert [Tue, 15 Feb 2005 01:22:27 +0000 (20:22 -0500)]
Make it so we append jobs to the joblist in the for loop not
outside of the loop so we get all of the jobs, not just the
last one.

util/pbs/send.py:
    fix indent

--HG--
extra : convert_revision : eee9546b4945ff949fdfdf339fc95a23603b47d3

19 years agooutput dir changes to python files
Ali Saidi [Mon, 14 Feb 2005 23:54:38 +0000 (18:54 -0500)]
output dir changes to python files

util/pbs/job.py:
    pass output dir to m5 directly

--HG--
extra : convert_revision : 00d1568bb2da3b3e646fc75b4884314bf4cb2d71

19 years agoMerge
Ali Saidi [Mon, 14 Feb 2005 04:05:47 +0000 (23:05 -0500)]
Merge

--HG--
extra : convert_revision : 10c28ac66c7e71615a239783e21ab36a47de992c

19 years agobuild mysql version if libraries exist
Ali Saidi [Mon, 14 Feb 2005 04:03:04 +0000 (23:03 -0500)]
build mysql version if libraries exist
add dprintf on alignment faults
fix RR benchmark rcS script name
Add Dual test without rcS script
Update Monet to be closer to the real thing
Fix p4/monet configs
Add a way to read the DRIR register with at 32bit access for validation

SConscript:
build/SConstruct:
    always use mysql if the libraries are installed
arch/alpha/alpha_memory.cc:
    Add a DPRINTF to print alignment faults when they happen
dev/tsunami_cchip.cc:
    Add a way to read the DRIR for validation.

--HG--
extra : convert_revision : 8c112c958f36b785390c46e70a889a79c6bea015

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Fri, 11 Feb 2005 14:48:23 +0000 (09:48 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/merge

--HG--
extra : convert_revision : 5d73046310a64b80a6ba3832df3b30b55532d707

19 years agoRework the command line paramters for python output and how
Nathan Binkert [Fri, 11 Feb 2005 14:47:41 +0000 (09:47 -0500)]
Rework the command line paramters for python output and how
output files and the output directory are are handled.  Make
the output directory configuration via a command line parameter,
or an environment variable.

SConscript:
    Add new output file stuff
base/misc.cc:
dev/simconsole.cc:
    use new output file code
cpu/base_cpu.cc:
    use new output file code to generate output streams
dev/etherdump.cc:
    use the output file code to find the output directory
    use a real stream instead of a pointer
dev/etherdump.hh:
    use a real stream instead of a pointer
objects/Root.mpy:
    output_dir and config_output_file are not longer configured here.
sim/main.cc:
    - Completely rework the command line argument passing to deal with
    changes in python and output files.
    - Update help output to reflect changes.
    - Remove all direct support for .ini files.  They are strictly
    for intermediate representation.
    - Remove the --foo:bar=blah syntax for .ini files and add --foo.bar=blah
    syntax for python.  This will generate: foo.bar = 'blah' in the python
    script.
    - Add '-d' to set the output directory.
    - Use new output file code to access the output stream.
sim/serialize.cc:
    use the new code to find the output directory
sim/universe.cc:
    Get rid of makeOutputStream.  Use the new output file code.
    Remove output_dir and config_output_file as parameters.

--HG--
extra : convert_revision : df2f0e13d401c3a60cae1239aa1ec3511721544d

19 years agoMake sure we have all values when trying to generate the ini file
Nathan Binkert [Fri, 11 Feb 2005 06:40:49 +0000 (01:40 -0500)]
Make sure we have all values when trying to generate the ini file

sim/pyconfig/m5config.py:
    When getting all values, make sure we get the ones that are
    parameter defaults as well.

--HG--
extra : convert_revision : 2b1c4b2f27dfab17ef9df18d7e5936e4a00bb12e

19 years agoSome cosmetic changes to MyPOpen
Nathan Binkert [Thu, 10 Feb 2005 05:02:51 +0000 (00:02 -0500)]
Some cosmetic changes to MyPOpen

util/pbs/pbs.py:
    More tweaks that I forgot

--HG--
extra : convert_revision : 7298f91b80bc7d8d946be93fc622e5f9f6e155f9

19 years agoMore fixes to the pbs stuff to make it more robust.
Nathan Binkert [Thu, 10 Feb 2005 04:55:21 +0000 (23:55 -0500)]
More fixes to the pbs stuff to make it more robust.

sim/pyconfig/SConscript:
    Embed the jobfile.py script into the binary so that we don't
    need to copy it into the Base directory every time.
test/genini.py:
    Add the util/pbs directory to the path so we can get to
    jobfile.py
    Add a -I argument to set to add to the path.
util/pbs/pbs.py:
    Create a MyPOpen class.  This is a lot like the popen2.Popen3 class
    in the python library except that my version allows redirection of
    standard in and standard out to a file instead of a pipe.
    Use this popen class to execute qsub or ssh qsub.  This was important
    for the ssh version of qsub because we need to pipe the script into
    standard in of ssh so that the script can get to the qsub command.
    (Otherwise we have a problem discovering the path.)
util/pbs/send.py:
    Tweak the script so it figures out paths in NFS correctly.
    Use the new system for running qsub.

--HG--
extra : convert_revision : 1289915ba99cec6fd464b71215c32d2197ff2824

19 years agoFix bug in trace param context so we can compile
Nathan Binkert [Thu, 10 Feb 2005 03:21:58 +0000 (22:21 -0500)]
Fix bug in trace param context so we can compile

--HG--
extra : convert_revision : 667c76132adb143e1f2c0726c80ad3e567a530aa

19 years agoMore fixes for running from anywhere.
Nathan Binkert [Wed, 9 Feb 2005 23:12:39 +0000 (18:12 -0500)]
More fixes for running from anywhere.

util/pbs/send.py:
    always access the job directory via full path

--HG--
extra : convert_revision : 1792aadb39428e7c91953ac58f6da212b7f92835

19 years agoenable the Trace, Statistics, and Serialize param contexts.
Nathan Binkert [Wed, 9 Feb 2005 22:33:28 +0000 (17:33 -0500)]
enable the Trace, Statistics, and Serialize param contexts.

objects/Root.mpy:
    Fake the param context stuff for now.
sim/param.cc:
    Make empty vector enums work
sim/serialize.cc:
    serialize_dir is always valid

--HG--
extra : convert_revision : c46373f0f4c70e6a2f01a81c0fa6bacab72d4c4f

19 years agoFixes to thes pbs send script
Nathan Binkert [Wed, 9 Feb 2005 21:20:53 +0000 (16:20 -0500)]
Fixes to thes pbs send script

util/pbs/send.py:
    - add a -d to set the job root directory allowing one to run
    send.py from anywhere.
    - specify full paths to files instead of relative paths to make -d
    work and to allow ssh qsub to work again.
    - make the Link directory only copy links that point to regular files.

--HG--
extra : convert_revision : dd330cee08b97c5d72c3d58ef123f83ac7ccede7

19 years agoAdd the split_first and split_last functions on strings.
Nathan Binkert [Wed, 9 Feb 2005 18:46:23 +0000 (13:46 -0500)]
Add the split_first and split_last functions on strings.

base/str.cc:
base/str.hh:
    Add a couple functions that allow you to split a string at
    the first or last instance of a delimiter.

--HG--
extra : convert_revision : 2af22639e1b67ac61577c00475a555841a56f902

19 years agoFix the panic message so that it looks more like M5's panic.
Nathan Binkert [Wed, 9 Feb 2005 18:41:53 +0000 (13:41 -0500)]
Fix the panic message so that it looks more like M5's panic.
Make it so the same path is not added to the system path twice.

--HG--
extra : convert_revision : fe18db38cc4e335ad3525a364e9f8faf62b60e52

19 years agofix indent (so emacs and vi aren't screwed up.)
Nathan Binkert [Wed, 9 Feb 2005 18:40:02 +0000 (13:40 -0500)]
fix indent (so emacs and vi aren't screwed up.)

--HG--
extra : convert_revision : 589f37476fec14aa5e3c6e018631e291113d4e69

19 years agoTweak genini.
Nathan Binkert [Sat, 5 Feb 2005 18:50:25 +0000 (13:50 -0500)]
Tweak genini.

test/genini.py:
    Make it possible to run genini from a different directory.

--HG--
extra : convert_revision : 57cfb010d6114512040bf334ea21c9ed87234be0

19 years agoMake pbs submission scripts available to all.
Nathan Binkert [Sat, 5 Feb 2005 18:49:17 +0000 (13:49 -0500)]
Make pbs submission scripts available to all.
Fix up configuration scrupts to have better support for
running on the simulation pool.

--HG--
extra : convert_revision : 0178c8600b193d6c0ca69163fb735a7fa0e70782

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Fri, 4 Feb 2005 04:51:02 +0000 (23:51 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : 0151e501074988eedb52d91254870c265935f229

19 years agoAdd Monet configuration, update p4 parameters, couple of typo fixes
Ali Saidi [Fri, 4 Feb 2005 04:50:57 +0000 (23:50 -0500)]
Add Monet configuration, update p4 parameters, couple of typo fixes

dev/tsunami_cchip.cc:
    add a fake register to tsunami that we can do 32bit reads to.
    Warn on access.

--HG--
extra : convert_revision : d87860f3b527528151c23431556039bca6e12945

19 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
Steve Reinhardt [Fri, 4 Feb 2005 01:50:07 +0000 (20:50 -0500)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/stever/bk/m5

--HG--
extra : convert_revision : aea0708fa6684e3203c03f17e8ae6ae87e893f04

19 years agoMinor bug fix/update to tracediff util.
Steve Reinhardt [Fri, 4 Feb 2005 01:49:14 +0000 (20:49 -0500)]
Minor bug fix/update to tracediff util.

util/tracediff:
    Fix bug (used += instead of .= for string concatenation in Perl...
    wrong language!).

    Also updated for new config (s/Universe/root/).

--HG--
extra : convert_revision : 0db3f22794037dc51cc29f78a75bd22012a8ecd9

19 years agoAdd support for CPU models to execute the effective
Steve Reinhardt [Fri, 4 Feb 2005 01:47:11 +0000 (20:47 -0500)]
Add support for CPU models to execute the effective
address calculation and memory access portions separately.
Not currently used by any CPU models, but Kevin says he needs this.

Also clean up handling of execution tracing for memory accesses
(move it all into isa_desc and out of CPU models).

Got rid of some ancient unused code too.

arch/alpha/isa_desc:
    Add execute() methods to EAComp and MemAcc portions of memory
    access instructions, to allow CPU models to execute the effective
    address calculation and memory access portions separately.

    Requires the execution context to remember the effective address
    across the two invocations.  Added setEA() and getEA() methods to
    execution context to support this.  A model that does not use the
    split execution model can panic if these methods are called.

    Also added hook to call traceData->setAddr() after EA computation
    on any load or store operation.
arch/isa_parser.py:
    Call traceData->setData() on memory writes (stores).
cpu/simple_cpu/simple_cpu.cc:
    Get rid of unused code.
cpu/simple_cpu/simple_cpu.hh:
    Add (non-functional) setEA() and getEA() methods for new
    split memory access execution support.

--HG--
extra : convert_revision : bc2d2c758c4ca753812b9fa81f21038e55929ff0

19 years agoget rid of defined and just access the env dict directly
Nathan Binkert [Thu, 3 Feb 2005 22:04:54 +0000 (17:04 -0500)]
get rid of defined and just access the env dict directly
get rid of the alias for true to True and false to False to keep
consistent python syntax.

util/stats/info.py:
    Fix typo

--HG--
extra : convert_revision : e69588a8de52424e043315e70008ca3a3ede7d5b

19 years agosmall python config related fixes.
Nathan Binkert [Thu, 3 Feb 2005 19:33:02 +0000 (14:33 -0500)]
small python config related fixes.

dev/simconsole.cc:
sim/universe.cc:
    isValid isn't compatible with new python stuff, so whack it.

--HG--
extra : convert_revision : 0c50038769a558650479c51122a8be5d92e7d9c4

19 years agoFix minor doxygen problem.
Steve Reinhardt [Thu, 3 Feb 2005 18:10:35 +0000 (13:10 -0500)]
Fix minor doxygen problem.

--HG--
extra : convert_revision : c15b1c5ab1c87b8d1cea87ffa383d1f4d45f107c

19 years agoUpdate config file language to take simobj and no longer use siminst
Nathan Binkert [Thu, 3 Feb 2005 02:13:01 +0000 (21:13 -0500)]
Update config file language to take simobj and no longer use siminst

objects/AlphaConsole.mpy:
objects/AlphaTLB.mpy:
objects/BadDevice.mpy:
objects/BaseCPU.mpy:
objects/BaseCache.mpy:
objects/BaseSystem.mpy:
objects/Bus.mpy:
objects/CoherenceProtocol.mpy:
objects/Device.mpy:
objects/DiskImage.mpy:
objects/Ethernet.mpy:
objects/Ide.mpy:
objects/IntrControl.mpy:
objects/MemTest.mpy:
objects/Pci.mpy:
objects/PhysicalMemory.mpy:
objects/Platform.mpy:
objects/Process.mpy:
objects/Repl.mpy:
objects/Root.mpy:
objects/SimConsole.mpy:
objects/SimpleDisk.mpy:
objects/Tsunami.mpy:
objects/Uart.mpy:
    simobj now requires a type= line if it is actually intended
    to be a type
sim/pyconfig/SConscript:
    keep track of the filename of embedded files for better
    error messages.
sim/pyconfig/m5config.py:
    Add support for the trickery done with the compiler to get the
    simobj language feature added to the importer.

    fix the bug that gave objects the wrong name in error messages.
test/genini.py:
    Globals have been fixed and use execfile

--HG--
extra : convert_revision : b74495fd6f3479a87ecea7f1234ebb6731279b2b

19 years agosome changes for a split lifo in the new python config.
Lisa Hsu [Tue, 1 Feb 2005 22:35:01 +0000 (17:35 -0500)]
some changes for a split lifo in the new python config.

objects/BaseCache.mpy:
    add all the Split parameters to the BaseCache simobj.

--HG--
extra : convert_revision : 4fcba3ce730f730ca8628ac7f4aa0fb9476474ab

19 years agochecking in outstanding changes for partitioning that never made it to the head in...
Lisa Hsu [Tue, 1 Feb 2005 20:40:02 +0000 (15:40 -0500)]
checking in outstanding changes for partitioning that never made it to the head in my mad prelim rush.

--HG--
extra : convert_revision : 59ca9cca2f2090d234708a695228bf4a91fc5f52

19 years agoremoved all tsunami dependence on tlaserreg.h (RTC defines) and
Ali Saidi [Sun, 30 Jan 2005 21:58:39 +0000 (16:58 -0500)]
removed all tsunami dependence on tlaserreg.h (RTC defines) and
all but tlaser_node.cc dependence on tlaserreg.h

dev/tsunami_io.cc:
dev/tsunamireg.h:
    removed tlaserreg.h

--HG--
extra : convert_revision : 148a5d79530e5ed721a49279f684a48041deed2b

19 years agomake nat runs used vegas congestion avoidance implementation.
Lisa Hsu [Fri, 28 Jan 2005 20:57:40 +0000 (15:57 -0500)]
make nat runs used vegas congestion avoidance implementation.

--HG--
extra : convert_revision : 29d2c4b70c56f13642466bd88c82f36ba849ed9d

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Thu, 27 Jan 2005 21:01:32 +0000 (16:01 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : ed089f6062639ae5be930fbaea3dd7f7622653cc

19 years agoadded support for outputing Dot if pydot is installed
Ali Saidi [Thu, 27 Jan 2005 21:01:25 +0000 (16:01 -0500)]
added support for outputing Dot if pydot is installed

--HG--
extra : convert_revision : bdb1032cddb2478e999399647f893d320260ef7e

19 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
Kevin Lim [Tue, 25 Jan 2005 21:27:23 +0000 (16:27 -0500)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/.automount/zamp/z/ktlim2/m5-patched/m5-new

--HG--
extra : convert_revision : 2848966f3daf7aba741d4d38db9c87145d72ee26

19 years agoWe need more cshrs so we don't segfault.
Nathan Binkert [Tue, 25 Jan 2005 16:15:54 +0000 (11:15 -0500)]
We need more cshrs so we don't segfault.

--HG--
extra : convert_revision : 54b1987d86e3f307e13de0396cf149653f4f6e6a

19 years agoFix the stats ParamContext
Nathan Binkert [Tue, 25 Jan 2005 07:02:42 +0000 (02:02 -0500)]
Fix the stats ParamContext

--HG--
extra : convert_revision : 23e49ca8bd9f50be32a4c28ba435a358d7093f83

19 years agoFix pc_sample_interval default
Nathan Binkert [Tue, 25 Jan 2005 07:00:01 +0000 (02:00 -0500)]
Fix pc_sample_interval default

--HG--
extra : convert_revision : 553b0489e8b8a83a4e8bbf9601eb82902436c761

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Kevin Lim [Fri, 21 Jan 2005 23:31:30 +0000 (18:31 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5-patched/m5-new

--HG--
extra : convert_revision : e802c800a478c297d3aa780a9ea3c6701453d91d

19 years agosend output to the JOBDIR
Nathan Binkert [Fri, 21 Jan 2005 20:49:46 +0000 (15:49 -0500)]
send output to the JOBDIR

--HG--
extra : convert_revision : d53864c55f20aa00754106390878ce04a4ff468e

19 years agofix bug in python code
Nathan Binkert [Fri, 21 Jan 2005 20:13:27 +0000 (15:13 -0500)]
fix bug in python code

--HG--
extra : convert_revision : 67a931326e5a8e6b814ea6d3bcd384126b0cbba4

19 years agoFixup checkpointing with the new config stuff.
Nathan Binkert [Fri, 21 Jan 2005 20:09:42 +0000 (15:09 -0500)]
Fixup checkpointing with the new config stuff.

objects/Root.mpy:
    add checkpointing as a parameter to the root object.

--HG--
extra : convert_revision : 3b809ebd776c8a9256a4ad6f8783cd96ab5cb1b3

19 years agoMake it so that with dual CPU's we create more writebuffers by default, so that we...
Ron Dreslinski [Fri, 21 Jan 2005 17:23:03 +0000 (12:23 -0500)]
Make it so that with dual CPU's we create more writebuffers by default, so that we can handle more uncached access (we will get some from multiple processors)

--HG--
extra : convert_revision : 4bb913340cda47925321da5f95aaa2ff95dbe9dd

19 years agoFix some mysql code issues.
Nathan Binkert [Fri, 21 Jan 2005 16:29:19 +0000 (11:29 -0500)]
Fix some mysql code issues.

base/stats/events.cc:
    cast this to an unsigned long long to make the compiler happy
    on 64-bit platforms.

--HG--
extra : convert_revision : e893d21bb228cbfb0c23adb7c4eeb1f62209ca1c

19 years agoAdd more options that we may want to tweak on a per-job basis.
Nathan Binkert [Fri, 21 Jan 2005 16:27:14 +0000 (11:27 -0500)]
Add more options that we may want to tweak on a per-job basis.
Fix the nat config.

--HG--
extra : convert_revision : 22bd4f20408371b644b51fd8d6b79486e1e5a59b

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Fri, 21 Jan 2005 16:19:26 +0000 (11:19 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : 47fe06540907f6810cd1bccfc96a8705fd38c4ba

19 years agoMerge zizzer:/z/m5/Bitkeeper/m5
Ron Dreslinski [Fri, 21 Jan 2005 09:55:55 +0000 (04:55 -0500)]
Merge zizzer:/z/m5/Bitkeeper/m5
into zazzer.eecs.umich.edu:/z/rdreslin/m5bk/new_config

--HG--
extra : convert_revision : 8c87cd948d501b1fc58d57f1f505d1f72725ecde

19 years agoFix annoying bug that lead to dropped packets in the P4 system
Ron Dreslinski [Fri, 21 Jan 2005 09:55:43 +0000 (04:55 -0500)]
Fix annoying bug that lead to dropped packets in the P4 system

dev/pktfifo.cc:
    Make it so that we don't unserialize the size of the fifo, clobering the fact that we were trying to make it bigger, and leading to a misleading config.out that states the un-overwritten max_size.
    Perhaps this should instead be a panic if the size (amount that was serialized) is bigger than the maxsize that was assigned by the configuration file.

--HG--
extra : convert_revision : d4b0527bfd7a584554ddc87c9b2103f7a3a72332

19 years agoAdd a couple statistics contexts.
Nathan Binkert [Fri, 21 Jan 2005 09:34:01 +0000 (04:34 -0500)]
Add a couple statistics contexts.

arch/alpha/pseudo_inst.cc:
    rename the context for consistency.
sim/pyconfig/m5config.py:
    Add a ParamContext class so that param contexts work with
    the new config stuff.

--HG--
extra : convert_revision : 3a6b583a25c86237baca7a2b4eccc9d12f86a384

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Wed, 19 Jan 2005 23:40:09 +0000 (18:40 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : d5e6f6e696d7607f89894856d940afc89ae8e37b

19 years agoadded total bytes/bandwidth/packets formulas to nics
Ali Saidi [Wed, 19 Jan 2005 23:40:02 +0000 (18:40 -0500)]
added total bytes/bandwidth/packets formulas to nics
cleaned up stability code and wrote some better help for stats.py
fixed sample bug in info.py

dev/ns_gige.cc:
dev/ns_gige.hh:
dev/sinic.cc:
dev/sinic.hh:
    add total bandwidth/packets/bytes stats
util/stats/info.py:
    fixed samples bug
util/stats/stats.py:
    cleaned up stability code and wrote a bit better help

--HG--
extra : convert_revision : cae06f4fac744d7a51ee0909f21f03509151ea8f

19 years agoAdd a new aggregate trace flag that doesn't print gobs of ethernet raw data, but...
Lisa Hsu [Wed, 19 Jan 2005 23:18:15 +0000 (18:18 -0500)]
Add a new aggregate trace flag that doesn't print gobs of ethernet raw data, but prints everything else.

--HG--
extra : convert_revision : ddb0636f5d5f0c746bd121eaafc0c685b422b006

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Kevin Lim [Wed, 19 Jan 2005 21:34:35 +0000 (16:34 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5-patched/m5-new

--HG--
extra : convert_revision : 3b9413a6861eaddb8de753d76e217106d41cc347

19 years agoFix serialization of txPacket (need to properly calculate the length before serializa...
Ron Dreslinski [Wed, 19 Jan 2005 21:26:19 +0000 (16:26 -0500)]
Fix serialization of txPacket (need to properly calculate the length before serialization)

--HG--
extra : convert_revision : e93321495d19afb86949daf2c14102ffb6bcef41

19 years agofix unserialization of PacketFifo
Nathan Binkert [Wed, 19 Jan 2005 17:43:06 +0000 (12:43 -0500)]
fix unserialization of PacketFifo

dev/pktfifo.cc:
    fix unserialization.  calling resize on a list just sticks
    uninitialized garbage into the list.

--HG--
extra : convert_revision : 1cbff596dd0b88560e23b9368ec75a7369beb9d9

19 years agoAdd the pc_sample_interval stuff
Nathan Binkert [Wed, 19 Jan 2005 17:41:12 +0000 (12:41 -0500)]
Add the pc_sample_interval stuff
add a Sampler configuration for the P4

--HG--
extra : convert_revision : 45a8f67ff80b552925a5f1cb9b8c14e11c33b78c

19 years agoMake the config stuff work on 64-bit machines
Nathan Binkert [Wed, 19 Jan 2005 04:01:17 +0000 (23:01 -0500)]
Make the config stuff work on 64-bit machines

objects/Pci.mpy:
    specify that the value is a long so that it is not
    interpreted as a negative value.

--HG--
extra : convert_revision : 3b0df8711da5934aff0096ba54fb79da808e987b

19 years agoremove assert that doesn't apply with the new configuration system
Nathan Binkert [Tue, 18 Jan 2005 23:09:27 +0000 (18:09 -0500)]
remove assert that doesn't apply with the new configuration system

--HG--
extra : convert_revision : 9cec969a4f6fa391c05e3c152e3c1396646038f3

19 years agoYet again, another configuration fix
Nathan Binkert [Tue, 18 Jan 2005 23:06:22 +0000 (18:06 -0500)]
Yet again, another configuration fix

--HG--
extra : convert_revision : e6683da3a35c57e742f572b0c5d5a79bfbecbdd9

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Tue, 18 Jan 2005 22:55:42 +0000 (17:55 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : 5cb8186e246698fb2606beb4af8fd10cedb1b2a9

19 years agoAbility to check formulas
Ali Saidi [Tue, 18 Jan 2005 22:55:35 +0000 (17:55 -0500)]
Ability to check formulas

--HG--
extra : convert_revision : 68a2a19cceb4a8cf8a2798ee5c019d25c0fca3cc

19 years agoAdd a missing variable to the simple CPU
Nathan Binkert [Tue, 18 Jan 2005 22:54:17 +0000 (17:54 -0500)]
Add a missing variable to the simple CPU

--HG--
extra : convert_revision : 50997f58f44506a6c5349a559298e8fc58d79974

19 years agoFix the sampler for real this time
Nathan Binkert [Tue, 18 Jan 2005 20:51:53 +0000 (15:51 -0500)]
Fix the sampler for real this time

--HG--
extra : convert_revision : e930f9ec59c2e160be9a43e6e45608decd3f49c5

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Kevin Lim [Tue, 18 Jan 2005 20:46:00 +0000 (15:46 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5-patched/m5-new

--HG--
extra : convert_revision : c51d9a7361d8e3c23e9494640c66df8505322b00

19 years agofix typo
Nathan Binkert [Tue, 18 Jan 2005 20:42:52 +0000 (15:42 -0500)]
fix typo

--HG--
extra : convert_revision : 7fe0b0b43534020ffd3e5d34a08efd24ba063e5a

19 years agoMore configuration fixes
Nathan Binkert [Tue, 18 Jan 2005 20:28:34 +0000 (15:28 -0500)]
More configuration fixes

sim/pyconfig/m5config.py:
    put panic, AddToPath, and Import here so they're always available.

--HG--
extra : convert_revision : 104dba5ccac0d64479b4109d477b5192c4b07a6e

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Tue, 18 Jan 2005 18:35:04 +0000 (13:35 -0500)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : a799d615ab5a3d3447b24b1b1ce24cffcde361cd

19 years agonow really done with stability stats stuff
Ali Saidi [Tue, 18 Jan 2005 18:34:58 +0000 (13:34 -0500)]
now really done with stability stats stuff

--HG--
extra : convert_revision : 9bdbcec972f5d06e3ecd99c418fcccfaef7f6f3a

19 years agofinished stability stats option
Ali Saidi [Tue, 18 Jan 2005 18:25:55 +0000 (13:25 -0500)]
finished stability stats option

--HG--
extra : convert_revision : 3ad0a143f79b116c5b18321846653d627429882a

19 years agoMerge changes to make m5 g++ 3.4 compatible.
Kevin Lim [Tue, 18 Jan 2005 18:02:47 +0000 (13:02 -0500)]
Merge changes to make m5 g++ 3.4 compatible.

sim/param.cc:
    Merge changes.

--HG--
extra : convert_revision : b5044e1f7c48ae2d74d5233dd4fabfb7a801d7c8

19 years agoFix the p4 config
Nathan Binkert [Tue, 18 Jan 2005 17:51:09 +0000 (12:51 -0500)]
Fix the p4 config

--HG--
extra : convert_revision : 64dac30ce221b71f0ac0e5bceed739fa95ab11a2

19 years agoMore configuration tweaks/fixes
Nathan Binkert [Tue, 18 Jan 2005 16:54:46 +0000 (11:54 -0500)]
More configuration tweaks/fixes

--HG--
extra : convert_revision : 8094d88e9e58f9097e9e4ffde70787f81bb235e1

19 years agoMove trace data function to .cc file.
Kevin Lim [Tue, 18 Jan 2005 16:43:45 +0000 (11:43 -0500)]
Move trace data function to .cc file.

--HG--
extra : convert_revision : 8180068747489978a2bbaa096dc73b0cfd14b052