gem5.git
13 years agosim: style fixes in sim/process.hh
Steve Reinhardt [Mon, 23 May 2011 21:29:23 +0000 (14:29 -0700)]
sim: style fixes in sim/process.hh

13 years agosyscall emul: fix Power Linux mmap constant, plus other cleanup
Steve Reinhardt [Mon, 23 May 2011 21:29:23 +0000 (14:29 -0700)]
syscall emul: fix Power Linux mmap constant, plus other cleanup

We were getting a spurious warning in the regressions that turned
out to be due to having the wrong value for TGT_MAP_ANONYMOUS for
Power Linux, but in the process of tracking it down I ended up
doing some cleanup of the mmap handling in general.

13 years agoconfig: revamp x86 config to avoid appending to SimObjectVectors
Steve Reinhardt [Mon, 23 May 2011 21:29:23 +0000 (14:29 -0700)]
config: revamp x86 config to avoid appending to SimObjectVectors
A significant contributor to the need for adoptOrphanParams()
is the practice of appending to SimObjectVectors which have
already been assigned as children.  This practice sidesteps the
assignment operation for those appended SimObjects, which is
where parent/child relationships are typically established.

This patch reworks the config scripts that use append() on
SimObjectVectors, which all happen to be in the x86 system
configuration.  At some point in the future, I hope to make
SimObjectVectors immutable (by deriving from tuple rather than
list), at which time this patch will be necessary for correct
operation.  For now, it just avoids some of the warning
messages that get printed in adoptOrphanParams().

13 years agoconfig: tweak ruby configs to clean up hierarchy
Steve Reinhardt [Mon, 23 May 2011 21:29:23 +0000 (14:29 -0700)]
config: tweak ruby configs to clean up hierarchy

Re-enabling implicit parenting (see previous patch) causes current
Ruby config scripts to create some strange hierarchies and generate
several warnings.  This patch makes three general changes to address
these issues.

1. The order of object creation in the ruby config files makes the L1
   caches children of the sequencer rather than the controller; these
   config ciles are rewritten to assign the L1 caches to the
   controller first.

2. The assignment of the sequencer list to system.ruby.cpu_ruby_ports
   causes the sequencers to be children of system.ruby, generating
   warnings because they are already parented to their respective
   controllers.  Changing this attribute to _cpu_ruby_ports fixes this
   because the leading underscore means this is now treated as a plain
   Python attribute rather than a child assignment. As a result, the
   configuration hierarchy changes such that, e.g.,
   system.ruby.cpu_ruby_ports0 becomes system.l1_cntrl0.sequencer.

3. In the topology classes, the routers become children of some random
   internal link node rather than direct children of the topology.
   The topology classes are rewritten to assign the routers to the
   topology object first.

13 years agoconfig: reinstate implicit parenting on parameter assignment
Steve Reinhardt [Mon, 23 May 2011 21:29:08 +0000 (14:29 -0700)]
config: reinstate implicit parenting on parameter assignment
Last summer's big rewrite of the initialization code (in
particular cset 6efc3672733b) got rid of the implicit parenting
that used to occur when an unparented SimObject was assigned as
a parameter value to another SimObject.  The idea was that the
new adoptOrphanParams() step would catch these anyway so it was
unnecessary.

Unfortunately it turns out that adoptOrphanParams() has some
inherent instability in that the parent that does the adoption
depends on the config tree traversal order.  Even making this
order deterministic (e.g., by traversing children in
alphabetical order) can introduce unwanted and unexpected
hierarchy changes between similar configs (e.g., when adding a
switch_cpu in place of a cpu), causing problems when trying to
restore checkpoints across similar configs.  The hierarchy
created by implicit parenting is more stable and more
controllable, so this patch turns that behavior back on.

This patch also cleans up some long-standing holes regarding
parenting of SimObjects that are created in class definitions
(either in the body of the class, or as default parameters).

To avoid breaking some existing config files, this necessitated
changing the error on reparenting children to a warning.  This
change fixes another bug where attempting to print the prior
error message would fail on reparenting SimObjectVectors
because they lack a _parent attribute.  Some further issues
with SimObjectVectors were cleaned up by getting rid of the
get_parent() call (which could cause errors with some
SimObjectVectors where there was no single parent to return)
with has_parent() (since all the uses of get_parent() were just
boolean tests anyway).

