gem5.git
15 years agoAutomated merge with ssh://hg@m5sim.org/m5
Derek Hower [Thu, 13 Aug 2009 15:37:37 +0000 (10:37 -0500)]
Automated merge with ssh://hg@m5sim.org/m5

15 years agoruby: config bugfix
Derek Hower [Thu, 13 Aug 2009 15:37:09 +0000 (10:37 -0500)]
ruby: config bugfix

15 years agoruby/network data_msg_size bug fix with updated stats
Tushar Krishna [Tue, 11 Aug 2009 22:19:04 +0000 (15:19 -0700)]
ruby/network data_msg_size bug fix with updated stats

15 years agomerged Tushar's bug fix with public repository changes
Brad Beckmann [Tue, 11 Aug 2009 19:22:41 +0000 (12:22 -0700)]
merged Tushar's bug fix with public repository changes

15 years agoAutomated merge with ssh://hg@m5sim.org/m5
Derek Hower [Sun, 9 Aug 2009 18:59:14 +0000 (13:59 -0500)]
Automated merge with ssh://hg@m5sim.org/m5

15 years agoprotocol: added recycle actions to MOESI DMA events
Derek Hower [Sun, 9 Aug 2009 18:58:40 +0000 (13:58 -0500)]
protocol: added recycle actions to MOESI DMA events

15 years agoX86: Update the stats on the ruby x86 regressions for the new CMOVcc implementation.
Gabe Black [Sun, 9 Aug 2009 11:01:56 +0000 (04:01 -0700)]
X86: Update the stats on the ruby x86 regressions for the new CMOVcc implementation.

15 years agoX86: Implement the CMPXCHG8B/CMPXCHG16B instruction.
Gabe Black [Sun, 9 Aug 2009 08:01:41 +0000 (01:01 -0700)]
X86: Implement the CMPXCHG8B/CMPXCHG16B instruction.

15 years agoX86: Don't clobber the original dividend when doing signed divide.
Gabe Black [Sun, 9 Aug 2009 08:01:18 +0000 (01:01 -0700)]
X86: Don't clobber the original dividend when doing signed divide.

15 years agoX86: Decode byte sized singed divide as byte sized.
Gabe Black [Sun, 9 Aug 2009 08:00:47 +0000 (01:00 -0700)]
X86: Decode byte sized singed divide as byte sized.

15 years agoX86: Update the stats for the slightly lengthened cmov.
Gabe Black [Sun, 9 Aug 2009 00:23:25 +0000 (17:23 -0700)]
X86: Update the stats for the slightly lengthened cmov.

15 years agoX86: Make not taken conditional moves leave the destination alone. Adjust CMOVcc.
Gabe Black [Sun, 9 Aug 2009 00:23:19 +0000 (17:23 -0700)]
X86: Make not taken conditional moves leave the destination alone. Adjust CMOVcc.
The manuals from both AMD and Intel say that when writing to a 32 bit
destination in 64 bit mode, the upper 32 bits of the register are filled with
zeros. They also both say that the CMOV instructions leave their destination
alone when their condition fails. Unfortunately, it seems that CMOV will zero
extend its destination register whether or not it was supposed to actually do
a move on both platforms. This seems to be the only case where this happens,
but it would be hard to say for sure.

15 years agobug fix for data_msg_size in network/Network.cc
Tushar Krishna [Fri, 7 Aug 2009 20:59:40 +0000 (13:59 -0700)]
bug fix for data_msg_size in network/Network.cc

15 years agoX86: (Re)Implemented SHRD.
Gabe Black [Fri, 7 Aug 2009 17:13:33 +0000 (10:13 -0700)]
X86: (Re)Implemented SHRD.

15 years agoX86: Implement SHLD.
Gabe Black [Fri, 7 Aug 2009 17:13:24 +0000 (10:13 -0700)]
X86: Implement SHLD.

15 years agoX86: Implement shift right/left double microops.
Gabe Black [Fri, 7 Aug 2009 17:13:20 +0000 (10:13 -0700)]
X86: Implement shift right/left double microops.
This is my best guess as far as what these should do. Other existing microops
use implicit registers, mul1s and mul1u for instance, so this should be ok.
The microop that loads the implicit DoubleBits register would fall into one
of the microop slots for moving to/from special registers.

