gem5.git
13 years agoARM: Make sure that software prefetch instructions can't change the state of the TLB
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Make sure that software prefetch instructions can't change the state of the TLB

13 years agoARM: Don't write tracedata on writes, it might have been freed already.
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Don't write tracedata on writes, it might have been freed already.

13 years agoARM: Implement CLREX init/complete acc methods
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Implement CLREX init/complete acc methods

13 years agoARM: Fix Uncachable TLB requests and decoding of xn bit
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Fix Uncachable TLB requests and decoding of xn bit

13 years agoDevices: Allow a device to specify that a request is uncachable.
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
Devices: Allow a device to specify that a request is uncachable.

13 years agoARM: For non-cachable accesses set the UNCACHABLE flag
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: For non-cachable accesses set the UNCACHABLE flag

13 years agoARM: Implement DSB, DMB, ISB
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Implement DSB, DMB, ISB

13 years agoARM: Get SCTLR TE bit from reset SCTLR
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Get SCTLR TE bit from reset SCTLR

13 years agoARM: Implement CLREX
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: Implement CLREX

13 years agoARM: BX instruction can be contitional if last instruction in a IT block
Gene Wu [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: BX instruction can be contitional if last instruction in a IT block

Branches are allowed to be the last instuction in an IT block. Before it was
assumed that they could not. So Branches in thumb2 were Uncond.

13 years agoCPU: Print out flatten-out register index as with IntRegs/FloatRegs traceflag
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
CPU: Print out flatten-out register index as with IntRegs/FloatRegs traceflag

13 years agoCPU: Make Exec trace to print predication result (if false) for memory instructions
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
CPU: Make Exec trace to print predication result (if false) for memory instructions

13 years agoARM: mark msr/mrs instructions as SerializeBefore/After
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:41 +0000 (11:18 -0500)]
ARM: mark msr/mrs instructions as SerializeBefore/After
Since miscellaneous registers bypass wakeup logic, force serialization
to resolve data dependencies through them
* * *
ARM: adding non-speculative/serialize flags for instructions change CPSR

13 years agoO3: Handle loads when the destination is the PC.
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
O3: Handle loads when the destination is the PC.
For loads that PC is the destination, check if the load
was mispredicted again when the value being loaded returns from memory

13 years agoARM/O3: store the result of the predicate evaluation in DynInst or Threadstate.
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM/O3: store the result of the predicate evaluation in DynInst or Threadstate.
THis allows the CPU to handle predicated-false instructions accordingly.
This particular patch makes loads that are predicated-false to be sent
straight to the commit stage directly, not waiting for return of the data
that was never requested since it was predicated-false.

13 years agoARM: adding genMachineCheckFault() stub for ARM that doesn't panic
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: adding genMachineCheckFault() stub for ARM that doesn't panic