Finally, since the adoptOrphanParam() step turned out to be so
problematic, we now issue a warning when it actually has to do
an adoption.  Future cleanup of config files will get rid of
current warnings.

13 years agosim: add some DPRINTFs for debugging unserialization
Steve Reinhardt [Mon, 23 May 2011 21:27:20 +0000 (14:27 -0700)]
sim: add some DPRINTFs for debugging unserialization
Also got rid of unused C++ unserializeAll() method
(this is now handled in Python)

13 years agoutil/regress: make default action a more thorough regression
Steve Reinhardt [Mon, 23 May 2011 21:27:20 +0000 (14:27 -0700)]
util/regress: make default action a more thorough regression

Changed the --variants option to --test-variants and added a new
--compile-variants option for variants that are only compiled
(not tested).  The former still defaults to 'opt' and the latter
defaults to 'debug,fast'.

Also changed the behavior when no tests are specified from just
compiling to running the 'quick' tests.

As a result, a plain 'util/regress' invocation will now compile
(but not test) the debug and fast builds, and compile and run the
quick regressions on the opt build.  This should be the default
set of tests that are run before committing.  Since the nightly
regressions use this same script, this will also be the new
nightly regression behavior.

Test-only regressions can still be done by setting --compile=''.
Compile-only regressions can be done by setting --test=''.

13 years agoconfigs: missed spot progress-interval change
Korey Sewell [Mon, 23 May 2011 18:36:22 +0000 (14:36 -0400)]
configs: missed spot progress-interval change

13 years agoStats: Update stats for minor O3 changes below.
Ali Saidi [Mon, 23 May 2011 15:59:13 +0000 (10:59 -0500)]
Stats: Update stats for minor O3 changes below.

13 years agoO3: Fix offset calculation into storeQueue buffer for store->load forwarding
Geoffrey Blake [Mon, 23 May 2011 15:40:21 +0000 (10:40 -0500)]
O3: Fix offset calculation into storeQueue buffer for store->load forwarding

Calculation of offset to copy from storeQueue[idx].data structure for load to
store forwarding fixed to be difference in bytes between store and load virtual
addresses.  Previous method would induce bug where a load would index into
buffer at the wrong location.

13 years agoO3: Fix issue w/wbOutstading being decremented multiple times on blocked cache.
Geoffrey Blake [Mon, 23 May 2011 15:40:19 +0000 (10:40 -0500)]
O3: Fix issue w/wbOutstading being decremented multiple times on blocked cache.

If a split load fails on a blocked cache wbOutstanding can be decremented
twice if the first part of the split load succeeds and the second part fails.
Condition the decrementing on not having completed the first part of the load.

13 years agoO3: Fix issue with interrupts/faults occuring in the middle of a macro-op
Geoffrey Blake [Mon, 23 May 2011 15:40:18 +0000 (10:40 -0500)]
O3: Fix issue with interrupts/faults occuring in the middle of a macro-op

This patch fixes two problems with the O3 cpu model. The first is an issue
with an instruction fetch causing a fault on the next address while the
current macro-op is being issued. This happens when the micro-ops exceed
the fetch bandwdith and then on the next cycle the fetch stage attempts
to issue a request to the next line while it still has micro-ops to issue
if the next line faults a fault is attached to a micro-op in the currently
executing macro-op rather than a "nop" from the next instruction block.
This leads to an instruction incorrectly faulting when on fetch when
it had no reason to fault.

A similar problem occurs with interrupts. When an interrupt occurs the
fetch stage nominally stops issuing instructions immediately. This is incorrect
in the case of a macro-op as the current location might not be interruptable.

13 years agogarnet: use vnet_type from protocol to decide buffer depths
Tushar Krishna [Sat, 21 May 2011 04:40:57 +0000 (00:40 -0400)]
garnet: use vnet_type from protocol to decide buffer depths

The virtual channels within "response" vnets are made buffers_per_data_vc
deep (default=4), while virtual channels within other vnets are made
buffers_per_ctrl_vc deep (default = 1). This is for accurate power estimates.

13 years agoconfigs: remove -p from ruby_network_test.py
Tushar Krishna [Sat, 21 May 2011 04:00:54 +0000 (00:00 -0400)]
configs: remove -p from ruby_network_test.py

A recent patch broke the ruby network tester by adding -p inside Options.py
which conflicts with the -p inside ruby_network_test.py.
Have removed -p from ruby_network_test.py