15 years agoX86: Make the qaud width bswap instruction handle the fact that 32 bit operations...
Gabe Black [Fri, 7 Aug 2009 17:12:58 +0000 (10:12 -0700)]
X86: Make the qaud width bswap instruction handle the fact that 32 bit operations zero extend.

15 years agoX86: Use the right field when using legacy prefixes to distinguish instructions.
Gabe Black [Fri, 7 Aug 2009 17:12:52 +0000 (10:12 -0700)]
X86: Use the right field when using legacy prefixes to distinguish instructions.

15 years agoX86: Don't truncate the immediate parameter for the ENTER instruction.
Gabe Black [Fri, 7 Aug 2009 17:12:29 +0000 (10:12 -0700)]
X86: Don't truncate the immediate parameter for the ENTER instruction.

15 years agoX86: Adjust the various sizes used for the enter and leave instructions.
Gabe Black [Fri, 7 Aug 2009 04:44:42 +0000 (21:44 -0700)]
X86: Adjust the various sizes used for the enter and leave instructions.

15 years agoX86: Make scas compare its operands in the right order.
Gabe Black [Fri, 7 Aug 2009 04:44:41 +0000 (21:44 -0700)]
X86: Make scas compare its operands in the right order.

15 years agoX86: Fix a copy/paste error for cmovnp.
Gabe Black [Fri, 7 Aug 2009 04:44:40 +0000 (21:44 -0700)]
X86: Fix a copy/paste error for cmovnp.

15 years agofixed MOESI_CMP_directory bug
Derek Hower [Thu, 6 Aug 2009 08:41:28 +0000 (03:41 -0500)]
fixed MOESI_CMP_directory bug

15 years agoprotocol: fixed MOESI_CMP_directory bug
Derek Hower [Thu, 6 Aug 2009 06:15:55 +0000 (01:15 -0500)]
protocol: fixed MOESI_CMP_directory bug

15 years agoruby: better configuration assert message
Derek Hower [Thu, 6 Aug 2009 06:15:23 +0000 (01:15 -0500)]
ruby: better configuration assert message

15 years agomerge
Derek Hower [Wed, 5 Aug 2009 19:23:32 +0000 (14:23 -0500)]
merge

15 years agoregression: updated stats
Derek Hower [Wed, 5 Aug 2009 19:20:53 +0000 (14:20 -0500)]
regression: updated stats

15 years agoruby: configuration supports multiple runs in same session
Derek Hower [Wed, 5 Aug 2009 19:20:32 +0000 (14:20 -0500)]
ruby: configuration supports multiple runs in same session

These changes allow to run Ruby-gems multiple times from the same
ruby-lang script with different configurations

15 years agoprotocol: made MI_example dma mapping generic
Derek Hower [Wed, 5 Aug 2009 19:17:23 +0000 (14:17 -0500)]
protocol: made MI_example dma mapping generic

15 years agoMerge with head.
Gabe Black [Wed, 5 Aug 2009 10:12:39 +0000 (03:12 -0700)]
Merge with head.

15 years agoX86: Make conditional moves zero extend their 32 bit destinations always.
Gabe Black [Wed, 5 Aug 2009 10:07:55 +0000 (03:07 -0700)]
X86: Make conditional moves zero extend their 32 bit destinations always.

15 years agoX86: Fix condition code setting for signed multiplies with negative results.
Gabe Black [Wed, 5 Aug 2009 10:07:01 +0000 (03:07 -0700)]
X86: Fix condition code setting for signed multiplies with negative results.

15 years agoX86: Make the check for negative operands for sign multiply more direct.
Gabe Black [Wed, 5 Aug 2009 10:06:37 +0000 (03:06 -0700)]
X86: Make the check for negative operands for sign multiply more direct.

15 years agoX86: Make sure immediate values are truncated properly.
Gabe Black [Wed, 5 Aug 2009 10:06:01 +0000 (03:06 -0700)]
X86: Make sure immediate values are truncated properly.
Register values will be "picked" which will assure they don't have junk beyond
the part we're using. Immediate values don't go through a similar process, so
we should truncate them explicitly.

