gem5.git
13 years agoStatetrace: Kill the printer functionality in statetrace.
Gabe Black [Thu, 3 Mar 2011 06:53:10 +0000 (22:53 -0800)]
Statetrace: Kill the printer functionality in statetrace.

13 years agoStatetrace: Clean up style.
Gabe Black [Thu, 3 Mar 2011 06:53:10 +0000 (22:53 -0800)]
Statetrace: Clean up style.

13 years agoX86: Use the npc as the pc when doing a nativetrace, not what M5 considers the pc.
Gabe Black [Wed, 2 Mar 2011 08:41:44 +0000 (00:41 -0800)]
X86: Use the npc as the pc when doing a nativetrace, not what M5 considers the pc.

13 years agoX86: Decode the mysterious and elusive ffreep x87 instruction.
Gabe Black [Wed, 2 Mar 2011 08:41:38 +0000 (00:41 -0800)]
X86: Decode the mysterious and elusive ffreep x87 instruction.

The internet says this instruction was created by accident when an Intel CPU
failed to decode x87 instructions properly. It's been documented on a few rare
occasions and has generally worked to ensure backwards compatability. One
source claims that the gcc toolchain is basically the only thing that emits
it, and that emulators/binary translators like qemu and bochs implement it.

We won't actually implement it here since we're hardly implementing any other
x87 instructions either. If we were to implement it, it would behave the same
as ffree but then also pop the register stack.

http://www.pagetable.com/?p=16

13 years agoSpelling: Fix the a spelling error by changing mmaped to mmapped.
Gabe Black [Wed, 2 Mar 2011 07:18:47 +0000 (23:18 -0800)]
Spelling: Fix the a spelling error by changing mmaped to mmapped.

There may not be a formally correct spelling for the past tense of mmap, but
mmapped is the spelling Google doesn't try to autocorrect. This makes sense
because it mirrors the past tense of map->mapped and not the past tense of
cape->caped.

--HG--
rename : src/arch/alpha/mmaped_ipr.hh => src/arch/alpha/mmapped_ipr.hh
rename : src/arch/arm/mmaped_ipr.hh => src/arch/arm/mmapped_ipr.hh
rename : src/arch/mips/mmaped_ipr.hh => src/arch/mips/mmapped_ipr.hh
rename : src/arch/power/mmaped_ipr.hh => src/arch/power/mmapped_ipr.hh
rename : src/arch/sparc/mmaped_ipr.hh => src/arch/sparc/mmapped_ipr.hh
rename : src/arch/x86/mmaped_ipr.hh => src/arch/x86/mmapped_ipr.hh

13 years agoX86: Update stats for the x86 o3 hello world regression.
Gabe Black [Wed, 2 Mar 2011 07:18:00 +0000 (23:18 -0800)]
X86: Update stats for the x86 o3 hello world regression.

13 years agoX86: Mark IO reads and writes as non-speculative.
Gabe Black [Wed, 2 Mar 2011 06:42:59 +0000 (22:42 -0800)]
X86: Mark IO reads and writes as non-speculative.

13 years agoX86: Mark prefetches as such in their instruction and request flags.
Gabe Black [Wed, 2 Mar 2011 06:42:18 +0000 (22:42 -0800)]
X86: Mark prefetches as such in their instruction and request flags.

13 years agoRuby: Fix DPRINTF bugs in PerfectSwitch and MessageBuffer
Nilay Vaish [Tue, 1 Mar 2011 21:26:11 +0000 (15:26 -0600)]
Ruby: Fix DPRINTF bugs in PerfectSwitch and MessageBuffer
At a couple of places in PerfectSwitch.cc and MessageBuffer.cc, DPRINTF()
has not been provided with correct number of arguments. The patch fixes these
bugs.

13 years agoSCons: Separately label the global non-sticky options.
Gabe Black [Tue, 1 Mar 2011 11:00:42 +0000 (03:00 -0800)]
SCons: Separately label the global non-sticky options.

The global sticky options were being printed with a heading, and then the
global nonsticky options were being printed immediately after them without a
heading. Because the two lists ran together and the first had its own heading,
it looked like -all- those options where sticky even though some of them
aren't. This change adds a label to the second list so it's clear they're
different.