13 years agoconfigs: cleanup redundant/unused options
Korey Sewell [Fri, 20 May 2011 18:49:06 +0000 (14:49 -0400)]
configs: cleanup redundant/unused options
maxinsts & max_inst redundant
prog_intvl and profile seem redundant, but profile looks to be unused
add -p option for progress intervals

13 years agoslicc: added vnet_type to MI_example
Tushar Krishna [Fri, 20 May 2011 09:06:43 +0000 (05:06 -0400)]
slicc: added vnet_type to MI_example

Forgot to add this to MI_example in my previous patch.

13 years agogcc: fix an uninitialized variable warning from G++ 4.5
Nathan Binkert [Wed, 18 May 2011 18:06:23 +0000 (11:06 -0700)]
gcc: fix an uninitialized variable warning from G++ 4.5

13 years agoslicc: added vnet_type field to identify response vnets from others
Tushar Krishna [Wed, 18 May 2011 07:06:07 +0000 (03:06 -0400)]
slicc: added vnet_type field to identify response vnets from others

Identifying response vnets versus other vnets will allow garnet to
determine which vnets will carry data packets, and which will carry
ctrl packets, and use appropriate buffer sizes (since data packets are larger
than ctrl packets). This in turn allows the orion power model to accurately
estimate buffer power.

13 years agogarnet: rename and rearrange config parameters.
Tushar Krishna [Wed, 18 May 2011 07:04:14 +0000 (03:04 -0400)]
garnet: rename and rearrange config parameters.

Renamed (message) class to vnet for consistency with rest of ruby.
Moved some parameters specific to fixed/flexible garnet networks into their
corresponding py files.

13 years agoARM: Fix up stats for previous changes to condition codes
Ali Saidi [Fri, 13 May 2011 22:29:27 +0000 (17:29 -0500)]
ARM: Fix up stats for previous changes to condition codes

13 years agoARM: Generate condition code setting code based on which codes are set.
Ali Saidi [Fri, 13 May 2011 22:27:02 +0000 (17:27 -0500)]
ARM: Generate condition code setting code based on which codes are set.

This change further eliminates cases where condition codes were being read
just so they could be written without change because the instruction in
question was supposed to preserve them. This is done by creating the condition
code code based on the input rather than just doing a simple substitution.

13 years agoARM: Construct the predicate test register for more instruction programatically.
Ali Saidi [Fri, 13 May 2011 22:27:02 +0000 (17:27 -0500)]
ARM: Construct the predicate test register for more instruction programatically.

If one of the condition codes isn't being used in the execution we should only
read it if the instruction might be dependent on it. With the preeceding changes
there are several more cases where we should dynamically pick instead of assuming
as we did before.

13 years agoARM: Further break up condition code into NZ, C, V bits.
Ali Saidi [Fri, 13 May 2011 22:27:01 +0000 (17:27 -0500)]
ARM: Further break up condition code into NZ, C, V bits.

Break up the condition code bits into NZ, C, V registers. These are individually
written and this removes some incorrect dependencies between instructions.

13 years agoARM: Remove the saturating (Q) condition code from the renamed register.
Ali Saidi [Fri, 13 May 2011 22:27:01 +0000 (17:27 -0500)]
ARM: Remove the saturating (Q) condition code from the renamed register.

Move the saturating bit (which is also saturating) from the renamed register
that holds the flags to the CPSR miscreg and adds a allows setting it in a
similar way to the FP saturating registers. This removes a dependency in
instructions that don't write, but need to preserve the Q bit.

13 years agoARM: Break up condition codes into normal flags, saturation, and simd.
Ali Saidi [Fri, 13 May 2011 22:27:01 +0000 (17:27 -0500)]
ARM: Break up condition codes into normal flags, saturation, and simd.

This change splits out the condcodes from being one monolithic register
into three blocks that are updated independently. This allows CPUs
to not have to do RMW operations on the flags registers for instructions
that don't write all flags.

13 years agoTrace: Allow printing ASIDs and selectively tracing based on user/kernel code.
Chander Sudanthi [Fri, 13 May 2011 22:27:00 +0000 (17:27 -0500)]
Trace: Allow printing ASIDs and selectively tracing based on user/kernel code.

