gem5.git
14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

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

14 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.

14 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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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().

14 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

14 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

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

14 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 =

14 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.

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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

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

14 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

14 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.

14 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.

14 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.

14 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.

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

14 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.

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

14 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.

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

14 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.

14 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.

14 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.

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

14 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.

14 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.

14 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.

14 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.

14 years agoARM: Add a native tracer.
Gabe Black [Mon, 27 Jul 2009 07:51:35 +0000 (00:51 -0700)]
ARM: Add a native tracer.

--HG--
rename : src/arch/sparc/SparcNativeTrace.py => src/arch/arm/ArmNativeTrace.py
rename : src/arch/sparc/nativetrace.cc => src/arch/arm/nativetrace.cc
rename : src/arch/sparc/nativetrace.hh => src/arch/arm/nativetrace.hh

14 years agoARM: Update the reference outputs for the new binary and fstat64 struct.
Gabe Black [Mon, 27 Jul 2009 07:51:27 +0000 (00:51 -0700)]
ARM: Update the reference outputs for the new binary and fstat64 struct.

14 years agoARM: Fix fstat/fstat64 structs to match EABI definitions.
Ali Saidi [Mon, 27 Jul 2009 07:51:20 +0000 (00:51 -0700)]
ARM: Fix fstat/fstat64 structs to match EABI definitions.

14 years agoARM: Replace hello world with an EABI version.
Gabe Black [Mon, 27 Jul 2009 07:51:15 +0000 (00:51 -0700)]
ARM: Replace hello world with an EABI version.

14 years agoARM: Handle register indexed system calls.
Ali Saidi [Mon, 27 Jul 2009 07:51:01 +0000 (00:51 -0700)]
ARM: Handle register indexed system calls.

14 years agoARM: Detect OABI binaries and complain that they're no-longer supported.
Ali Saidi [Mon, 27 Jul 2009 07:50:55 +0000 (00:50 -0700)]
ARM: Detect OABI binaries and complain that they're no-longer supported.

14 years agose-configs: edit se.py to account for non-O3CPU workloads
Korey Sewell [Sun, 26 Jul 2009 04:13:35 +0000 (00:13 -0400)]
se-configs: edit se.py to account for non-O3CPU workloads

14 years agomerge sparc fix w/2t regress fix
Korey Sewell [Sun, 26 Jul 2009 02:24:45 +0000 (22:24 -0400)]
merge sparc fix w/2t regress fix

14 years agoregress: edit 2t hello smt file to specify numThreads
Korey Sewell [Sun, 26 Jul 2009 02:22:13 +0000 (22:22 -0400)]
regress: edit 2t hello smt file to specify numThreads

14 years agoSPARC: Fix a minor compile bug in native trace on gcc > 4.1.
Gabe Black [Sat, 25 Jul 2009 22:14:00 +0000 (15:14 -0700)]
SPARC: Fix a minor compile bug in native trace on gcc > 4.1.

14 years agoo3-smt: enforce numThreads parameter for SMT SE mode
Korey Sewell [Sat, 25 Jul 2009 04:50:27 +0000 (00:50 -0400)]
o3-smt: enforce numThreads parameter for SMT SE mode

14 years agoFixed the licences plus minor fixes for compilation
Polina Dudnik [Thu, 23 Jul 2009 01:28:32 +0000 (20:28 -0500)]
Fixed the licences plus minor fixes for compilation

14 years agoMIPS: Small fix I forgot to qrefresh into my last change.
Gabe Black [Wed, 22 Jul 2009 08:57:55 +0000 (01:57 -0700)]
MIPS: Small fix I forgot to qrefresh into my last change.

14 years agoMIPS: Style/formatting sweep of the decoder itself.
Gabe Black [Wed, 22 Jul 2009 08:51:10 +0000 (01:51 -0700)]
MIPS: Style/formatting sweep of the decoder itself.

14 years agoMIPS: Format the register index constants like the other ISAs.
Gabe Black [Wed, 22 Jul 2009 06:38:26 +0000 (23:38 -0700)]
MIPS: Format the register index constants like the other ISAs.
Also a few more style fixes.

14 years agoAutomated merge with ssh://m5sim.org//repo/m5
Derek Hower [Wed, 22 Jul 2009 02:27:54 +0000 (21:27 -0500)]
Automated merge with ssh://m5sim.org//repo/m5

14 years agoruby: fixed sequencer RMW data bug
Derek Hower [Wed, 22 Jul 2009 00:42:09 +0000 (19:42 -0500)]
ruby: fixed sequencer RMW data bug