13 years agoRuby: Mention that Ruby's bound checking option only applies to Ruby.
Gabe Black [Tue, 1 Mar 2011 10:59:09 +0000 (02:59 -0800)]
Ruby: Mention that Ruby's bound checking option only applies to Ruby.

13 years agoX86: If PCI config space is disabled, pass through to regular IO addresses.
Gabe Black [Mon, 28 Feb 2011 00:25:06 +0000 (16:25 -0800)]
X86: If PCI config space is disabled, pass through to regular IO addresses.

13 years agoX86: Update X86_FS stats.
Gabe Black [Mon, 28 Feb 2011 00:24:54 +0000 (16:24 -0800)]
X86: Update X86_FS stats.

13 years agoX86: Use regular read requests in the walker instead of read exclusive.
Gabe Black [Mon, 28 Feb 2011 00:24:10 +0000 (16:24 -0800)]
X86: Use regular read requests in the walker instead of read exclusive.

13 years agoinorder: bzip2 regression update
Korey Sewell [Sun, 27 Feb 2011 19:17:26 +0000 (14:17 -0500)]
inorder: bzip2 regression update

13 years agogetopt: Remove GPL code.
Nathan Binkert [Sun, 27 Feb 2011 05:43:11 +0000 (21:43 -0800)]
getopt: Remove GPL code.
This code is unused and should never have been committed

13 years agoRuby: Remove store buffer
Nilay Vaish [Fri, 25 Feb 2011 23:55:20 +0000 (17:55 -0600)]
Ruby: Remove store buffer
This patch removes the store buffer from Ruby. It is not in use currently.
Since libruby is being and store buffer makes calls to libruby, it is not
possible to maintain it until substantial changes are made.

13 years agoRuby: Remove libruby
Nilay Vaish [Fri, 25 Feb 2011 23:54:56 +0000 (17:54 -0600)]
Ruby: Remove libruby
This patch removes libruby_internal.hh, libruby.hh and libruby.cc. It moves
the contents to libruby.hh to RubyRequest.hh and RubyRequest.cc files.

13 years agoRuby: Make Address.hh independent of RubySystem
Nilay Vaish [Fri, 25 Feb 2011 23:51:56 +0000 (17:51 -0600)]
Ruby: Make Address.hh independent of RubySystem
This patch changes Address.hh so that it is not dependent on RubySystem.
This dependence seems unecessary. All those functions that depend on
RubySystem have been moved to Address.cc file.

13 years agoRuby: Make DataBlock.hh independent of RubySystem
Nilay Vaish [Fri, 25 Feb 2011 23:51:02 +0000 (17:51 -0600)]
Ruby: Make DataBlock.hh independent of RubySystem
This patch changes DataBlock.hh so that it is not dependent on RubySystem.
This dependence seems unecessary. All those functions that depende on
RubySystem have been moved to DataBlock.cc file.

13 years agoO3CPU: Fix iqCount and lsqCount SMT fetch policies.
Timothy M. Jones [Fri, 25 Feb 2011 13:50:29 +0000 (13:50 +0000)]
O3CPU: Fix iqCount and lsqCount SMT fetch policies.
Fixes two of the SMT fetch policies in O3CPU that were returning the count
of instructions in the IQ or LSQ rather than the thread ID to fetch from.

13 years agoConfigs: Explicitly import env in Benchmarks.py
Gabe Black [Thu, 24 Feb 2011 10:14:45 +0000 (02:14 -0800)]
Configs: Explicitly import env in Benchmarks.py

env was being implicitly imported into Benchmarks.py through SysPaths.py.
This change brings it in explicitly in the file where it's used.

13 years agoregress: MOESI_hammer memtest updates
Brad Beckmann [Thu, 24 Feb 2011 00:41:59 +0000 (16:41 -0800)]
regress: MOESI_hammer memtest updates

13 years agoruby: automate permission setting
Brad Beckmann [Thu, 24 Feb 2011 00:41:59 +0000 (16:41 -0800)]
ruby: automate permission setting

This patch integrates permissions with cache and memory states, and then
automates the setting of permissions within the generated code.  No longer
does one need to manually set the permissions within the setState funciton.
This patch will faciliate easier functional access support by always correctly
setting permissions for both cache and memory states.