Debug flags are ExecUser, ExecKernel, and ExecAsid. ExecUser and
ExecKernel are set by default when Exec is specified.  Use minus
sign with ExecUser or ExecKernel to remove user or kernel tracing
respectively.

13 years agoARM: Better RealView/Versatile EB platform support.
Chander Sudanthi [Fri, 13 May 2011 22:27:00 +0000 (17:27 -0500)]
ARM: Better RealView/Versatile EB platform support.

Add registers and components to better support the VersatileEB board.
Made the MIDR and SYS_ID register parameters to ArmSystem and RealviewCtrl
respectively.

13 years agoO3: Fix an issue with a load & branch instruction and mem dep squashing
Geoffrey Blake [Fri, 13 May 2011 22:27:00 +0000 (17:27 -0500)]
O3: Fix an issue with a load & branch instruction and mem dep squashing

Instructions that load an address and are control instructions can
execute down the wrong path if they were predicted correctly and then
instructions following them are squashed. If an instruction is a
memory and control op use the predicted address for the next PC instead
of just advancing the PC. Without this change NPC is used for the next
instruction, but predPC is used to verify that the branch was successful
so the wrong path is silently executed.

13 years agostats: delete mysql support
Nathan Binkert [Thu, 12 May 2011 18:19:35 +0000 (11:19 -0700)]
stats: delete mysql support
we can add it back within python in some future changeset

13 years agostats: move code that loops over all stats into python
Nathan Binkert [Thu, 12 May 2011 18:19:35 +0000 (11:19 -0700)]
stats: move code that loops over all stats into python

13 years agostats: better expose statistics to python.
Nathan Binkert [Thu, 12 May 2011 18:19:32 +0000 (11:19 -0700)]
stats: better expose statistics to python.
Build a python list and dict of all stats and expose flags properly.

--HG--
rename : src/python/m5/stats.py => src/python/m5/stats/__init__.py

13 years agowork around gcc 4.5 warning
Nathan Binkert [Mon, 9 May 2011 20:34:11 +0000 (16:34 -0400)]
work around gcc 4.5 warning

13 years agoNetworkTest: added sim_cycles parameter to the network tester.
Tushar Krishna [Sat, 7 May 2011 21:43:30 +0000 (17:43 -0400)]
NetworkTest: added sim_cycles parameter to the network tester.

The network tester terminates after injecting for sim_cycles
(default=1000), instead of having to explicitly pass --maxticks from the
command line as before. If fixed_pkts is enabled, the tester only
injects maxpackets number of packets, else it keeps injecting till sim_cycles.
The tester also works with zero command line arguments now.

13 years agonetwork: added Torus and Pt2Pt topologies
Tushar Krishna [Sat, 7 May 2011 21:28:15 +0000 (17:28 -0400)]
network: added Torus and Pt2Pt topologies

13 years agoTrace: Remove the options trace-help and trace-flags
Nilay Vaish [Sat, 7 May 2011 12:38:36 +0000 (07:38 -0500)]
Trace: Remove the options trace-help and trace-flags
The options trace-help and trace-flags are no longer required. In there place,
the options debug-help and debug-flags have been provided.

13 years agoX86: Fix the Lldt instructions so they load the ldtr and not the tr.
Gabe Black [Fri, 6 May 2011 08:00:32 +0000 (01:00 -0700)]
X86: Fix the Lldt instructions so they load the ldtr and not the tr.

13 years agoruby: use RubyMemory flag & remove setDebug() functionality
Korey Sewell [Thu, 5 May 2011 06:20:31 +0000 (02:20 -0400)]
ruby: use RubyMemory flag & remove setDebug() functionality
The RubyMemory flag wasnt used in the code, creating large gaps in trace output. Replace cprintfs w/dprintfs
using RubyMemory in memory controller. DPRINTF also deprecate the usage of the setDebug() pure virtual
function in the AbstractMemoryOrCache Class as well the m_debug/cprintf functions in MemoryControl.hh/cc

13 years agoARM: Update ARM_FS stats for mp changes
Ali Saidi [Thu, 5 May 2011 01:38:28 +0000 (20:38 -0500)]
ARM: Update ARM_FS stats for mp changes

13 years agoARM: Configure bootloader parameters
Ali Saidi [Thu, 5 May 2011 01:38:28 +0000 (20:38 -0500)]
ARM: Configure bootloader parameters