14 years agoruby: libruby_init now takes parsed Ruby-lang config text
Derek Hower [Tue, 21 Jul 2009 23:33:05 +0000 (18:33 -0500)]
ruby: libruby_init now takes parsed Ruby-lang config text

libruby_init now expects to get a file that contains the output of
running a ruby-lang configuration, opposed to the ruby-lang
configuration itself.

14 years agoMIPS: Get MIPS_FS to compile, more style fixes.
Gabe Black [Tue, 21 Jul 2009 08:09:05 +0000 (01:09 -0700)]
MIPS: Get MIPS_FS to compile, more style fixes.
Some breakage was from my BitUnion change, some was much older.

14 years agoMIPS: Many style fixes.
Gabe Black [Tue, 21 Jul 2009 08:08:53 +0000 (01:08 -0700)]
MIPS: Many style fixes.
White space, commented out code, some other minor fixes.

14 years agoisa_parser: Get rid of the now unused ControlBitfieldOperand.
Gabe Black [Tue, 21 Jul 2009 03:20:17 +0000 (20:20 -0700)]
isa_parser: Get rid of the now unused ControlBitfieldOperand.

14 years agoMIPS: Use BitUnions instead of bits() functions and constants.
Gabe Black [Tue, 21 Jul 2009 03:14:15 +0000 (20:14 -0700)]
MIPS: Use BitUnions instead of bits() functions and constants.
Also fix style issues in regions around these changes.

14 years agomerge
Derek Hower [Mon, 20 Jul 2009 14:41:28 +0000 (09:41 -0500)]
merge

14 years agoruby: moved cache stats from Profiler to CacheMemory
Derek Hower [Mon, 20 Jul 2009 14:40:43 +0000 (09:40 -0500)]
ruby: moved cache stats from Profiler to CacheMemory

Caches are now responsible for their own statistic gathering.  This
requires a direct callback from the protocol on misses, and so all
future protocols need to take this into account.

14 years agoCPU: Separate out native trace into ISA (in)dependent code and SimObjects.
Gabe Black [Mon, 20 Jul 2009 06:54:56 +0000 (23:54 -0700)]
CPU: Separate out native trace into ISA (in)dependent code and SimObjects.

--HG--
rename : src/cpu/nativetrace.cc => src/arch/sparc/nativetrace.cc
rename : src/cpu/nativetrace.hh => src/arch/sparc/nativetrace.hh
rename : src/cpu/NativeTrace.py => src/arch/x86/X86NativeTrace.py

14 years agoTracing: Add accessors so tracers can get at data in trace records.
Gabe Black [Mon, 20 Jul 2009 06:54:31 +0000 (23:54 -0700)]
Tracing: Add accessors so tracers can get at data in trace records.

14 years agoX86: Move a displaced comment back to where it goes.
Gabe Black [Mon, 20 Jul 2009 06:51:47 +0000 (23:51 -0700)]
X86: Move a displaced comment back to where it goes.

14 years agoX86: Add some misc registers for FP control state.
Gabe Black [Mon, 20 Jul 2009 06:51:41 +0000 (23:51 -0700)]
X86: Add some misc registers for FP control state.

14 years agoscons: removed RubyConfig from scons
Derek Hower [Sun, 19 Jul 2009 17:34:11 +0000 (12:34 -0500)]
scons: removed RubyConfig from scons

15 years agoruby: removed all refs to old RubyConfig
Derek Hower [Sat, 18 Jul 2009 23:20:03 +0000 (18:20 -0500)]
ruby: removed all refs to old RubyConfig

15 years agoruby: removed dead files
Derek Hower [Sat, 18 Jul 2009 23:18:37 +0000 (18:18 -0500)]
ruby: removed dead files

15 years agoruby: removed dead files
Derek Hower [Sat, 18 Jul 2009 23:17:48 +0000 (18:17 -0500)]
ruby: removed dead files

15 years agomerge
Derek Hower [Sat, 18 Jul 2009 22:40:20 +0000 (17:40 -0500)]
merge

15 years agoruby: fixed dma sequencer bug
Derek Hower [Sat, 18 Jul 2009 22:03:51 +0000 (17:03 -0500)]
ruby: fixed dma sequencer bug

The DMASequencer was still using a parameter from the old RubyConfig,
causing an offset error when the requested data wasn't block aligned.
This changeset also includes a fix to MI_example for a similar bug.