15 years agoX86: Use the new forced folding mechanism for the SAHF and LAHF instructions.
Gabe Black [Wed, 5 Aug 2009 10:04:17 +0000 (03:04 -0700)]
X86: Use the new forced folding mechanism for the SAHF and LAHF instructions.

15 years agoX86: Fix the indexing for ah in byte division instructions.
Gabe Black [Wed, 5 Aug 2009 10:03:41 +0000 (03:03 -0700)]
X86: Fix the indexing for ah in byte division instructions.

15 years agoX86: Fix the indexing for ah in byte multiply instructions.
Gabe Black [Wed, 5 Aug 2009 10:03:28 +0000 (03:03 -0700)]
X86: Fix the indexing for ah in byte multiply instructions.

15 years agoX86: Let microops force folding an index into the high byte of a register.
Gabe Black [Wed, 5 Aug 2009 10:03:07 +0000 (03:03 -0700)]
X86: Let microops force folding an index into the high byte of a register.

15 years agoX86: Handle rotate left with carry instructions that go all the way around or more.
Gabe Black [Wed, 5 Aug 2009 10:02:28 +0000 (03:02 -0700)]
X86: Handle rotate left with carry instructions that go all the way around or more.

15 years agoX86: Set the flags on rotate left with carry instructions.
Gabe Black [Wed, 5 Aug 2009 10:02:05 +0000 (03:02 -0700)]
X86: Set the flags on rotate left with carry instructions.

15 years agoX86: Handle rotate right with carry instructions that go all the way around or more.
Gabe Black [Wed, 5 Aug 2009 10:01:49 +0000 (03:01 -0700)]
X86: Handle rotate right with carry instructions that go all the way around or more.

15 years agoX86: Fix the overflow bit for rotate right with carry.
Gabe Black [Wed, 5 Aug 2009 10:01:23 +0000 (03:01 -0700)]
X86: Fix the overflow bit for rotate right with carry.

15 years agoX86: Fix the computation of the bottom part of rotate right with carry.
Gabe Black [Wed, 5 Aug 2009 10:01:07 +0000 (03:01 -0700)]
X86: Fix the computation of the bottom part of rotate right with carry.

15 years agoX86: Fix the computation of the upper part of rotate right with carry.
Gabe Black [Wed, 5 Aug 2009 10:00:43 +0000 (03:00 -0700)]
X86: Fix the computation of the upper part of rotate right with carry.

15 years agoX86: Set the flags for rotate right with carry instructions.
Gabe Black [Wed, 5 Aug 2009 10:00:23 +0000 (03:00 -0700)]
X86: Set the flags for rotate right with carry instructions.

15 years agoX86: Handle rotating right all the way around or more.
Gabe Black [Wed, 5 Aug 2009 10:00:03 +0000 (03:00 -0700)]
X86: Handle rotating right all the way around or more.

15 years agoX86: Set the flags on a rotate right instruction.
Gabe Black [Wed, 5 Aug 2009 09:59:39 +0000 (02:59 -0700)]
X86: Set the flags on a rotate right instruction.

15 years agoX86: Make shifts/rotations that write to 32 bits of a register zero extend.
Gabe Black [Wed, 5 Aug 2009 09:59:25 +0000 (02:59 -0700)]
X86: Make shifts/rotations that write to 32 bits of a register zero extend.

15 years agoX86: Handle left rotations that go all the way around or more.
Gabe Black [Wed, 5 Aug 2009 09:58:54 +0000 (02:58 -0700)]
X86: Handle left rotations that go all the way around or more.

15 years agoX86: Actually set the flags on a rotate left instruction.
Gabe Black [Wed, 5 Aug 2009 09:58:20 +0000 (02:58 -0700)]
X86: Actually set the flags on a rotate left instruction.

15 years agoX86: Fix the sar carry flag.
Gabe Black [Wed, 5 Aug 2009 09:58:03 +0000 (02:58 -0700)]
X86: Fix the sar carry flag.

15 years agoX86: Fix sign extension when doing an arithmetic shift right by 0.
Gabe Black [Wed, 5 Aug 2009 09:57:47 +0000 (02:57 -0700)]
X86: Fix sign extension when doing an arithmetic shift right by 0.