13 years agoARM: Add support for loading the a bootloader and configuring parameters for it
Ali Saidi [Thu, 5 May 2011 01:38:28 +0000 (20:38 -0500)]
ARM: Add support for loading the a bootloader and configuring parameters for it

13 years agoARM: Implement WFE/WFI/SEV semantics.
Prakash Ramrakhyani [Thu, 5 May 2011 01:38:28 +0000 (20:38 -0500)]
ARM: Implement WFE/WFI/SEV semantics.

13 years agoARM: Add support for MP misc regs and broadcast flushes.
Ali Saidi [Thu, 5 May 2011 01:38:28 +0000 (20:38 -0500)]
ARM: Add support for MP misc regs and broadcast flushes.

13 years agoARM: Make GIC handle IPIs and multiple processors.
Prakash Ramrakhyani [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
ARM: Make GIC handle IPIs and multiple processors.

13 years agoARM: Add snoop control unit device.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
ARM: Add snoop control unit device.

13 years agoARM: Add support for some more registers in the real view controller.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
ARM: Add support for some more registers in the real view controller.

13 years agoARM: Boot loader changes that make it more flexible about load and I/O addrs
Prakash Ramrakhyani [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
ARM: Boot loader changes that make it more flexible about load and I/O addrs

13 years agoO3/ARM: Update stats for recent changes.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
O3/ARM: Update stats for recent changes.

13 years agoDebug: Add a function to cause the simulator to create a checkpoint from GDB.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
Debug: Add a function to cause the simulator to create a checkpoint from GDB.

13 years agoCPU: Add some useful debug message to the timing simple cpu.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
CPU: Add some useful debug message to the timing simple cpu.

13 years agoCPU: Fix a case where timing simple cpu faults can nest.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
CPU: Fix a case where timing simple cpu faults can nest.

If we fault, change the state to faulting so that we don't fault again in the same cycle.

13 years agoO3: Remove assertion for case that is actually handled in code.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
O3: Remove assertion for case that is actually handled in code.

If an nonspeculative instruction has a fault it might not be in the
nonSpecInsts map.

13 years agoCore: Add some documentation about the sim clocks.
Ali Saidi [Thu, 5 May 2011 01:38:27 +0000 (20:38 -0500)]
Core: Add some documentation about the sim clocks.

13 years agoRealView: Fix the 24 and 100MHz clocks which were providing incorrect values.
Chris Emmons [Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)]
RealView: Fix the 24 and 100MHz clocks which were providing incorrect values.

13 years agoO3: Fix a small corner case with the lsq hazard detection logic.
Ali Saidi [Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)]
O3: Fix a small corner case with the lsq hazard detection logic.

13 years agoARM: Add vfpv3 support to native trace.
Ali Saidi [Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)]
ARM: Add vfpv3 support to native trace.

13 years agoARM: Fix small bug with vcvt instruction
Ali Saidi [Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)]
ARM: Fix small bug with vcvt instruction

13 years agodebug: fix help output
Nathan Binkert [Wed, 4 May 2011 14:08:08 +0000 (10:08 -0400)]
debug: fix help output

13 years agoscons: interpret paths relative to launch directory
Steve Reinhardt [Mon, 2 May 2011 19:40:32 +0000 (12:40 -0700)]
scons: interpret paths relative to launch directory

Make sure all command-line targets and EXTRAS directories
are interpreted relative to the launch directory.  This
turns out to be very useful when building code from an
EXTRAS directory using SCons's -C option.

We were trying to do this with targets but it didn't actually
work since we didn't update BUILD_TARGETS (so SCons got
confused internally).  We weren't even trying with EXTRAS.

To simplify the code, the default target is also interpreted
relative to the launch dir even though it was explicitly
handled as relative to the m5 dir before... I doubt anyone
really uses this anyway so it didn't seem worth the complexity.
(Maybe we should get rid of it?)

13 years agoscons: allow use of current builds as default build settings
Steve Reinhardt [Mon, 2 May 2011 19:40:31 +0000 (12:40 -0700)]
scons: allow use of current builds as default build settings
Currently the --default= option only looks at the predefined
build configs (in m5/build_opts), so you're limited to basing
a new build config off of those (ALPHA_SE, etc.).  If you've
already defined a non-standard build config and want to clone
it or tweak it, you have to start from scratch.  This patch
causes --default= to look first among the existing builds
(in build/variables) before looking in build_opts so you
can specify an existing non-standard build config as a
starting point for a new config.

