Gabe Black [Wed, 25 Feb 2009 18:21:08 +0000 (10:21 -0800)]
X86: Make rdcr use merge and the mov to control register instructions use the right operand size.
Gabe Black [Wed, 25 Feb 2009 18:21:02 +0000 (10:21 -0800)]
X86: Implement CLTS.
Gabe Black [Wed, 25 Feb 2009 18:20:47 +0000 (10:20 -0800)]
X86: Make the segment register reading microops use merge.
Gabe Black [Wed, 25 Feb 2009 18:20:42 +0000 (10:20 -0800)]
X86: Implement the mov to debug register intructions.
Gabe Black [Wed, 25 Feb 2009 18:20:30 +0000 (10:20 -0800)]
X86: Rename oszForPseudoDesc maxOsz to reflect its more general use.
Gabe Black [Wed, 25 Feb 2009 18:20:25 +0000 (10:20 -0800)]
X86: Add code to interpret debug register values.
Gabe Black [Wed, 25 Feb 2009 18:20:19 +0000 (10:20 -0800)]
X86: Fix a few bugs with the segment register instructions in real mode.
Fix a few instances where the register form of zext was used where zexti was
intended. Also get rid of the 64 bit only rip relative addressed version since
64 bit and real mode are mutually exclusive.
Gabe Black [Wed, 25 Feb 2009 18:20:10 +0000 (10:20 -0800)]
X86: Do a merge for the zero extension microop.
Gabe Black [Wed, 25 Feb 2009 18:20:01 +0000 (10:20 -0800)]
X86: Add microops for reading/writing debug registers.
Gabe Black [Wed, 25 Feb 2009 18:19:54 +0000 (10:19 -0800)]
X86: Add classes that break out the bits of the DR6 and DR7 registers.
Gabe Black [Wed, 25 Feb 2009 18:19:47 +0000 (10:19 -0800)]
X86: Check src1 for illegal values since that's the index we actually use.
Gabe Black [Wed, 25 Feb 2009 18:19:41 +0000 (10:19 -0800)]
X86: Implement the fence instructions. These are not microcoded.
Gabe Black [Wed, 25 Feb 2009 18:19:33 +0000 (10:19 -0800)]
CPU: Add a flag to identify a read barrier to the static inst class.
Gabe Black [Wed, 25 Feb 2009 18:19:28 +0000 (10:19 -0800)]
X86: Update stats now that prefetch is implemented.
Gabe Black [Wed, 25 Feb 2009 18:19:22 +0000 (10:19 -0800)]
X86: Implement a basic prefetch instruction.
Gabe Black [Wed, 25 Feb 2009 18:19:14 +0000 (10:19 -0800)]
X86: Use the right portion of a register for stores.
Gabe Black [Wed, 25 Feb 2009 18:19:06 +0000 (10:19 -0800)]
X86: Add IRQ4 to the Intel MP tables.
Gabe Black [Wed, 25 Feb 2009 18:18:58 +0000 (10:18 -0800)]
X86: Actually check page protections.
Gabe Black [Wed, 25 Feb 2009 18:18:51 +0000 (10:18 -0800)]
X86: Update CS later so stack accesses have the right permission checks.
Gabe Black [Wed, 25 Feb 2009 18:18:45 +0000 (10:18 -0800)]
CPU: Update stats now that there's no fetch in the middle of macroops.
Gabe Black [Wed, 25 Feb 2009 18:18:36 +0000 (10:18 -0800)]
CPU: Don't fetch when executing a macroop.
If the CPL changes mid macroop, the end of the instruction might not be
priveleged enough to execute the beginning.
Gabe Black [Wed, 25 Feb 2009 18:18:29 +0000 (10:18 -0800)]
X86: Use atCPL0 for accesses that are part of CPU machinery.
Gabe Black [Wed, 25 Feb 2009 18:18:22 +0000 (10:18 -0800)]
X86: Add a flag to force memory accesses to happen at CPL 0.
Gabe Black [Wed, 25 Feb 2009 18:18:16 +0000 (10:18 -0800)]
X86: Move where CS is set so CPL checks work out.
Gabe Black [Wed, 25 Feb 2009 18:18:06 +0000 (10:18 -0800)]
X86: Implement inUserMode for x86.
Gabe Black [Wed, 25 Feb 2009 18:17:59 +0000 (10:17 -0800)]
X86: Add a trace flag for tracing faults.
Gabe Black [Wed, 25 Feb 2009 18:17:54 +0000 (10:17 -0800)]
X86: Implement the sysret instruction in long mode.
Gabe Black [Wed, 25 Feb 2009 18:17:49 +0000 (10:17 -0800)]
X86: Implement the longmode versions of the syscall instruction.
Gabe Black [Wed, 25 Feb 2009 18:17:43 +0000 (10:17 -0800)]
X86: Make the microcode assembler recognize r8-r15.
Gabe Black [Wed, 25 Feb 2009 18:17:38 +0000 (10:17 -0800)]
X86: Add a wrattr microop.
Gabe Black [Wed, 25 Feb 2009 18:17:27 +0000 (10:17 -0800)]
X86: Add a trace flag for the page table walker.
Gabe Black [Wed, 25 Feb 2009 18:17:19 +0000 (10:17 -0800)]
X86: Make exceptions handle stack switching.
Gabe Black [Wed, 25 Feb 2009 18:17:14 +0000 (10:17 -0800)]
X86: Implement the LTR instruction.
Gabe Black [Wed, 25 Feb 2009 18:17:08 +0000 (10:17 -0800)]
X86: Fix segment limit checking.
Gabe Black [Wed, 25 Feb 2009 18:17:02 +0000 (10:17 -0800)]
X86: Add a check to chks to verify a task state segment descriptor.
Gabe Black [Wed, 25 Feb 2009 18:16:54 +0000 (10:16 -0800)]
X86: Add a check to chks which raises #GP(selector) if selector is NULL or not in the GDT.
Gabe Black [Wed, 25 Feb 2009 18:16:43 +0000 (10:16 -0800)]
X86: Add makeAtomicResponse to the read/write functions of x86 devices.
Gabe Black [Wed, 25 Feb 2009 18:16:34 +0000 (10:16 -0800)]
X86: Fix the timing mode of the page table walker.
Gabe Black [Wed, 25 Feb 2009 18:16:29 +0000 (10:16 -0800)]
X86: Update stats for in place TLB miss handling.
Gabe Black [Wed, 25 Feb 2009 18:16:21 +0000 (10:16 -0800)]
X86: Make the X86 TLB take advantage of delayed translations, and get rid of the fake TLB miss faults.
Gabe Black [Wed, 25 Feb 2009 18:16:15 +0000 (10:16 -0800)]
CPU: Implement translateTiming which defers to translateAtomic, and convert the timing simple CPU to use it.
Gabe Black [Wed, 25 Feb 2009 18:16:04 +0000 (10:16 -0800)]
SPARC: Adjust a few instructions to not write registers in initiateAcc.
Gabe Black [Wed, 25 Feb 2009 18:15:56 +0000 (10:15 -0800)]
X86: Make the stupd microop not update registers in initiateAcc.
Gabe Black [Wed, 25 Feb 2009 18:15:44 +0000 (10:15 -0800)]
ISA: Replace the translate functions in the TLBs with translateAtomic.
Gabe Black [Wed, 25 Feb 2009 18:15:34 +0000 (10:15 -0800)]
CPU: Get rid of translate... functions from various interface classes.
Nathan Binkert [Mon, 23 Feb 2009 20:22:19 +0000 (12:22 -0800)]
stats: reorganize how parameters are stored and accessed.
Nathan Binkert [Mon, 23 Feb 2009 20:22:18 +0000 (12:22 -0800)]
stats: move the limits stuff into the types.hh file
Nathan Binkert [Mon, 23 Feb 2009 20:22:17 +0000 (12:22 -0800)]
stats: get rid of the convoluted 'database' code.
Just use the stuff directly and things ought to be more clear
Nathan Binkert [Mon, 23 Feb 2009 20:22:15 +0000 (12:22 -0800)]
stats: Try to make the names of things more intuitive.
Basically, this means renaming several things called data to info, which
is information about the statistics. Things that are named data now are
actual data stored for the statistic.
Nathan Binkert [Mon, 23 Feb 2009 20:04:52 +0000 (12:04 -0800)]
stats: clean up the statistics unittest
Nathan Binkert [Mon, 23 Feb 2009 20:04:50 +0000 (12:04 -0800)]
stats: fix text printout for distributions
Nathan Binkert [Mon, 23 Feb 2009 20:03:06 +0000 (12:03 -0800)]
stats: cleanup static stats to make startup work.
This is mainly to allow the unit test to run without requiring the standard
M5 stats from being initialized (e.g. sim_seconds, sim_ticks, host_seconds)
Nathan Binkert [Mon, 23 Feb 2009 19:48:40 +0000 (11:48 -0800)]
debug: Move debug_break into src/base
Gabe Black [Mon, 23 Feb 2009 08:20:34 +0000 (00:20 -0800)]
X86: Pass whether an access was a read/write/fetch so faults can behave accordingly.
Korey Sewell [Fri, 20 Feb 2009 16:02:48 +0000 (11:02 -0500)]
Remove unnecessary building of FreeList/RenameMap in InOrder. Clean-up comments and O3 extensions InOrder Thread Context
Nathan Binkert [Wed, 18 Feb 2009 18:00:15 +0000 (10:00 -0800)]
events: Make trace events happen at the right priority.
Also, while we're at it, remember that priorities are in the Event class
and add a disable method to disable tracing.
Steve Reinhardt [Wed, 18 Feb 2009 03:24:46 +0000 (19:24 -0800)]
Make etherdump timestamps zero-based.
We previously used the actual wall time for the base timestamps,
making etherdumps non-deterministic. This fixes that problem and
gets rid of the "malformed packet" at the front that we needed to
provide the right base timestamp to wireshark/tcpdump.
Lisa Hsu [Mon, 16 Feb 2009 22:47:39 +0000 (17:47 -0500)]
sycalls: implement mremap() and add DATA flag for getrlimit(). mremap has been tested on Alpha, compiles for the rest but not tested. I don't see why it wouldn't work though.
Steve Reinhardt [Mon, 16 Feb 2009 17:09:45 +0000 (12:09 -0500)]
Update stats for new prefetching fixes.
Prefetching is not enabled in any of our regressions, so no significant
stat values have changed, but zero-valued prefetch stats no longer
show up when prefetching is disabled so there are noticable changes
in the reference stat files anyway.
Steve Reinhardt [Mon, 16 Feb 2009 16:56:40 +0000 (08:56 -0800)]
Fixes to get prefetching working again.
Apparently we broke it with the cache rewrite and never noticed.
Thanks to Bao Yungang <baoyungang@gmail.com> for a significant part
of these changes (and for inspiring me to work on the rest).
Some other overdue cleanup on the prefetch code too.
Gabe Black [Mon, 16 Feb 2009 07:43:39 +0000 (23:43 -0800)]
X86: Make the loader recognize 32 bit x86 processes.
Nathan Binkert [Mon, 16 Feb 2009 04:39:12 +0000 (20:39 -0800)]
traceflags: fix --trace-help
Nathan Binkert [Mon, 16 Feb 2009 04:38:49 +0000 (20:38 -0800)]
SCons: Fix read_command so it can properly deal with command strings
Nathan Binkert [Thu, 12 Feb 2009 00:58:51 +0000 (16:58 -0800)]
scons: clean up the main SConstruct file more.
Add some features to read_command so it works a little bit better
Clean up the mercurial checks.
Filter the user environment and only pick out the useful stuff.
Nathan Binkert [Wed, 11 Feb 2009 06:19:27 +0000 (22:19 -0800)]
style
Korey Sewell [Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)]
Configs: Add support for the InOrder CPU model
Korey Sewell [Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)]
InOrder: Import new inorder CPU model from MIPS.
This model currently only works in MIPS_SE mode, so it will take some effort
to clean it up and make it generally useful. Hopefully people are willing to
help make that happen!
Korey Sewell [Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)]
syscall: Expose ioctl for MIPS
Korey Sewell [Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)]
ExeTrace: Allow subclasses of the tracer to define their own prefix to dump
Korey Sewell [Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)]
CPU: Prepare CPU models for the new in-order CPU model.
Some new functions and forward declarations are necessary to make things work
Nathan Binkert [Tue, 10 Feb 2009 04:10:15 +0000 (20:10 -0800)]
copyright: This file need not have had the more restrictive copyright.
Nathan Binkert [Tue, 10 Feb 2009 04:10:14 +0000 (20:10 -0800)]
scons: Require SCons version 0.98.1
This allows me to clean things up so we are up to date with respect to
deprecated features. There are many features scheduled for permanent failure
in scons 2.0 and 0.98.1 provides the most compatability for that. It
also paves the way for some nice new features that I will add soon
Nathan Binkert [Tue, 10 Feb 2009 04:10:12 +0000 (20:10 -0800)]
scons: Don't build the intermediate static library unless explicitly requested.
This means that similar to libm5_fast.so, you need to explicitly build
build/ALPHA_SE/libm5_fast.a if you want it.
Nathan Binkert [Sat, 7 Feb 2009 04:55:50 +0000 (20:55 -0800)]
Quell g++ 4.3 warning about operator ambiguity
Nathan Binkert [Thu, 5 Feb 2009 00:26:15 +0000 (16:26 -0800)]
some new files are missing copyright notices
Gabe Black [Mon, 2 Feb 2009 06:40:51 +0000 (22:40 -0800)]
X86: Add some missing default arguments.
Gabe Black [Mon, 2 Feb 2009 01:09:08 +0000 (17:09 -0800)]
X86: All x86 fault classes now attempt to do something useful.
Gabe Black [Mon, 2 Feb 2009 01:08:32 +0000 (17:08 -0800)]
X86: Make the fault classes handle error codes better.
Gabe Black [Mon, 2 Feb 2009 01:07:43 +0000 (17:07 -0800)]
X86: Make the long mode interrupt/exception microcode handle an error code.
Gabe Black [Mon, 2 Feb 2009 01:07:18 +0000 (17:07 -0800)]
X86: Distinguish between hardware and software interrupts/exceptions
Gabe Black [Mon, 2 Feb 2009 01:06:25 +0000 (17:06 -0800)]
X86: Fix the upper bound on some ranges that were setting up the micro code assembler.
Gabe Black [Mon, 2 Feb 2009 01:05:37 +0000 (17:05 -0800)]
X86: Make the chks microop check for the right int descriptor type.
Gabe Black [Mon, 2 Feb 2009 01:04:21 +0000 (17:04 -0800)]
X86: Touch up the interrupt entering microcode.
Gabe Black [Mon, 2 Feb 2009 01:03:11 +0000 (17:03 -0800)]
X86: Keep track of the vector for all exceptions/faults.
Gabe Black [Mon, 2 Feb 2009 01:02:16 +0000 (17:02 -0800)]
X86: Update stats now that the micropc isn't always reset on faults.
Gabe Black [Sun, 1 Feb 2009 08:30:54 +0000 (00:30 -0800)]
CPU: Don't always reset the micro pc on faults. Let the faults handle it.
Gabe Black [Sun, 1 Feb 2009 08:30:11 +0000 (00:30 -0800)]
X86: Fix the time keeping of the Local APIC timer.
Gabe Black [Sun, 1 Feb 2009 08:29:07 +0000 (00:29 -0800)]
X86: Find the natural lpj for this configuration.
Gabe Black [Sun, 1 Feb 2009 08:28:28 +0000 (00:28 -0800)]
X86: Fix the microcode for the LODS instruction.
Gabe Black [Sun, 1 Feb 2009 08:27:49 +0000 (00:27 -0800)]
X86: Add a root device to the kernel command line.
Gabe Black [Sun, 1 Feb 2009 08:27:15 +0000 (00:27 -0800)]
X86: Implement pciToDma.
Gabe Black [Sun, 1 Feb 2009 08:26:10 +0000 (00:26 -0800)]
X86: Configure the first PCI interrupt.
Gabe Black [Sun, 1 Feb 2009 08:25:15 +0000 (00:25 -0800)]
X86: Hook up the IDE controller interrupt line.
Gabe Black [Sun, 1 Feb 2009 08:24:26 +0000 (00:24 -0800)]
X86: Hook in a hard drive image.
Gabe Black [Sun, 1 Feb 2009 08:20:44 +0000 (00:20 -0800)]
X86: Take out the IDE noprobe kernel arguments.
Gabe Black [Sun, 1 Feb 2009 08:18:13 +0000 (00:18 -0800)]
X86: Fix some incorrect register widths.
Gabe Black [Sun, 1 Feb 2009 08:15:38 +0000 (00:15 -0800)]
X86: Add extended Intel MP entries correctly.
Gabe Black [Sun, 1 Feb 2009 08:11:49 +0000 (00:11 -0800)]
X86: Compute PCI config addresses correctly.
Gabe Black [Sun, 1 Feb 2009 08:08:16 +0000 (00:08 -0800)]
X86: Calculate flags based on the actual result.
Gabe Black [Sun, 1 Feb 2009 08:04:34 +0000 (00:04 -0800)]
X86: Make sure the predecoder is cleared out for interrupts.