15 years agoX86: Fix the carry flag for shr.
Gabe Black [Wed, 5 Aug 2009 09:56:49 +0000 (02:56 -0700)]
X86: Fix the carry flag for shr.

15 years agoX86: Fix the carry flag for shl.
Gabe Black [Wed, 5 Aug 2009 09:56:38 +0000 (02:56 -0700)]
X86: Fix the carry flag for shl.

15 years agoX86: Fix how the parity flag is computed.
Gabe Black [Wed, 5 Aug 2009 09:56:12 +0000 (02:56 -0700)]
X86: Fix how the parity flag is computed.
It's only for the lowest order byte, and I had the polarity wrong.

15 years agoruby: made mapAddressToRange based off a bit count
Derek Hower [Wed, 5 Aug 2009 04:05:37 +0000 (23:05 -0500)]
ruby: made mapAddressToRange based off a bit count

15 years agoslicc: added MOESI_CMP_directory, DMA SequencerMsg, parameterized controllers
Derek Hower [Tue, 4 Aug 2009 17:52:52 +0000 (12:52 -0500)]
slicc: added MOESI_CMP_directory, DMA SequencerMsg, parameterized controllers

This changeset contains a lot of different changes that are too
mingled to separate.  They are:

1.  Added MOESI_CMP_directory

I made the changes necessary to bring back MOESI_CMP_directory,
including adding a DMA controller.  I got rid of MOESI_CMP_directory_m
and made MOESI_CMP_directory use a memory controller. Added a new
configuration for two level protocols in general, and
MOESI_CMP_directory in particular.

2.  DMA Sequencer uses a generic SequencerMsg

I will eventually make the cache Sequencer use this type as well.  It
doesn't contain an offset field, just a physical address and a length.
MI_example has been updated to deal with this.

3. Parameterized Controllers

SLICC controllers can now take custom parameters to use for mapping,
latencies, etc.  Currently, only int parameters are supported.

15 years agoslicc: generate html by default
Derek Hower [Tue, 4 Aug 2009 17:42:45 +0000 (12:42 -0500)]
slicc: generate html by default

15 years agoslicc: better error messages when the python parser fails
Nathan Binkert [Tue, 4 Aug 2009 16:37:27 +0000 (09:37 -0700)]
slicc: better error messages when the python parser fails

15 years agoMerged with head.
Gabe Black [Mon, 3 Aug 2009 18:06:19 +0000 (11:06 -0700)]
Merged with head.

15 years agoX86: Fix segment override prefixes on instructions that use rbp/rsp and a displacement.
Gabe Black [Mon, 3 Aug 2009 18:01:40 +0000 (11:01 -0700)]
X86: Fix segment override prefixes on instructions that use rbp/rsp and a displacement.

15 years agoAutomated merge with ssh://hg@m5sim.org/m5
Derek Hower [Mon, 3 Aug 2009 16:39:08 +0000 (11:39 -0500)]
Automated merge with ssh://hg@m5sim.org/m5

15 years agoX86: Set up the IDE device correctly, ie. with and using legacy ports.
Gabe Black [Mon, 3 Aug 2009 01:01:13 +0000 (18:01 -0700)]
X86: Set up the IDE device correctly, ie. with and using legacy ports.

15 years agoIDE: Configure the IDE control to reflect the initial value of the command register.
Gabe Black [Mon, 3 Aug 2009 01:01:09 +0000 (18:01 -0700)]
IDE: Configure the IDE control to reflect the initial value of the command register.

15 years agoX86: Fix the high result of mul1s, and removed undefined shifts from the mult microops.
Gabe Black [Sun, 2 Aug 2009 15:39:29 +0000 (08:39 -0700)]
X86: Fix the high result of mul1s, and removed undefined shifts from the mult microops.

15 years agoFix setting of INST_FETCH flag for O3 CPU.
Steve Reinhardt [Sun, 2 Aug 2009 05:50:14 +0000 (22:50 -0700)]
Fix setting of INST_FETCH flag for O3 CPU.
It's still broken in inorder.
Also enhance DPRINTFs in cache and physical memory so we
can see more easily whether it's getting set or not.