13 years agoruby: dbg: use system ticks instead of cycles
Korey Sewell [Mon, 2 May 2011 04:16:14 +0000 (00:16 -0400)]
ruby: dbg: use system ticks instead of cycles

13 years agoUtil: Replace mkblankimage.sh with the new gem5img.py.
Gabe Black [Fri, 29 Apr 2011 08:46:19 +0000 (04:46 -0400)]
Util: Replace mkblankimage.sh with the new gem5img.py.

This change replaces the mkblankimage.sh script, used for creating new disk
images, with a new gem5img.py script. The new version is written in python
instead of bash, takes its parameters from command line arguments instead of
prompting for them, and finds a free loopback device dynamically instead of
hardcoding /dev/loop1. The file system used is now optionally configurable,
and the blank image is filled by a "hole" left by lseek and write instead of
literally filling it with zeroes.

The functionality of the new script is broken into subcommands "init",
"mount", "umount", "new", "partition", and "format". "init" creates a new file
of the appropriate size, partitions it, and then formats the first (and only)
new parition. "mount" attaches a new loopback device to the first parition of
the image file and mounts it to the specified mount point. "umount" unmounts
the specified mount point and identifies and cleans up the underlying loopback
device. "new", "partition", and "format" are the individual stages of "init"
but broken out so they can be run individually. That's so an image can be
reinitialized in place if needed.

Two features of the original script are being dropped. The first is the
ability to specify a source directory to copy into the new file system. The
second is the ability to specify a list of commands to run which are expected
to (but not required to) update the permissions of the files in the new fs.
Both of these seem easy enough to do manually, especially given the "mount"
and "umount" commands, that removing them would meaningfully simplify the
script without making it less useful.

13 years agoregress: updates after changing ruby network bandwidth
Brad Beckmann [Fri, 29 Apr 2011 00:18:16 +0000 (17:18 -0700)]
regress: updates after changing ruby network bandwidth

13 years agonetwork: set the ExtLink bw to 16 bytes
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
network: set the ExtLink bw to 16 bytes

Therefore all links by default are 16 bytes wide and thus work with Garnet's
uniform link bandwidth assumption.

13 years agogarnet: removed flit_width from Routers
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
garnet: removed flit_width from Routers

13 years agonetwork: adjusted default endpoint bandwidth
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
network: adjusted default endpoint bandwidth

The simple network's endpoint bandwidth value is used to adjust the overall
bandwidth of the network.  Specifically, the ration between endpoint bandwidth
and the MESSAGE_SIZE_MULTIPLIER determines the increase.  By setting the value
to 1000, that means the bandwdith factor specified in the links translates to
the link bandwidth in bytes.  Previously, it was increasing that value by 10.

This patch will likely require a reset of the ruby regression tester stats.

13 years agonetwork: removed the unused network-wide latency param
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
network: removed the unused network-wide latency param

13 years agonetwork: moved network config params
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
network: moved network config params

Moved the buffer_size, endpoint_bandwidth, and adaptive_routing params out of
the top-level parent network object and to only those networks that actually
use those parameters.

13 years agonetwork: basic link bw for garnet and simple networks
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
network: basic link bw for garnet and simple networks

This patch ensures that both Garnet and the simple networks use the bw value
specified in the topology.  To do so, the patch generalizes the specification
of bw for basic links.  This value is then translated to the specific value
used by the simple and Garnet networks.  Since Garent does not support
non-uniformed link bandwidth, the patch also adds a check to ensure all bws are
equal.

--HG--
rename : src/mem/ruby/network/BasicLink.cc => src/mem/ruby/network/simple/SimpleLink.cc
rename : src/mem/ruby/network/BasicLink.hh => src/mem/ruby/network/simple/SimpleLink.hh
rename : src/mem/ruby/network/BasicLink.py => src/mem/ruby/network/simple/SimpleLink.py

13 years agonetwork: convert links & switches to first class C++ SimObjects
Brad Beckmann [Fri, 29 Apr 2011 00:18:14 +0000 (17:18 -0700)]
network: convert links & switches to first class C++ SimObjects

This patch converts links and switches from second class simobjects that were
virtually ignored by the networks (both simple and Garnet) to first class
simobjects that directly correspond to c++ ojbects manipulated by the
topology and network classes.  This is especially true for Garnet, where the
links and switches directly correspond to specific C++ objects.