--HG--
rename : src/mem/slicc/ast/EnumDeclAST.py => src/mem/slicc/ast/StateDeclAST.py
rename : src/mem/slicc/ast/TypeFieldEnumAST.py => src/mem/slicc/ast/TypeFieldStateAST.py

13 years agoMOESI_hammer: cache probe address clean up
Brad Beckmann [Thu, 24 Feb 2011 00:41:58 +0000 (16:41 -0800)]
MOESI_hammer: cache probe address clean up

13 years agoruby: cleaned up access permission enum
Brad Beckmann [Thu, 24 Feb 2011 00:41:58 +0000 (16:41 -0800)]
ruby: cleaned up access permission enum

13 years agoruby: removed unsupported protocol files
Brad Beckmann [Thu, 24 Feb 2011 00:41:26 +0000 (16:41 -0800)]
ruby: removed unsupported protocol files

13 years agoinorder: add 00.gzip and 60.bzip2 regression tests
Korey Sewell [Wed, 23 Feb 2011 21:35:25 +0000 (16:35 -0500)]
inorder: add 00.gzip and 60.bzip2 regression tests

13 years agoinorder: InstSeqNum bug
Korey Sewell [Wed, 23 Feb 2011 21:35:18 +0000 (16:35 -0500)]
inorder: InstSeqNum bug
Because int and not InstSeqNum was used in a couple of places, you can
overflow the int type and thus get wierd bugs when the sequence number
is negative (or some wierd value)

13 years agoinorder: dyn inst initialization
Korey Sewell [Wed, 23 Feb 2011 21:35:04 +0000 (16:35 -0500)]
inorder: dyn inst initialization
remove constructors that werent being used (it just gets confusing)
use initialization list for all the variables instead of relying on initVars()
function

13 years agoinorder: cache packet handling
Korey Sewell [Wed, 23 Feb 2011 21:30:45 +0000 (16:30 -0500)]
inorder: cache packet handling
-use a pointer to CacheReqPacket instead of PacketPtr so correct destructors
get called on packet deletion
- make sure to delete the packet if the cache blocks the sendTiming request
or for some reason we dont use the packet
- dont overwrite memory requests since in the worst case an instruction will
be replaying a request so no need to keep allocating a new request
- we dont use retryPkt so delete it
- fetch code was split out already, so just assert that this is a memory
reference inst. and that the staticInst is available