15 years agoClean up some inconsistencies with Request flags.
Steve Reinhardt [Sun, 2 Aug 2009 05:50:13 +0000 (22:50 -0700)]
Clean up some inconsistencies with Request flags.

15 years agoRename internal Request fields to start with '_'.
Steve Reinhardt [Sun, 2 Aug 2009 05:50:10 +0000 (22:50 -0700)]
Rename internal Request fields to start with '_'.
The inconsistency was causing a subtle bug with some of the
constructors where the params had the same name as the fields.
This is also a first step to switching the accessors over to
our new "standard", e.g., getVaddr() -> vaddr().

15 years agomerge mips fix and statetrace changes
Korey Sewell [Fri, 31 Jul 2009 14:40:42 +0000 (10:40 -0400)]
merge mips fix and statetrace changes

15 years agomips: fix ll/sc pairs working incorrectly because of accidental clobber of LLFLAG
Korey Sewell [Fri, 31 Jul 2009 13:34:29 +0000 (09:34 -0400)]
mips: fix ll/sc pairs working incorrectly because of accidental clobber of LLFLAG

15 years agoregression: updated stats
Derek Hower [Fri, 31 Jul 2009 05:43:09 +0000 (00:43 -0500)]
regression: updated stats

15 years agocompile: fix accidental conversion of == into =
Nathan Binkert [Fri, 31 Jul 2009 00:42:57 +0000 (17:42 -0700)]
compile: fix accidental conversion of == into =

15 years agoARM: Mul and mla ignore the c and v flags, but we were setting them to 1.
Gabe Black [Thu, 30 Jul 2009 05:24:00 +0000 (22:24 -0700)]
ARM: Mul and mla ignore the c and v flags, but we were setting them to 1.

15 years agoruby: fixed clearStats
Derek Hower [Wed, 29 Jul 2009 18:46:58 +0000 (13:46 -0500)]
ruby: fixed clearStats

15 years agoStatetrace: Make sure the current state is loaded to print the initial stack frame.
Gabe Black [Wed, 29 Jul 2009 07:35:49 +0000 (00:35 -0700)]
Statetrace: Make sure the current state is loaded to print the initial stack frame.
The early call to child->step() was removed earlier because it confused the
new differences-only protocol ARM sendState() was using. It's necessary that
that gets called at least once before attempting to print the initial stack
frame, though, because otherwise statetrace doesn't know what the stack
pointer is. By putting the first call to child->step() in a common spot, both
needs are met.

15 years agoARM: Fix an instruction in the cmpxchg kernel provided routine.
Gabe Black [Wed, 29 Jul 2009 07:18:26 +0000 (00:18 -0700)]
ARM: Fix an instruction in the cmpxchg kernel provided routine.
The instruction was encoded as a load instead of the intended store.

15 years agoARM: Get rid of a stray line in the set_tls handler.
Gabe Black [Wed, 29 Jul 2009 07:17:20 +0000 (00:17 -0700)]
ARM: Get rid of a stray line in the set_tls handler.

15 years agoARM: Make the ARM native tracer stop M5 if control diverges.
Gabe Black [Wed, 29 Jul 2009 07:17:11 +0000 (00:17 -0700)]
ARM: Make the ARM native tracer stop M5 if control diverges.
If the control flow of M5's executable and statetrace's target process get out
of sync even a little, there will be a LOT of output, very little of which
will be useful. There's also almost no hope for recovery. In those cases, we
might as well give up and not generate a huge, mostly worthless trace file.

15 years agoSimple CPU: Make the simple CPU handle the IntRegs trace flag.
Gabe Black [Wed, 29 Jul 2009 07:15:26 +0000 (00:15 -0700)]
Simple CPU: Make the simple CPU handle the IntRegs trace flag.

15 years agoARM: Make sure the target process doesn't run away from statetrace.
Gabe Black [Wed, 29 Jul 2009 07:14:43 +0000 (00:14 -0700)]
ARM: Make sure the target process doesn't run away from statetrace.

15 years agoARM: Ignore the "times" system call.
Ali Saidi [Wed, 29 Jul 2009 07:09:46 +0000 (00:09 -0700)]
ARM: Ignore the "times" system call.