By making this change, many aspects of the Topology class were simplified.

--HG--
rename : src/mem/ruby/network/Network.cc => src/mem/ruby/network/BasicLink.cc
rename : src/mem/ruby/network/Network.hh => src/mem/ruby/network/BasicLink.hh
rename : src/mem/ruby/network/Network.cc => src/mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.cc
rename : src/mem/ruby/network/Network.hh => src/mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.hh
rename : src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.py => src/mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.py
rename : src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.py => src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_d.py
rename : src/mem/ruby/network/Network.cc => src/mem/ruby/network/garnet/flexible-pipeline/GarnetLink.cc
rename : src/mem/ruby/network/Network.hh => src/mem/ruby/network/garnet/flexible-pipeline/GarnetLink.hh
rename : src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.py => src/mem/ruby/network/garnet/flexible-pipeline/GarnetLink.py
rename : src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.py => src/mem/ruby/network/garnet/flexible-pipeline/GarnetRouter.py

13 years agogarnet: cleaned up flexible network header file
Brad Beckmann [Fri, 29 Apr 2011 00:18:12 +0000 (17:18 -0700)]
garnet: cleaned up flexible network header file

13 years agoruby: moved topology to the top network directory
Brad Beckmann [Fri, 29 Apr 2011 00:18:12 +0000 (17:18 -0700)]
ruby: moved topology to the top network directory

Moved the Topology class to the top network directory because it is shared by
both the simple and Garnet networks.

--HG--
rename : src/mem/ruby/network/simple/Topology.cc => src/mem/ruby/network/Topology.cc
rename : src/mem/ruby/network/simple/Topology.hh => src/mem/ruby/network/Topology.hh

13 years agoruby: removed dated comment in SimpleNetwork
Brad Beckmann [Fri, 29 Apr 2011 00:18:12 +0000 (17:18 -0700)]
ruby: removed dated comment in SimpleNetwork

13 years agoevent: fix PythonEvent
Nathan Binkert [Thu, 28 Apr 2011 23:45:17 +0000 (16:45 -0700)]
event: fix PythonEvent
order of %includes since they matter for this case

13 years agostats: update 20.parser o3 now that it works. realview-o3 works too.
Nathan Binkert [Mon, 25 Apr 2011 21:18:08 +0000 (14:18 -0700)]
stats: update 20.parser o3 now that it works.  realview-o3 works too.

13 years agobase: include types.hh in base/stats/mysql.hh
Nilay Vaish [Mon, 25 Apr 2011 17:23:37 +0000 (12:23 -0500)]
base: include types.hh in base/stats/mysql.hh
Due to certain changes made via changeset 8229, the compilation was failing
in certain cases. The compiler pointed to base/stats/mysql.hh for not naming
a certain types like uint64_t. To rectify this, base/types.hh is being
included in base/stats/mysql.hh.

13 years agoX86: When decoding a memory only inst, fault on reg encodings, don't assert.
Gabe Black [Sat, 23 Apr 2011 22:02:29 +0000 (15:02 -0700)]
X86: When decoding a memory only inst, fault on reg encodings, don't assert.

This change makes the decoder figure out if an instruction that only supports
memory is using a register encoding and decodes directly to "Unknown" which will
behave appropriately. This prevents other parts of the instruction creation
process from seeing the mismatch and asserting.

13 years agotests: updates for stat name change
Nathan Binkert [Fri, 22 Apr 2011 17:18:51 +0000 (10:18 -0700)]
tests: updates for stat name change

13 years agostats: ensure that stat names are valid
Nathan Binkert [Thu, 21 Apr 2011 02:07:46 +0000 (19:07 -0700)]
stats: ensure that stat names are valid

13 years agostats: one more name violation
Nathan Binkert [Thu, 21 Apr 2011 02:07:45 +0000 (19:07 -0700)]
stats: one more name violation

13 years agopython: fix another bug from changes to main.py
Nathan Binkert [Thu, 21 Apr 2011 02:07:44 +0000 (19:07 -0700)]
python: fix another bug from changes to main.py

13 years agofix some build problems from prior changesets
Nathan Binkert [Thu, 21 Apr 2011 01:45:03 +0000 (18:45 -0700)]
fix some build problems from prior changesets