13 years agoARM: Update regression tests for preceeding changes.
Ali Saidi [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
ARM: Update regression tests for preceeding changes.

13 years agoMem: Print out memory when access > 8 bytes
Ali Saidi [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
Mem: Print out memory when access > 8 bytes

13 years agoARM: Set ITSTATE correctly after FlushPipe
Ali Saidi [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
ARM: Set ITSTATE correctly after FlushPipe

13 years agoARM: This panic can be hit during misspeculation so it can't exist.
Ali Saidi [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
ARM: This panic can be hit during misspeculation so it can't exist.

13 years agoARM: Bad interworking warn way to noisy when running real code w/misspeculation.
Ali Saidi [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
ARM: Bad interworking warn way to noisy when running real code w/misspeculation.

13 years agoO3: When a prefetch causes a fault, don't record it in the inst
Ali Saidi [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
O3: When a prefetch causes a fault, don't record it in the inst

13 years agoARM: NEON instruction templates modified to set the predicate flag to false when...
Giacomo Gabrielli [Wed, 23 Feb 2011 21:10:50 +0000 (15:10 -0600)]
ARM: NEON instruction templates modified to set the predicate flag to false when needed.

13 years agoO3: If there is an outstanding table walk don't let the inst queue sleep.
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
O3: If there is an outstanding table walk don't let the inst queue sleep.

If there is an outstanding table walk and no other activity in the CPU
it can go to sleep and never wake up. This change makes the instruction
queue always active if the CPU is waiting for a store to translate.

If Gabe changes the way this code works then the below should be removed
as indicated by the todo.

13 years agoARM: Squash state on FPSCR stride or len write.
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
ARM: Squash state on FPSCR stride or len write.

13 years agoARM: Mark store conditionals as such.
Matt Horsnell [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
ARM: Mark store conditionals as such.

13 years agoARM: Do something for ISB, DSB, DMB
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
ARM: Do something for ISB, DSB, DMB

13 years agoARM: Fix bug that let two table walks occur in parallel.
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
ARM: Fix bug that let two table walks occur in parallel.

13 years agoIncludes: Don't include isa_traits.hh and use the TheISA namespace unless really...
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
Includes: Don't include isa_traits.hh and use the TheISA namespace unless really needed.

13 years agoARM: Make Noop actually decode to a noop and set it's instflags.
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
ARM: Make Noop actually decode to a noop and set it's instflags.

13 years agoO3: Fix bug when a squash occurs right before TLB miss returns.
Ali Saidi [Wed, 23 Feb 2011 21:10:49 +0000 (15:10 -0600)]
O3: Fix bug when a squash occurs right before TLB miss returns.

In this case we need to throw away the TLB miss, not assume it was the
one we were waiting for.

13 years agoARM: Delete OABI syscall handling.
Ali Saidi [Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)]
ARM: Delete OABI syscall handling.

We only support EABI binaries, so there is no reason to support OABI syscalls.
The loader detects OABI calls and fatal() so there is no reason to even check
here.

13 years agoCLCD: Fix some serialization bugs with the clcd controller.
Ali Saidi [Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)]
CLCD: Fix some serialization bugs with the clcd controller.

13 years agoARM: Clarifies creation of Linux and baremetal ARM systems.
Ali Saidi [Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)]
ARM: Clarifies creation of Linux and baremetal ARM systems.

makeArmSystem creates both bare-metal and Linux systems more cleanly.
machine_type was never optional though listed as an optional argument; a system
such as "RealView_PBX" must now be explicitly specified.  Now that it is a
required argument, the placement of the arguments has changed slightly
requiring some changes to calls that create ARM systems.

13 years agoARM: Add support for read of 100MHz clock in system controller.
Ali Saidi [Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)]
ARM: Add support for read of 100MHz clock in system controller.

13 years agoARM: Reset simulation statistics when pref counters are reset.
Ali Saidi [Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)]
ARM: Reset simulation statistics when pref counters are reset.

The ARM performance counters are not currently supported by the model.
This patch interprets a 'reset performance counters' command to mean 'reset
the simulator statistics' instead.

13 years agoARM: Adds dummy support for a L2 latency miscreg.
Ali Saidi [Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)]
ARM: Adds dummy support for a L2 latency miscreg.

13 years agoconfigs: cache: add cache line size option
Korey Sewell [Wed, 23 Feb 2011 19:26:55 +0000 (14:26 -0500)]
configs: cache: add cache line size option

13 years agoconfigs: set default cache params
Korey Sewell [Wed, 23 Feb 2011 06:01:46 +0000 (01:01 -0500)]
configs: set default cache params
It's confusing (especially to new users), when you are setting some standard
parameters (as defined in Options.py) and they aren't reflected in the simulations
so we might as well link the settings in CacheConfig.py to those in Options.py

13 years agoruby: extend dprintfs for RubyGenerated TraceFlag
Korey Sewell [Wed, 23 Feb 2011 05:58:42 +0000 (00:58 -0500)]
ruby: extend dprintfs for RubyGenerated TraceFlag
"executing" isnt a very descriptive debug message and in going through the
output you get multiple messages that say "executing" but nothing to help
you parse through the code/execution.

So instead, at least print out the name of the action that is taking
place in these functions.

13 years agoruby: cleaning up RubyQueue and RubyNetwork dprintfs
Korey Sewell [Wed, 23 Feb 2011 05:58:40 +0000 (00:58 -0500)]
ruby: cleaning up RubyQueue and RubyNetwork dprintfs
Overall, continue to progress Ruby debug messages to more of the normal M5
debug message style
- add a name() to the Ruby Throttle & PerfectSwitch objects so that the debug output
isn't littered w/"global:" everywhere.
- clean up messages that print over multiple lines when possible
- clean up duplicate prints in the message buffer

13 years agom5: merged in hammer fix
Brad Beckmann [Tue, 22 Feb 2011 19:16:40 +0000 (11:16 -0800)]
m5: merged in hammer fix

13 years agoRuby: Machine Type missing in MOESI CMP directory protocol
Nilay Vaish [Sat, 19 Feb 2011 23:32:43 +0000 (17:32 -0600)]
Ruby: Machine Type missing in MOESI CMP directory protocol
In certain actions of the L1 cache controller, while creating an outgoing
message, the machine type was not being set. This results in a
segmentation fault when trace is collected. Joseph Pusudesris provided
his patch for fixing this issue.

13 years agoRuby: clean MOESI CMP directory protocol
Nilay Vaish [Sat, 19 Feb 2011 23:32:00 +0000 (17:32 -0600)]
Ruby: clean MOESI CMP directory protocol
The L1 cache controller file contains references to foo and goo queues, which
are not in use at all. These have been removed.

13 years agom5: merge inorder/release-notes/make_release changes
Korey Sewell [Fri, 18 Feb 2011 19:35:15 +0000 (14:35 -0500)]
m5: merge inorder/release-notes/make_release changes

13 years agoinorder: regr-update: reduce dynamic mem. use to speedup sims
Korey Sewell [Fri, 18 Feb 2011 19:31:37 +0000 (14:31 -0500)]
inorder: regr-update: reduce dynamic mem. use to speedup sims
previous changesets took a closer look at memory mgmt in the inorder model and sought to avoid
dynamic memory mgmt (for access to pipeline resources) as much as possible. For the regressions
that were run, the sims are about 2x speedup from changeset 7726 which is the last change
since the recent commits in Feb. (note: these regressions now are 4-issue CPUs instead of just 1-issue)

13 years agoinorder: add names and slot #s to res. dprints
Korey Sewell [Fri, 18 Feb 2011 19:31:31 +0000 (14:31 -0500)]
inorder: add names and slot #s to res. dprints

13 years agoinorder: ignore nops in execution unit
Korey Sewell [Fri, 18 Feb 2011 19:30:38 +0000 (14:30 -0500)]
inorder: ignore nops in execution unit

13 years agoinorder: update graduation unit
Korey Sewell [Fri, 18 Feb 2011 19:30:05 +0000 (14:30 -0500)]
inorder: update graduation unit
make sure instructions are able to commit before writing back to the RF
do not commit more than 1 non-speculative instruction per cycle

13 years agoinorder: recognize isSerializeAfter flag
Korey Sewell [Fri, 18 Feb 2011 19:29:48 +0000 (14:29 -0500)]
inorder: recognize isSerializeAfter flag
keep track of when an instruction needs the execution
behind it to be serialized. Without this, in SE Mode
instructions can execute behind a system call exit().

13 years agoinorder: update default thread size(=1)
Korey Sewell [Fri, 18 Feb 2011 19:29:44 +0000 (14:29 -0500)]
inorder: update default thread size(=1)
a lot of structures get allocated based off that MaxThreads parameter so this is an
effort to not abuse it

13 years agoinorder: don't overuse getLatency()
Korey Sewell [Fri, 18 Feb 2011 19:29:40 +0000 (14:29 -0500)]
inorder: don't overuse getLatency()
resources don't need to call getLatency because the latency is already a member
in the class. If there is some type of special case where different instructions
impose a different latency inside a resource then we can revisit this and
add getLatency() back in

13 years agoinorder: update max. resource bandwidths
Korey Sewell [Fri, 18 Feb 2011 19:29:31 +0000 (14:29 -0500)]
inorder: update max. resource bandwidths
each resource has a certain # of requests it can take per cycle. update the #s here
to be more realistic based off of the pipeline width and if the resource needs to
be accessed on multiple cycles

13 years agoinorder: cleanup in destructors
Korey Sewell [Fri, 18 Feb 2011 19:29:26 +0000 (14:29 -0500)]
inorder: cleanup in destructors
cleanup hanging pointers and other cruft in the destructors

13 years agoinorder: fix cache/fetch unit memory leaks
Korey Sewell [Fri, 18 Feb 2011 19:29:17 +0000 (14:29 -0500)]
inorder: fix cache/fetch unit memory leaks
---
need to delete the cache request's data on clearRequest() now that we are recycling
requests
---
fetch unit needs to deallocate the fetch buffer blocks when they are replaced or
squashed.

13 years agoinorder: remove events for zero-cycle resources
Korey Sewell [Fri, 18 Feb 2011 19:29:02 +0000 (14:29 -0500)]
inorder: remove events for zero-cycle resources
if a resource has a zero cycle latency (e.g. RegFile write), then dont allocate an event
for it to use

13 years agoinorder: update pipeline interface for handling finished resource reqs
Korey Sewell [Fri, 18 Feb 2011 19:28:37 +0000 (14:28 -0500)]
inorder: update pipeline interface for handling finished resource reqs
formerly, to free up bandwidth in a resource, we could just change the pointer in that resource
but at the same time the pipeline stages had visibility to see what happened to a resource request.
Now that we are recycling these requests (to avoid too much dynamic allocation), we can't throw
away the request too early or the pipeline stage gets bad information. Instead, mark when a request
is done with the resource all together and then let the pipeline stage call back to the resource
that it's time to free up the bandwidth for more instructions
*** inteface notes ***
- When an instruction completes and is done in a resource for that cycle, call done()
- When an instruction fails and is done with a resource for that cycle, call done(false)
- When an instruction completes, but isnt finished with a resource, call completed()
- When an instruction fails, but isnt finished with a resource, call completed(false)
* * *
inorder: tlbmiss wakeup bug fix

13 years agoinorder: remove request map, use request vector
Korey Sewell [Fri, 18 Feb 2011 19:28:30 +0000 (14:28 -0500)]
inorder: remove request map, use request vector
take away all instances of reqMap in the code and make all references use the built-in
request vectors inside of each resource. The request map was dynamically allocating
a request per instruction. The request vector just allocates N number of requests
during instantiation and then the surrounding code is fixed up to reuse those N requests
***
setRequest() and clearRequest() are the new accessors needed to define a new
request in a resource

13 years agoinorder: add valid bit for resource requests
Korey Sewell [Fri, 18 Feb 2011 19:28:22 +0000 (14:28 -0500)]
inorder: add valid bit for resource requests
this will allow us to reuse resource requests within a resource instead
of always dynamically allocating

13 years agoinorder: remove reqRemoveList
Korey Sewell [Fri, 18 Feb 2011 19:28:10 +0000 (14:28 -0500)]
inorder: remove reqRemoveList
we are going to be getting away from creating new resource requests for every
instruction so no more need to keep track of a reqRemoveList and clean it up
every tick

13 years agoinorder: initialize res. req. vectors based on resource bandwidth
Korey Sewell [Fri, 18 Feb 2011 19:27:52 +0000 (14:27 -0500)]
inorder: initialize res. req. vectors based on resource bandwidth
first change in an optimization that will stop InOrder from allocating new memory for every instruction's
request to a resource. This gets expensive since every instruction needs to access ~10 requests before
graduation. Instead, the plan is to allocate just enough resource request objects to satisfy each resource's
bandwidth (e.g. the execution unit would need to allocate 3 resource request objects for a 1-issue pipeline
since on any given cycle it could have 2 read requests and 1 write request) and then let the instructions
contend and reuse those allocated requests. The end result is a smaller memory footprint for the InOrder model
and increased simulation performance

13 years agomerge alpha system files into tree
Nathan Binkert [Wed, 16 Feb 2011 15:57:04 +0000 (10:57 -0500)]
merge alpha system files into tree

13 years agoUtil: Get rid of the make_release.py script.
Gabe Black [Wed, 16 Feb 2011 07:22:32 +0000 (23:22 -0800)]
Util: Get rid of the make_release.py script.

Since we're not doing releases any more we don't really need this script. If
we need it in the future, we can resurrect it from the history.

13 years agoCleanup system directory to fit into modern M5 tree
Nathan Binkert [Wed, 16 Feb 2011 06:34:02 +0000 (00:34 -0600)]
Cleanup system directory to fit into modern M5 tree

13 years agocopyright: update copyright on alpha system files
Nathan Binkert [Wed, 16 Feb 2011 06:34:01 +0000 (00:34 -0600)]
copyright: update copyright on alpha system files

13 years agoX86: Get rid of "inline" on the MicroPanic constructor in decoder.cc.
Gabe Black [Tue, 15 Feb 2011 23:58:16 +0000 (15:58 -0800)]
X86: Get rid of "inline" on the MicroPanic constructor in decoder.cc.

This was making certain versions of gcc omit the function from the object file
which would break the build.

13 years agoInfo: Clean up some info files.
Gabe Black [Tue, 15 Feb 2011 05:36:37 +0000 (21:36 -0800)]
Info: Clean up some info files.

Get rid of RELEASE_NOTES since we no longer do releases, update some of the
information in README, and update the date in LICENSE.

13 years agoRuby: Improve Change PerfectSwitch's wakeup function
Nilay Vaish [Mon, 14 Feb 2011 22:14:54 +0000 (16:14 -0600)]
Ruby: Improve Change PerfectSwitch's wakeup function
Currently the wakeup function for the PerfectSwitch contains three loops -

loop on number of virtual networks
  loop on number of incoming links
    loop till all messages for this (link, network) have been routed

With an 8 processor mesh network and Hammer protocol, about 11-12% of the
was observed to have been spent in this function, which is the highest
amongst all the functions. It was found that the innermost loop is executed
about 45 times per invocation of the wakeup function, when each invocation
of the wakeup function processes just about one message.

The patch tries to do away with the redundant executions of the innermost
loop. Counters have been added for each virtual network that record the
number of messages that need to be routed for that virtual network. The
inner loops are only executed when the number of messages for that particular
virtual network > 0. This does away with almost 80% of the executions of the
innermost loop. The function now consumes about 5-6% of the total execution
time.

13 years agoX86: Update stats for the improved branch detection/prediction.
Gabe Black [Mon, 14 Feb 2011 01:46:04 +0000 (17:46 -0800)]
X86: Update stats for the improved branch detection/prediction.

13 years agoX86: Detect branches taking into account instruction size.
Gabe Black [Mon, 14 Feb 2011 01:45:47 +0000 (17:45 -0800)]
X86: Detect branches taking into account instruction size.

The size of the current instruction determines what the npc should be if
there's no branching.

13 years agoX86: Update stats now that the dest reg isn't read unnecessarily to set flags.
Gabe Black [Mon, 14 Feb 2011 01:45:30 +0000 (17:45 -0800)]
X86: Update stats now that the dest reg isn't read unnecessarily to set flags.

13 years agoX86: Put the result used for flags in an intermediate variable.
Gabe Black [Mon, 14 Feb 2011 01:45:12 +0000 (17:45 -0800)]
X86: Put the result used for flags in an intermediate variable.

Using the destination register directly causes the ISA parser to treat it as a
source even if none of the original bits are used.

13 years agoX86: Update stats for the reduced register reads.
Gabe Black [Mon, 14 Feb 2011 01:44:32 +0000 (17:44 -0800)]
X86: Update stats for the reduced register reads.

13 years agoX86: Don't read in dest regs if all bits are replaced.
Gabe Black [Mon, 14 Feb 2011 01:44:24 +0000 (17:44 -0800)]
X86: Don't read in dest regs if all bits are replaced.

In x86, 32 and 64 bit writes to registers in which registers appear to be 32 or
64 bits wide overwrite all bits of the destination register. This change
removes false dependencies in these cases where the previous value of a
register doesn't need to be read to write a new value. New versions of most
microops are created that have a "Big" suffix which simply overwrite their
destination, and the right version to use is selected during microop
allocation based on the selected data size.

This does not change the performance of the O3 CPU model significantly, I
assume because there are other false dependencies from the condition code bits
in the flags register.

13 years agoX86: On a bad microopc, return a microop that returns a fault that panics.
Gabe Black [Mon, 14 Feb 2011 01:42:56 +0000 (17:42 -0800)]
X86: On a bad microopc, return a microop that returns a fault that panics.

This way a bad micropc will have to get all the way to commit before killing
the simulation. This accounts for misspeculated branches.

13 years agoX86: Define fault objects to carry debug messages.
Gabe Black [Mon, 14 Feb 2011 01:42:05 +0000 (17:42 -0800)]
X86: Define fault objects to carry debug messages.

These faults can panic/warn/warn_once, etc., instead of instructions doing
that themselves directly. That way, instructions can be speculatively
executed, and only if they're actually going to commit will their fault be
invoked and the panic, etc., happen.

13 years agoX86: Only reset npc to reflect instruction length once.
Gabe Black [Mon, 14 Feb 2011 01:41:10 +0000 (17:41 -0800)]
X86: Only reset npc to reflect instruction length once.

When redirecting fetch to handle branches, the npc of the current pc state
needs to be left alone. This change makes the pc state record whether or not
the npc already reflects a real value by making it keep track of the current
instruction size, or if no size has been set.

13 years agoO3: Fetch from the microcode ROM when needed.
Gabe Black [Mon, 14 Feb 2011 01:40:07 +0000 (17:40 -0800)]
O3: Fetch from the microcode ROM when needed.

13 years agoO3: Fix GCC 4.2.4 complaint
Ali Saidi [Sun, 13 Feb 2011 21:51:15 +0000 (16:51 -0500)]
O3: Fix GCC 4.2.4 complaint

13 years agoRuby: Reorder Cache Lookup in Protocol Files
Nilay Vaish [Sat, 12 Feb 2011 17:41:20 +0000 (11:41 -0600)]
Ruby: Reorder Cache Lookup in Protocol Files
The patch changes the order in which L1 dcache and icache are looked up when
a request comes in. Earlier, if a request came in for instruction fetch, the
dcache was looked up before the icache, to correctly handle self-modifying
code. But, in the common case, dcache is going to report a miss and the
subsequent icache lookup is going to report a hit. Given the invariant -
caches under the same controller keep track of disjoint sets of cache blocks,
we can move the icache lookup before the dcache lookup. In case of a hit in
the icache, using our invariant, we know that the dcache would have reported
a miss. In  case of a miss in the icache, we know that icache would have
missed even if the dcache was looked up before looking up the icache.
Effectively, we are doing the same thing as before, though in the common case,
we expect reduction in the number of lookups. This was empirically confirmed
for MOESI hammer. The ratio lookups to access requests is now about 1.1 to 1.

13 years agoinorder:regress: host-inst-rate improved ~58%
Korey Sewell [Sat, 12 Feb 2011 15:14:52 +0000 (10:14 -0500)]
inorder:regress: host-inst-rate improved ~58%
there are still only a few inorder benchmark but for the lengthier benchmarks (twolf and vortext)
the latest changes to how instruction scheduling (how instructions figure out what they want to
do on each pipeline stage in the inorder model) were able to improve performance by a nice
amount... The latest results for the inorder model process about 100k insts/second
(note: 58% is over the last time run on 64-bit pool machines at UM)

13 years agoinorder: clean up the old way of inst. scheduling
Korey Sewell [Sat, 12 Feb 2011 15:14:48 +0000 (10:14 -0500)]
inorder: clean up the old way of inst. scheduling
remove remnants of old way of instruction scheduling which dynamically allocated
a new resource schedule for every instruction

13 years agoinorder: utilize cached skeds in pipeline
Korey Sewell [Sat, 12 Feb 2011 15:14:45 +0000 (10:14 -0500)]
inorder: utilize cached skeds in pipeline
allow the pipeline and resources to use the cached instruction schedule and resource
sked iterator

13 years agoinorder: define iterator for resource schedules
Korey Sewell [Sat, 12 Feb 2011 15:14:43 +0000 (10:14 -0500)]
inorder: define iterator for resource schedules
resource skeds are divided into two parts: front end (all insts) and back end (inst. specific)
each of those are implemented as separate lists,  so this iterator wraps around
the traditional list iterator so that an instruction can walk it's schedule but seamlessly
transfer from front end to back end when necessary

13 years agoinorder: stage scheduler for front/back end schedule creation
Korey Sewell [Sat, 12 Feb 2011 15:14:40 +0000 (10:14 -0500)]
inorder: stage scheduler for front/back end schedule creation
add a stage scheduler class to replace InstStage in pipeline_traits.cc
use that class to define a default front-end, resource schedule that all
instructions will follow. This will also replace the back end schedule in
pipeline_traits.cc. The reason for adding this is so that we can cache
instruction schedules in the future instead of calling the same function
over/over again as well as constantly dynamically alllocating memory on
every instruction to try to figure out it's schedule