15 years agoARM: Fix an ioctl constant.
Ali Saidi [Wed, 29 Jul 2009 07:09:44 +0000 (00:09 -0700)]
ARM: Fix an ioctl constant.

15 years agoruby: removed unused/incorrect profiler state
Derek Hower [Tue, 28 Jul 2009 02:43:43 +0000 (21:43 -0500)]
ruby: removed unused/incorrect profiler state

15 years agoARM: Update the stats for the EABI version of hello world.
Gabe Black [Mon, 27 Jul 2009 07:55:14 +0000 (00:55 -0700)]
ARM: Update the stats for the EABI version of hello world.

15 years agoARM: Update some syscall constants and delete others that are Alpha only.
Ali Saidi [Mon, 27 Jul 2009 07:54:55 +0000 (00:54 -0700)]
ARM: Update some syscall constants and delete others that are Alpha only.

15 years agoARM: Decode fstmx and fldmx instructions. We can ignore them for now.
Gabe Black [Mon, 27 Jul 2009 07:54:50 +0000 (00:54 -0700)]
ARM: Decode fstmx and fldmx instructions. We can ignore them for now.

15 years agoARM: Only send information that changed between statetrace and M5.
Gabe Black [Mon, 27 Jul 2009 07:54:30 +0000 (00:54 -0700)]
ARM: Only send information that changed between statetrace and M5.

15 years agoimported patch nativetracestreamline.patch
Gabe Black [Mon, 27 Jul 2009 07:54:24 +0000 (00:54 -0700)]
imported patch nativetracestreamline.patch

15 years agoARM: Make native trace print out what instruction caused an error.
Gabe Black [Mon, 27 Jul 2009 07:54:09 +0000 (00:54 -0700)]
ARM: Make native trace print out what instruction caused an error.

15 years agoimported patch statetracehost.patch
Gabe Black [Mon, 27 Jul 2009 07:54:04 +0000 (00:54 -0700)]
imported patch statetracehost.patch

15 years agoARM: Add ARM support to statetrace.
Ali Saidi [Mon, 27 Jul 2009 07:53:39 +0000 (00:53 -0700)]
ARM: Add ARM support to statetrace.

15 years agoStatetrace: Fix up headers.
Gabe Black [Mon, 27 Jul 2009 07:53:32 +0000 (00:53 -0700)]
Statetrace: Fix up headers.

15 years agoARM: Implement a basic version of the fmxr instruction.
Gabe Black [Mon, 27 Jul 2009 07:53:29 +0000 (00:53 -0700)]
ARM: Implement a basic version of the fmxr instruction.

15 years agoARM: Implement a basic version of the fmrx instruction.
Gabe Black [Mon, 27 Jul 2009 07:53:24 +0000 (00:53 -0700)]
ARM: Implement a basic version of the fmrx instruction.

15 years agoARM: Add in spots for the VFP control registers.
Gabe Black [Mon, 27 Jul 2009 07:53:10 +0000 (00:53 -0700)]
ARM: Add in spots for the VFP control registers.

15 years agoARM: Fix the CLZ instruction.
Gabe Black [Mon, 27 Jul 2009 07:52:59 +0000 (00:52 -0700)]
ARM: Fix the CLZ instruction.

15 years agoARM: Initialize the CPSR so that we're in user mode.
Gabe Black [Mon, 27 Jul 2009 07:52:48 +0000 (00:52 -0700)]
ARM: Initialize the CPSR so that we're in user mode.

15 years agoARM: Set up the initial stack frame to match a recent Linux.
Gabe Black [Mon, 27 Jul 2009 07:52:31 +0000 (00:52 -0700)]
ARM: Set up the initial stack frame to match a recent Linux.

15 years agoElf: Add in some new aux vector type constants.
Gabe Black [Mon, 27 Jul 2009 07:52:19 +0000 (00:52 -0700)]
Elf: Add in some new aux vector type constants.

15 years agoARM: Make native trace only print when registers are changing value.
Gabe Black [Mon, 27 Jul 2009 07:52:01 +0000 (00:52 -0700)]
ARM: Make native trace only print when registers are changing value.
When registers have incorrect values but aren't actively changing, it's likely
they're not being modified at all. The fact that they're still wrong isn't
very important.