13 years agoChange default regression build from 'fast' to 'opt'
Steve Reinhardt [Wed, 20 Apr 2011 20:47:42 +0000 (13:47 -0700)]
Change default regression build from 'fast' to 'opt'

13 years agostats: add user settable separator string for arrayed stats
Brad Danofsky [Wed, 20 Apr 2011 18:14:52 +0000 (11:14 -0700)]
stats: add user settable separator string for arrayed stats

Default is '::', so no visible change unless it is overridden

13 years agoscons: Allow the build directory live under an EXTRAS directory
Brad Danofsky [Wed, 20 Apr 2011 18:14:51 +0000 (11:14 -0700)]
scons: Allow the build directory live under an EXTRAS directory

13 years agotests: update stats for name changes
Nathan Binkert [Wed, 20 Apr 2011 01:45:23 +0000 (18:45 -0700)]
tests: update stats for name changes

13 years agostats: rename stats so they can be used as python expressions
Nathan Binkert [Wed, 20 Apr 2011 01:45:21 +0000 (18:45 -0700)]
stats: rename stats so they can be used as python expressions

13 years agopython: different import for dealing with demandimport
Nathan Binkert [Tue, 19 Apr 2011 18:13:01 +0000 (11:13 -0700)]
python: different import for dealing with demandimport

13 years agostyle: fix all_regions code and remove bogus region type
Nathan Binkert [Sun, 17 Apr 2011 21:21:04 +0000 (14:21 -0700)]
style: fix all_regions code and remove bogus region type

13 years agostyle: remove extra debugging print
Nathan Binkert [Sun, 17 Apr 2011 20:57:40 +0000 (13:57 -0700)]
style: remove extra debugging print

13 years agofile_types: Make code work in Python 2.4
Nathan Binkert [Sun, 17 Apr 2011 20:57:03 +0000 (13:57 -0700)]
file_types: Make code work in Python 2.4

13 years agounittest: Make unit tests capable of using swig and python, convert stattest
Nathan Binkert [Fri, 15 Apr 2011 17:45:11 +0000 (10:45 -0700)]
unittest: Make unit tests capable of using swig and python, convert stattest

13 years agopython: cleanup python code so stuff doesn't automatically happen at startup
Nathan Binkert [Fri, 15 Apr 2011 17:44:59 +0000 (10:44 -0700)]
python: cleanup python code so stuff doesn't automatically happen at startup
this allows things to be overridden at startup (e.g. for tests)

13 years agoscons: make a flexible system for guarding source files
Nathan Binkert [Fri, 15 Apr 2011 17:44:44 +0000 (10:44 -0700)]
scons: make a flexible system for guarding source files
This is similar to guards on mercurial queues and they're used for selecting
which files are compiled into some given object.  We already do something
similar, but it's mostly hard coded for the m5 binary and the m5 library
and I'd like to make it more flexible to better support the unittests

13 years agotrace: reimplement the DTRACE function so it doesn't use a vector
Nathan Binkert [Fri, 15 Apr 2011 17:44:32 +0000 (10:44 -0700)]
trace: reimplement the DTRACE function so it doesn't use a vector
At the same time, rename the trace flags to debug flags since they
have broader usage than simply tracing.  This means that
--trace-flags is now --debug-flags and --trace-help is now --debug-help

13 years agodebug: create a Debug namespace
Nathan Binkert [Fri, 15 Apr 2011 17:44:15 +0000 (10:44 -0700)]
debug: create a Debug namespace

13 years agoincludes: fix up code after sorting
Nathan Binkert [Fri, 15 Apr 2011 17:44:14 +0000 (10:44 -0700)]
includes: fix up code after sorting

13 years agoincludes: sort all includes
Nathan Binkert [Fri, 15 Apr 2011 17:44:06 +0000 (10:44 -0700)]
includes: sort all includes

13 years agostyle: add sort_includes to the style hook
Nathan Binkert [Fri, 15 Apr 2011 17:43:51 +0000 (10:43 -0700)]
style: add sort_includes to the style hook

13 years agostyle: move style verifiers into classes
Nathan Binkert [Fri, 15 Apr 2011 17:43:47 +0000 (10:43 -0700)]
style: move style verifiers into classes

13 years agostyle: add a user interface wrapper class
Nathan Binkert [Fri, 15 Apr 2011 17:43:30 +0000 (10:43 -0700)]
style: add a user interface wrapper class
makes things work both with mercurial and stand alone with stdio