13 years agoARM: DFSR status value for sync external data abort is expected to be 0x8 in ARMv7
Gene Wu [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: DFSR status value for sync external data abort is expected to be 0x8 in ARMv7

13 years agoARM: Temporary local variables can't conflict with isa parser operands.
Gene Wu [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Temporary local variables can't conflict with isa parser operands.
PC is an operand, so we can't have a temp called PC

13 years agoARM: Exclusive accesses must be double word aligned
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Exclusive accesses must be double word aligned

13 years agoARM: Add some registers for big loads/stores to support neon.
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Add some registers for big loads/stores to support neon.

13 years agoARM: Decode neon memory instructions.
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Decode neon memory instructions.

13 years agoARM: Clean up the ISA desc portion of the ARM memory instructions.
Gabe Black [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Clean up the ISA desc portion of the ARM memory instructions.

13 years agoLoader: Don't insert symbols into the symbol table that begin wiht '$'.
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
Loader: Don't insert symbols into the symbol table that begin wiht '$'.

13 years agoARM: We don't currently support ThumbEE exceptions, so don't report that we do
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: We don't currently support ThumbEE exceptions, so don't report that we do

13 years agoARM: Change how the AMBA device ID checking is done to make it more generic
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Change how the AMBA device ID checking is done to make it more generic

13 years agoARM: Add configuration for Linux/Full System
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Add configuration for Linux/Full System

13 years agoARM: Add system for ARM/Linux and bootstrapping
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Add system for ARM/Linux and bootstrapping

13 years agoARM: Add I/O devices for booting linux
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Add I/O devices for booting linux

--HG--
rename : src/dev/arm/Versatile.py => src/dev/arm/RealView.py
rename : src/dev/arm/versatile.cc => src/dev/arm/realview.cc
rename : src/dev/arm/versatile.hh => src/dev/arm/realview.hh

13 years agoARM: Implement some more misc registers
Ali Saidi [Mon, 23 Aug 2010 16:18:40 +0000 (11:18 -0500)]
ARM: Implement some more misc registers

13 years agoARM: Fix an un-initialized variable bug
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
ARM: Fix an un-initialized variable bug

13 years agoLoader: Use address mask provided to load*Symbols when loading the symbols from the...
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
Loader: Use address mask provided to load*Symbols when loading the symbols from the symbol table.

13 years agoLoader: Make the load address mask be a parameter of the system rather than a constant.
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
Loader: Make the load address mask be a parameter of the system rather than a constant.

This allows one two different OS requirements for the same ISA to be handled.
Some OSes are compiled for a virtual address and need to be loaded into physical
memory that starts at address 0, while other bare metal tools generate
images that start at address 0.

13 years agoARM: Finish the timing translation when taking a fault.
Min Kyu Jeong [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
ARM: Finish the timing translation when taking a fault.

13 years agoARM: Use a stl queue for the table walker state
Dam Sunwoo [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
ARM: Use a stl queue for the table walker state

13 years agoCPU: Set a default value when readBytes faults.
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
CPU: Set a default value when readBytes faults.

This was being done in read(), but if readBytes was called directly it
wouldn't happen. Also, instead of setting the memory blob being read to -1
which would (I believe) require using memset with -1 as a parameter, this now
uses bzero. It's hoped that it's more specialized behavior will make it
slightly faster.

13 years agoCompiler: Fixes for GCC 4.5.
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
Compiler: Fixes for GCC 4.5.

13 years agoBASE: Fix genrand to generate both 0s and 1s when max equals one.
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
BASE: Fix genrand to generate both 0s and 1s when max equals one.
previously was only generating 0s.

13 years agostats: Fix off-by-one error in distributions.
Ali Saidi [Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)]
stats: Fix off-by-one error in distributions.

bkt size isn't evenly divisible by max-min and it would round down,
it's possible to sample a distribution and have no place to put the sample.
When this case occured the simulator would assert.

13 years agoX86: Get rid of unused file arguments.hh.
Gabe Black [Mon, 23 Aug 2010 01:42:23 +0000 (18:42 -0700)]
X86: Get rid of unused file arguments.hh.

13 years agoSPARC: Fix some style issues in utility.hh.
Gabe Black [Mon, 23 Aug 2010 01:39:39 +0000 (18:39 -0700)]
SPARC: Fix some style issues in utility.hh.

13 years agoX86: Get rid of the unused getAllocator on the python base microop class.
Gabe Black [Mon, 23 Aug 2010 01:24:09 +0000 (18:24 -0700)]
X86: Get rid of the unused getAllocator on the python base microop class.

This function is always overridden, and doesn't actually have the right
signature.

13 years agoregress: Regression tester updates
Brad Beckmann [Sat, 21 Aug 2010 00:44:26 +0000 (17:44 -0700)]
regress: Regression tester updates

Regression tester updates required by the following patches:

brad/moved_python_protocol_files: config: moved python protocol config files
brad/ruby_options_movement: config: reorganized how ruby specifies command-line options
brad/config_token_bcast: ruby: added token broadcast config params to cmd options
brad/topology_name: config: Added the topology description to m5 config.ini
brad/ruby_system_names: config: Improve ruby simobject names
brad/consolidated_protocol_stats: slicc: Consolidated the protocol stats printing
brad/ruby_request_type_ostream_fix: ruby: Added ruby_request_type ostream def to libruby.hh
brad/memtest_dma_extension: memtest: Memtester support for DMA
brad/token_dma_lockdown_fix: MOESI_CMP_token: Fixed dma persistent lockdown bugs
brad/profile_generic_mach_type: ruby: Reincarnated the responding machine profiling
brad/network_msg_consolidated_stats: ruby: Added consolidated network msg stats
brad/bcast_msg_profiling: ruby: Added bcast msg profiling to hammer and token
brad/l2cache_profiling_fix: ruby: Fixed L2 cache miss profiling
brad/llsc_ruby_m5_fix: ruby: fix ruby llsc support to sync sc outcomes
brad/ruby_latency_fixes: ruby: Reduced ruby latencies
brad/hammer_l2_cache_latency: ruby: Updated MOESI_hammer L2 latency behavior
brad/deterministic_resurrection: ruby: Resurrected Ruby's deterministic tests
brad/token_dma_fixes: ruby: MOESI_CMP_token dma fixes
brad/ruby_cmd_options: config: added cmd options to control ruby debug
brad/token_owner_fixes: ruby: fixed token bugs associated with owner token counts
brad/ruby_remove_try_except: ruby: Improved try except blocks in ruby creation
brad/ruby_port_callback_fix: ruby: Fixed RubyPort sendTiming callbacks
brad/interrupt_drain_fix: devices: Fixed periodic interrupts to work with draining
brad/llsc_trace_profile: ruby: Added SC fail indication to trace profiling
brad/no_migrate_atomic: ruby: Disable migratory sharing for token and hammer
brad/ruby_start_time_fix: ruby: Reset ruby stats in RubySystem unserialize
brad/numa_bit_select_fix: ruby: fixed DirectoryMemory's numa_high_bit configuration
brad/hammer_probe_filter: ruby: added probe filter support to hammer
brad/miss_latency_detail_profile: MOESI_hammer: break down miss latency stalled cycles
brad/recycle_latency_fix: ruby: Recycle latency fix for hammer
brad/stall_and_wait: ruby: Stall and wait input messages instead of recycling
brad/rubytest_request_flag_fix: ruby: Fixed minor bug in ruby test for setting the request type
brad/hammer_merge_gets: ruby: Added merge GETS optimization to hammer
brad/regress_updates: regress: Regression tester updates

13 years agoruby: Added merge GETS optimization to hammer
Brad Beckmann [Fri, 20 Aug 2010 18:46:14 +0000 (11:46 -0700)]
ruby: Added merge GETS optimization to hammer

Added an optimization that merges multiple pending GETS requests into a
single request to the owner node.

13 years agoruby: Fixed minor bug in ruby test for setting the request type
Brad Beckmann [Fri, 20 Aug 2010 18:46:14 +0000 (11:46 -0700)]
ruby: Fixed minor bug in ruby test for setting the request type

13 years agoruby: Stall and wait input messages instead of recycling
Brad Beckmann [Fri, 20 Aug 2010 18:46:14 +0000 (11:46 -0700)]
ruby: Stall and wait input messages instead of recycling

This patch allows messages to be stalled in their input buffers and wait
until a corresponding address changes state.  In order to make this work,
all in_ports must be ranked in order of dependence and those in_ports that
may unblock an address, must wake up the stalled messages.  Alot of this
complexity is handled in slicc and the specification files simply
annotate the in_ports.

--HG--
rename : src/mem/slicc/ast/CheckAllocateStatementAST.py => src/mem/slicc/ast/StallAndWaitStatementAST.py
rename : src/mem/slicc/ast/CheckAllocateStatementAST.py => src/mem/slicc/ast/WakeUpDependentsStatementAST.py

13 years agoruby: Recycle latency fix for hammer
Brad Beckmann [Fri, 20 Aug 2010 18:46:14 +0000 (11:46 -0700)]
ruby: Recycle latency fix for hammer

Patch allows each individual message buffer to have different recycle latencies
and allows the overall recycle latency to be specified at the cmd line. The
patch also adds profiling info to make sure no one processor's requests are
recycled too much.

13 years agoMOESI_hammer: break down miss latency stalled cycles
Brad Beckmann [Fri, 20 Aug 2010 18:46:14 +0000 (11:46 -0700)]
MOESI_hammer: break down miss latency stalled cycles

This patch tracks the number of cycles a transaction is delayed at different
points of the request-forward-response loop.

13 years agoruby: added probe filter support to hammer
Brad Beckmann [Fri, 20 Aug 2010 18:46:14 +0000 (11:46 -0700)]
ruby: added probe filter support to hammer

13 years agoruby: fixed DirectoryMemory's numa_high_bit configuration
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: fixed DirectoryMemory's numa_high_bit configuration

This fix includes the off-by-one bit selection bug for numa mapping.

13 years agoruby: Reset ruby stats in RubySystem unserialize
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Reset ruby stats in RubySystem unserialize

The main purpose for clearing stats in the unserialize process is so
that the profiler can correctly set its start time to the unserialized
value of curTick.

13 years agoruby: Disable migratory sharing for token and hammer
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Disable migratory sharing for token and hammer

This patch allows one to disable migratory sharing for those cache blocks that
are accessed by atomic requests.  While the implementations are different
between the token and hammer protocols, the motivation is the same.  For
Alpha, LLSC semantics expect that normal loads do not unlock cache blocks that
have been locked by LL accesses.  Therefore, locked blocks should not transfer
write permissions when responding to these load requests.  Instead, only they
only transfer read permissions so that the subsequent SC access can possibly
succeed.

13 years agoruby: Added SC fail indication to trace profiling
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Added SC fail indication to trace profiling

13 years agodevices: Fixed periodic interrupts to work with draining
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
devices: Fixed periodic interrupts to work with draining

Added drain functions to the RTC and 8254 timer so that periodic interrupts
stop when the system is draining.  This patch is needed to checkpoint in
timing mode.  Otherwise under certain situations, the event queue will never
be completely empty.

13 years agoruby: Fixed RubyPort sendTiming callbacks
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Fixed RubyPort sendTiming callbacks

Fixed RubyPort schedSendTiming calls to match ruby frequency.

13 years agoruby: Improved try except blocks in ruby creation
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Improved try except blocks in ruby creation

Replaced the sys.exit in the try-except blocks with raise so that the python
call stack will be printed

13 years agoruby: fixed token bugs associated with owner token counts
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: fixed token bugs associated with owner token counts

This patch fixes several bugs related to previous inconsistent assumptions on
how many tokens the Owner had.  Mike Marty should have fixes these bugs years
ago.  :)

13 years agoconfig: added cmd options to control ruby debug
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
config: added cmd options to control ruby debug

13 years agoruby: MOESI_CMP_token dma fixes
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: MOESI_CMP_token dma fixes

This patch fixes various protocol bugs regarding races between dma requests
and persistent requests.

13 years agoruby: Resurrected Ruby's deterministic tests
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Resurrected Ruby's deterministic tests

Added the request series and invalidate deterministic tests as new cpu models
and removed the no longer needed ruby tests

--HG--
rename : configs/example/rubytest.py => configs/example/determ_test.py
rename : src/mem/ruby/tester/DetermGETXGenerator.cc => src/cpu/directedtest/DirectedGenerator.cc
rename : src/mem/ruby/tester/DetermGETXGenerator.hh => src/cpu/directedtest/DirectedGenerator.hh
rename : src/mem/ruby/tester/DetermGETXGenerator.cc => src/cpu/directedtest/InvalidateGenerator.cc
rename : src/mem/ruby/tester/DetermGETXGenerator.hh => src/cpu/directedtest/InvalidateGenerator.hh
rename : src/cpu/rubytest/RubyTester.cc => src/cpu/directedtest/RubyDirectedTester.cc
rename : src/cpu/rubytest/RubyTester.hh => src/cpu/directedtest/RubyDirectedTester.hh
rename : src/mem/ruby/tester/DetermGETXGenerator.cc => src/cpu/directedtest/SeriesRequestGenerator.cc
rename : src/mem/ruby/tester/DetermGETXGenerator.hh => src/cpu/directedtest/SeriesRequestGenerator.hh

13 years agoruby: Updated MOESI_hammer L2 latency behavior
Brad Beckmann [Fri, 20 Aug 2010 18:46:13 +0000 (11:46 -0700)]
ruby: Updated MOESI_hammer L2 latency behavior

Previously, the MOESI_hammer protocol calculated the same latency for L1 and
L2 hits.  This was because the protocol was written using the old ruby
assumption that L1 hits used the sequencer fast path.  Since ruby no longer
uses the fast-path, the protocol delays L2 hits by placing them on the
trigger queue.

13 years agoruby: Reduced ruby latencies
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: Reduced ruby latencies

The previous slower ruby latencies created a mismatch between the faster M5
cpu models and the much slower ruby memory system.  Specifically smp
interrupts were much slower and infrequent, as well as cpus moving in and out
of spin locks.  The result was many cpus were idle for large periods of time.

These changes fix the latency mismatch.

13 years agoruby: fix ruby llsc support to sync sc outcomes
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: fix ruby llsc support to sync sc outcomes

Added support so that ruby can determine the outcome of store conditional
operations and reflect that outcome to M5 physical memory and cpus.

13 years agoruby: Fixed L2 cache miss profiling
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: Fixed L2 cache miss profiling

Fixed L2 cache miss profiling for the MOESI_CMP_token protocol

13 years agoruby: Added bcast msg profiling to hammer and token
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: Added bcast msg profiling to hammer and token

13 years agoruby: Added consolidated network msg stats
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: Added consolidated network msg stats

13 years agoruby: Reincarnated the responding machine profiling
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: Reincarnated the responding machine profiling

This patch adds back to ruby the capability to understand the response time
for messages that hit in different levels of the cache heirarchy.
Specifically add support for the MI_example, MOESI_hammer, and MOESI_CMP_token
protocols.

13 years agoMOESI_CMP_token: Fixed dma persistent lockdown bugs
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
MOESI_CMP_token: Fixed dma persistent lockdown bugs

13 years agomemtest: Memtester support for DMA
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
memtest: Memtester support for DMA

This patch adds DMA testing to the Memtester and is inherits many changes from
Polina's old tester_dma_extension patch.  Since Ruby does not work in atomic
mode, the atomic mode options are removed.

13 years agoruby: Added ruby_request_type ostream def to libruby.hh
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
ruby: Added ruby_request_type ostream def to libruby.hh

13 years agoslicc: Consolidated the protocol stats printing
Brad Beckmann [Fri, 20 Aug 2010 18:46:12 +0000 (11:46 -0700)]
slicc: Consolidated the protocol stats printing

Created a separate ProfileDumper that consolidates the generated stats for
each controller of a certain type.

13 years agoconfig: Improve ruby simobject names
Brad Beckmann [Fri, 20 Aug 2010 18:46:11 +0000 (11:46 -0700)]
config: Improve ruby simobject names

This patch attaches ruby objects to the system before the topology is
created so that their simobject names read their meaningful variable
names instead of their topology name.

13 years agoconfig: Added the topology description to m5 config.ini
Brad Beckmann [Fri, 20 Aug 2010 18:46:11 +0000 (11:46 -0700)]
config: Added the topology description to m5 config.ini

13 years agoruby: added token broadcast config params to cmd options
Brad Beckmann [Fri, 20 Aug 2010 18:46:11 +0000 (11:46 -0700)]
ruby: added token broadcast config params to cmd options

13 years agoconfig: reorganized how ruby specifies command-line options
Brad Beckmann [Fri, 20 Aug 2010 18:44:09 +0000 (11:44 -0700)]
config: reorganized how ruby specifies command-line options

13 years agoruby: Fixed printout when Sequencer detects a deadlock
Brad Beckmann [Fri, 20 Aug 2010 18:41:35 +0000 (11:41 -0700)]
ruby: Fixed printout when Sequencer detects a deadlock

13 years agoMESI_CMP_directory: bug fix for old PUTX requests
Brad Beckmann [Fri, 20 Aug 2010 18:41:35 +0000 (11:41 -0700)]
MESI_CMP_directory: bug fix for old PUTX requests

13 years agoconfig: moved python protocol config files
Brad Beckmann [Fri, 20 Aug 2010 18:41:35 +0000 (11:41 -0700)]
config: moved python protocol config files

Moved the python protocol config files back to their original location to avoid
addToPath calls.

--HG--
rename : configs/ruby/protocols/MESI_CMP_directory.py => configs/ruby/MESI_CMP_directory.py
rename : configs/ruby/protocols/MI_example.py => configs/ruby/MI_example.py
rename : configs/ruby/protocols/MOESI_CMP_directory.py => configs/ruby/MOESI_CMP_directory.py
rename : configs/ruby/protocols/MOESI_CMP_token.py => configs/ruby/MOESI_CMP_token.py
rename : configs/ruby/protocols/MOESI_hammer.py => configs/ruby/MOESI_hammer.py

13 years agomisc: add some AMD copyright notices
Steve Reinhardt [Tue, 17 Aug 2010 12:49:05 +0000 (05:49 -0700)]
misc: add some AMD copyright notices
Meant to add these with the previous batch of csets.

13 years agox86: minor checkpointing bug fixes
Steve Reinhardt [Tue, 17 Aug 2010 12:20:39 +0000 (05:20 -0700)]
x86: minor checkpointing bug fixes

13 years agosim: revamp unserialization procedure
Steve Reinhardt [Tue, 17 Aug 2010 12:17:06 +0000 (05:17 -0700)]
sim: revamp unserialization procedure

Replace direct call to unserialize() on each SimObject with a pair of
calls for better control over initialization in both ckpt and non-ckpt
cases.

If restoring from a checkpoint, loadState(ckpt) is called on each
SimObject.  The default implementation simply calls unserialize() if
there is a corresponding checkpoint section, so we get backward
compatibility for existing objects.  However, objects can override
loadState() to get other behaviors, e.g., doing other programmed
initializations after unserialize(), or complaining if no checkpoint
section is found.  (Note that the default warning for a missing
checkpoint section is now gone.)

If not restoring from a checkpoint, we call the new initState() method
on each SimObject instead.  This provides a hook for state
initializations that are only required when *not* restoring from a
checkpoint.

Given this new framework, do some cleanup of LiveProcess subclasses
and X86System, which were (in some cases) emulating initState()
behavior in startup via a local flag or (in other cases) erroneously
doing initializations in startup() that clobbered state loaded earlier
by unserialize().

13 years agosim: fold checkpoint restore code into instantiate()
Steve Reinhardt [Tue, 17 Aug 2010 12:17:06 +0000 (05:17 -0700)]
sim: fold checkpoint restore code into instantiate()
The separate restoreCheckpoint() call is gone; just pass
the checkpoint dir as an optional arg to instantiate().
This change is a precursor to some more extensive
reworking of the startup code.

13 years agoconfigs: clean up checkpoint code in Simulation.py
Steve Reinhardt [Tue, 17 Aug 2010 12:17:06 +0000 (05:17 -0700)]
configs: clean up checkpoint code in Simulation.py
Small change to clean up some redundant code.
Should not have any functional impact.

13 years agotest: Update stats for python object iteration.
Steve Reinhardt [Tue, 17 Aug 2010 12:14:03 +0000 (05:14 -0700)]
test: Update stats for python object iteration.
Small changes in tests with data races due to new object creation
order.

13 years agosim: clean up child handling
Steve Reinhardt [Tue, 17 Aug 2010 12:11:00 +0000 (05:11 -0700)]
sim: clean up child handling
The old code for handling SimObject children was kind of messy,
with children stored both in _values and _children, and
inconsistent and potentially buggy handling of SimObject
vectors.  Now children are always stored in _children, and
SimObject vectors are consistently handled using the
SimObjectVector class.

Also, by deferring the parenting of SimObject-valued parameters
until the end (instead of doing it at assignment), we eliminate
the hole where one could assign a vector of SimObjects to a
parameter then append to that vector, with the appended objects
never getting parented properly.

This patch induces small stats changes in tests with data races
due to changes in the object creation & initialization order.
The new code does object vectors in order and so should be more
stable.

13 years agosim: move iterating over SimObjects into Python.
Steve Reinhardt [Tue, 17 Aug 2010 12:08:50 +0000 (05:08 -0700)]
sim: move iterating over SimObjects into Python.

13 years agosim: fail on implicit creation of orphans via ports
Steve Reinhardt [Tue, 17 Aug 2010 12:06:22 +0000 (05:06 -0700)]
sim: fail on implicit creation of orphans via ports
Orphan SimObjects (not in the config hierarchy) could get
created implicitly if they have a port connection to a SimObject
that is in the hierarchy.  This means that there are objects on
the C++ SimObject list (created via the C++ SimObject
constructor call) that are unknown to Python and will get
skipped if we walk the hierarchy from the Python side (as we are
about to do).  This patch detects this situation and prints an
error message.

Also fix the rubytester config script which happened to rely on
this behavior.

13 years agosim: make Python Root object a singleton
Steve Reinhardt [Tue, 17 Aug 2010 12:06:22 +0000 (05:06 -0700)]
sim: make Python Root object a singleton
Enforce that the Python Root SimObject is instantiated only
once.  The C++ Root object already panics if more than one is
created.  This change avoids the need to track what the root
object is, since it's available from Root.getInstance() (if it
exists).  It's now redundant to have the user pass the root
object to functions like instantiate(), checkpoint(), and
restoreCheckpoint(), so that arg is gone.  Users who use
configs/common/Simulate.py should not notice.

13 years agotests: update reference config.ini files for previous cset
Steve Reinhardt [Tue, 17 Aug 2010 12:06:22 +0000 (05:06 -0700)]
tests: update reference config.ini files for previous cset
Rename 'responder_set' to 'use_default_range'.

13 years agobus: clean up default responder code.
Steve Reinhardt [Tue, 17 Aug 2010 12:06:21 +0000 (05:06 -0700)]
bus: clean up default responder code.
Clean up some minor things left over from the default responder
change in rev 9af6fb59752f.  Mostly renaming the 'responder_set'
param to 'use_default_range' to actually reflect what it does...
old name wasn't that descriptive in the first place, but now
it really doesn't make sense at all.

Also got rid of the bogus obsolete assignment to 'bus.responder'
which used to be a parameter but now is interpreted as an
implicit child assignment, and which was giving me problems in
the config restructuring to come.  (A good argument for not
allowing implicit child assignments, IMO, but that's water under
the bridge, I'm afraid.)

Also moved the Bus constructor to the .cc file since that's
where it should have been all along.

13 years agoInorder: Fix compilation of m5.fast.
Gabe Black [Sat, 14 Aug 2010 08:00:45 +0000 (01:00 -0700)]
Inorder: Fix compilation of m5.fast.

printMemData is only used in DPRINTFs. If those are removed by compiling
m5.fast, that function is unused, gcc generates a warning, that gets turned
into an error, and the build fails. This change surrounds the function
definition with #if TRACING_ON so it only gets compiled in if the DPRINTFs do
to.

13 years agoMerge with head.
Gabe Black [Fri, 13 Aug 2010 13:16:30 +0000 (06:16 -0700)]
Merge with head.

13 years agoCPU: Add readBytes and writeBytes functions to the exec contexts.
Gabe Black [Fri, 13 Aug 2010 13:16:02 +0000 (06:16 -0700)]
CPU: Add readBytes and writeBytes functions to the exec contexts.

13 years agoInOrder: Clean up some DPRINTFs that print data sent to/from the cache.
Gabe Black [Fri, 13 Aug 2010 13:16:00 +0000 (06:16 -0700)]
InOrder: Clean up some DPRINTFs that print data sent to/from the cache.

13 years agoCPU: Tidy up endianness handling for mmapped "IPR"s.
Gabe Black [Fri, 13 Aug 2010 13:10:45 +0000 (06:10 -0700)]
CPU: Tidy up endianness handling for mmapped "IPR"s.

13 years agoutil/m5/m5.c: ensure readfile() buffer pages are in page table
Joel Hestness [Fri, 13 Aug 2010 00:16:04 +0000 (17:16 -0700)]
util/m5/m5.c: ensure readfile() buffer pages are in page table
(and marked dirty, in case that matters) by touching them beforehand

13 years agoTimingSimpleCPU: fix NO_ACCESS memory op handling
Joel Hestness [Fri, 13 Aug 2010 00:16:02 +0000 (17:16 -0700)]
TimingSimpleCPU: fix NO_ACCESS memory op handling

When a request is NO_ACCESS (x86 CDA microinstruction), the memory op
doesn't go to the cache, so TimingSimpleCPU::completeDataAccess needs
to handle the case where the current status of the CPU is Running
and not DcacheWaitResponse or DTBWaitResponse

13 years agoNone, not none
Nathan Binkert [Mon, 9 Aug 2010 05:57:16 +0000 (22:57 -0700)]
None, not none

13 years ago.hgignore: added src/doxygen
Steve Reinhardt [Wed, 28 Jul 2010 03:00:38 +0000 (20:00 -0700)]
.hgignore: added src/doxygen

13 years agoARM: Add regression tests
Ali Saidi [Tue, 27 Jul 2010 05:03:44 +0000 (01:03 -0400)]
ARM: Add regression tests

13 years agoPower: The condition register should be set or cleared upon a system call
Timothy M. Jones [Thu, 22 Jul 2010 17:54:37 +0000 (18:54 +0100)]
Power: The condition register should be set or cleared upon a system call
return to indicate success or failure.