gem5.git
12 years agoSE/FS: Get rid of includes of config/full_system.hh.
Gabe Black [Fri, 18 Nov 2011 10:20:22 +0000 (02:20 -0800)]
SE/FS: Get rid of includes of config/full_system.hh.

12 years agoSE/FS: Get rid of FULL_SYSTEM in the CPU directory.
Gabe Black [Fri, 18 Nov 2011 09:33:28 +0000 (01:33 -0800)]
SE/FS: Get rid of FULL_SYSTEM in the CPU directory.

12 years agoPower: Add a stubbed out stacktrace.cc
Gabe Black [Sun, 13 Nov 2011 20:40:15 +0000 (12:40 -0800)]
Power: Add a stubbed out stacktrace.cc

12 years agoPOWER: Add a stub implementation of initCPU.
Gabe Black [Sun, 13 Nov 2011 20:40:15 +0000 (12:40 -0800)]
POWER: Add a stub implementation of initCPU.

12 years agoPower: Add a stub kernel_stats.hh.
Gabe Black [Sun, 13 Nov 2011 20:40:15 +0000 (12:40 -0800)]
Power: Add a stub kernel_stats.hh.

12 years agoSE/FS: Get rid of FULL_SYSTEM in dev.
Gabe Black [Sun, 13 Nov 2011 10:05:32 +0000 (02:05 -0800)]
SE/FS: Get rid of FULL_SYSTEM in dev.

12 years agoSE/FS: Get rid of FULL_SYSTEM in kern.
Gabe Black [Sun, 13 Nov 2011 10:05:32 +0000 (02:05 -0800)]
SE/FS: Get rid of FULL_SYSTEM in kern.

12 years agoPower: Implement a stub for getArgument.
Gabe Black [Sun, 13 Nov 2011 10:05:27 +0000 (02:05 -0800)]
Power: Implement a stub for getArgument.

12 years agoSE/FS: Get rid of FULL_SYSTEM in mem.
Gabe Black [Mon, 7 Nov 2011 09:13:43 +0000 (01:13 -0800)]
SE/FS: Get rid of FULL_SYSTEM in mem.

12 years agoSE/FS: Remove FULL_SYSTEM from swig.
Gabe Black [Mon, 7 Nov 2011 09:06:54 +0000 (01:06 -0800)]
SE/FS: Remove FULL_SYSTEM from swig.

12 years agoSE/FS: Get rid of FULL_SYSTEM in sim.
Gabe Black [Wed, 2 Nov 2011 09:11:14 +0000 (02:11 -0700)]
SE/FS: Get rid of FULL_SYSTEM in sim.

12 years agoSE/FS: Get FULL_SYSTEM out of base/remote_gdb.cc.
Gabe Black [Wed, 2 Nov 2011 08:27:45 +0000 (01:27 -0700)]
SE/FS: Get FULL_SYSTEM out of base/remote_gdb.cc.

12 years agoSE/FS: Get rid of FULL_SYSTEM in the ARM ISA.
Gabe Black [Wed, 2 Nov 2011 08:25:15 +0000 (01:25 -0700)]
SE/FS: Get rid of FULL_SYSTEM in the ARM ISA.

12 years agoSE/FS: Get rid of the last use of FULL_SYSTEM in x86.
Gabe Black [Tue, 1 Nov 2011 11:01:15 +0000 (04:01 -0700)]
SE/FS: Get rid of the last use of FULL_SYSTEM in x86.

12 years agoSE/FS: Get rid of uses of FULL_SYSTEM in Alpha.
Gabe Black [Tue, 1 Nov 2011 11:01:14 +0000 (04:01 -0700)]
SE/FS: Get rid of uses of FULL_SYSTEM in Alpha.

12 years agoSE/FS: Expose the same methods on the CPUs in SE and FS modes.
Gabe Black [Tue, 1 Nov 2011 11:01:13 +0000 (04:01 -0700)]
SE/FS: Expose the same methods on the CPUs in SE and FS modes.

12 years agoSE/FS: Remove the last uses of FULL_SYSTEM from SPARC.
Gabe Black [Mon, 31 Oct 2011 09:58:24 +0000 (02:58 -0700)]
SE/FS: Remove the last uses of FULL_SYSTEM from SPARC.

12 years agoSE/FS: Make the functions available from the TC consistent between SE and FS.
Gabe Black [Mon, 31 Oct 2011 09:58:22 +0000 (02:58 -0700)]
SE/FS: Make the functions available from the TC consistent between SE and FS.

12 years agoSE/FS: Build the solaris object in both SE and FS.
Gabe Black [Mon, 31 Oct 2011 01:52:30 +0000 (18:52 -0700)]
SE/FS: Build the solaris object in both SE and FS.

12 years agoSE/FS: Get rid of FULL_SYSTEM in MIPS.
Gabe Black [Mon, 31 Oct 2011 01:39:38 +0000 (18:39 -0700)]
SE/FS: Get rid of FULL_SYSTEM in MIPS.

12 years agoSE/FS: Compile in system events in SE mode.
Gabe Black [Mon, 31 Oct 2011 00:38:11 +0000 (17:38 -0700)]
SE/FS: Compile in system events in SE mode.

12 years agoSystem: Push boot_cpu_frequency down into the subclasses that actually use it.
Gabe Black [Mon, 31 Oct 2011 00:38:09 +0000 (17:38 -0700)]
System: Push boot_cpu_frequency down into the subclasses that actually use it.

This parameter depends on a number of coincidences to work properly. First,
there must be an array assigned to system called "cpu" even though there's no
parameter called that. Second, the items in the "cpu" array have to have a
"clock" parameter which has a "frequency" member. This is true of the normal
CPUs, but isn't true of the memory tester CPUs. This happened to work before
because the memory tester CPUs were only used in SE mode where this parameter
was being excluded. Since everything is being pulled into a common binary,
this won't work any more. Since the boot_cpu_frequency parameter is only used
by Alpha's Linux System object (and Mips's through copy and paste), the
definition of that parameter is moved down to those objects specifically.

12 years agoSE/FS: Remove the last references to FULL_SYSTEM from POWER.
Gabe Black [Sun, 30 Oct 2011 10:55:24 +0000 (03:55 -0700)]
SE/FS: Remove the last references to FULL_SYSTEM from POWER.

12 years agoX86: Build the same files in SE and FS.
Gabe Black [Sun, 30 Oct 2011 10:06:40 +0000 (03:06 -0700)]
X86: Build the same files in SE and FS.

12 years agoSE/FS: Build syscall_emul.cc in FS mode.
Gabe Black [Sun, 30 Oct 2011 10:06:37 +0000 (03:06 -0700)]
SE/FS: Build syscall_emul.cc in FS mode.

12 years agoSE/FS: Make the system object more consistent between SE and FS.
Gabe Black [Sun, 30 Oct 2011 09:30:55 +0000 (02:30 -0700)]
SE/FS: Make the system object more consistent between SE and FS.

12 years agoX86: Get rid of more uses of FULL_SYSTEM.
Gabe Black [Sun, 30 Oct 2011 07:33:02 +0000 (00:33 -0700)]
X86: Get rid of more uses of FULL_SYSTEM.

12 years agoSE/FS: Make getProcessPtr available in both modes, and get rid of FULL_SYSTEMs.
Gabe Black [Sun, 30 Oct 2011 07:33:02 +0000 (00:33 -0700)]
SE/FS: Make getProcessPtr available in both modes, and get rid of FULL_SYSTEMs.

12 years agoSE/FS: Build the base process class in FS.
Gabe Black [Sun, 30 Oct 2011 07:32:54 +0000 (00:32 -0700)]
SE/FS: Build the base process class in FS.

12 years agoSE/FS: Make some system funcs available in SE and FS.
Gabe Black [Sun, 16 Oct 2011 12:06:40 +0000 (05:06 -0700)]
SE/FS: Make some system funcs available in SE and FS.

12 years agoSE/FS: Include getMemPort in FS.
Gabe Black [Sun, 16 Oct 2011 12:06:40 +0000 (05:06 -0700)]
SE/FS: Include getMemPort in FS.

12 years agoSE/FS: Turn on the page table class in FS.
Gabe Black [Sun, 16 Oct 2011 12:06:40 +0000 (05:06 -0700)]
SE/FS: Turn on the page table class in FS.

12 years agoSE/FS: Build in the tport in FS mode.
Gabe Black [Sun, 16 Oct 2011 12:06:40 +0000 (05:06 -0700)]
SE/FS: Build in the tport in FS mode.

12 years agoSE/FS: Build/expose vport in SE mode.
Gabe Black [Sun, 16 Oct 2011 12:06:39 +0000 (05:06 -0700)]
SE/FS: Build/expose vport in SE mode.

12 years agoSPARC: Build vtophys into SE mode.
Gabe Black [Sun, 16 Oct 2011 12:06:39 +0000 (05:06 -0700)]
SPARC: Build vtophys into SE mode.

12 years agoPower: Add a stub implementation for vtophys in SE and FS.
Gabe Black [Sun, 16 Oct 2011 12:06:39 +0000 (05:06 -0700)]
Power: Add a stub implementation for vtophys in SE and FS.

12 years agoMIPS: Build vtophys in SE mode.
Gabe Black [Sun, 16 Oct 2011 12:06:39 +0000 (05:06 -0700)]
MIPS: Build vtophys in SE mode.

12 years agoARM: Build vtophys in SE mode.
Gabe Black [Sun, 16 Oct 2011 12:06:39 +0000 (05:06 -0700)]
ARM: Build vtophys in SE mode.

12 years agoARM: Turn on the page table walker on ARM in SE mode.
Gabe Black [Sun, 16 Oct 2011 12:06:38 +0000 (05:06 -0700)]
ARM: Turn on the page table walker on ARM in SE mode.

12 years agoAlpha: Turn on vtophys in SE mode.
Gabe Black [Sun, 16 Oct 2011 09:59:53 +0000 (02:59 -0700)]
Alpha: Turn on vtophys in SE mode.

12 years agoCPU: Make physPort and getPhysPort available in SE mode.
Gabe Black [Sun, 16 Oct 2011 09:59:53 +0000 (02:59 -0700)]
CPU: Make physPort and getPhysPort available in SE mode.

12 years agoX86: Build vtophys in SE mode.
Gabe Black [Thu, 13 Oct 2011 09:26:21 +0000 (02:26 -0700)]
X86: Build vtophys in SE mode.

12 years agoX86: Turn on the page table walker in SE mode.
Gabe Black [Thu, 13 Oct 2011 09:22:23 +0000 (02:22 -0700)]
X86: Turn on the page table walker in SE mode.

12 years agoSPARC: Remove the last checks of FULL_SYSTEM.
Gabe Black [Thu, 13 Oct 2011 08:37:19 +0000 (01:37 -0700)]
SPARC: Remove the last checks of FULL_SYSTEM.

12 years agoSPARC: Narrow the scope of #if FULL_SYSTEM in SPARC's faults.
Gabe Black [Thu, 13 Oct 2011 08:11:00 +0000 (01:11 -0700)]
SPARC: Narrow the scope of #if FULL_SYSTEM in SPARC's faults.

12 years agoSPARC: Let the TLB have friends in FS mode.
Gabe Black [Mon, 10 Oct 2011 07:38:57 +0000 (00:38 -0700)]
SPARC: Let the TLB have friends in FS mode.

12 years agoSPARC: Turn on handleIprRead and handleIprWrite in SE in SPARC.
Gabe Black [Mon, 10 Oct 2011 07:31:51 +0000 (00:31 -0700)]
SPARC: Turn on handleIprRead and handleIprWrite in SE in SPARC.

12 years ago[mq]: sefssparcregfile.patch
Gabe Black [Mon, 10 Oct 2011 06:48:27 +0000 (23:48 -0700)]
[mq]: sefssparcregfile.patch

12 years agoInterrupts: Make the IO APIC go get the local APICs.
Gabe Black [Sun, 9 Oct 2011 11:44:02 +0000 (04:44 -0700)]
Interrupts: Make the IO APIC go get the local APICs.

This is so they don't have to declare themselves to the IO APIC and don't have
to have a pointer to the platform object.

12 years agoSE/FS: Build the Interrupt objects in SE mode.
Gabe Black [Sun, 9 Oct 2011 07:15:50 +0000 (00:15 -0700)]
SE/FS: Build the Interrupt objects in SE mode.

12 years agoConfigs: Use connectAllPorts to connect ports for simple-timing-ruby.
Gabe Black [Sun, 9 Oct 2011 06:24:34 +0000 (23:24 -0700)]
Configs: Use connectAllPorts to connect ports for simple-timing-ruby.

12 years agoPorts: Print the port name when a port is used but not attached to anything.
Gabe Black [Sun, 9 Oct 2011 06:24:32 +0000 (23:24 -0700)]
Ports: Print the port name when a port is used but not attached to anything.

12 years agoSE/FS: Put platform pointers in fewer objects.
Gabe Black [Tue, 4 Oct 2011 09:26:03 +0000 (02:26 -0700)]
SE/FS: Put platform pointers in fewer objects.

Not all objects need a platform pointer, and having one creates a dependence
on their being a platform object. This change removes the platform pointer to
from the base device object and moves it into subclasses that actually need
it.

12 years agoSE/FS: Remove System::platform and Platform::intrFrequency.
Gabe Black [Fri, 30 Sep 2011 07:29:07 +0000 (00:29 -0700)]
SE/FS: Remove System::platform and Platform::intrFrequency.

In order for a system object to work in SE mode and FS mode, it has to either
always require a platform object even in SE mode, or get rid of the
requirement all together. Making SE mode carry around unnecessary/unused bits
of FS seems less than ideal, so I decided to go with the second option. The
platform pointer in the System class was used for exactly one purpose, a path
for the Alpha Linux system object to get to the real time clock and read its
frequency so that it could short cut the loops_per_jiffy calculation. There
was also a copy and pasted implementation in MIPS, but since it was only there
because it was there in Alpha I still count that as one use.

This change reverses the mechanism that communicates the RTC frequency so that
the Tsunami platform object pushes it up to the AlphaSystem object. This is
slightly less specific than it could be because really only the
AlphaLinuxSystem uses it. Because the intrFrequency function on the Platform
class was no longer necessary (and unimplemented on anything but Alpha) it was
eliminated.

After this change, a platform will need to have a system, but a system won't
have to have a platform.

12 years agoX86: Remove FULL_SYSTEM from the x86 faults.
Gabe Black [Fri, 30 Sep 2011 07:28:40 +0000 (00:28 -0700)]
X86: Remove FULL_SYSTEM from the x86 faults.

12 years agoSE/FS: Build the devices in SE mode.
Gabe Black [Fri, 30 Sep 2011 07:28:33 +0000 (00:28 -0700)]
SE/FS: Build the devices in SE mode.

12 years agoSE/FS: Use the new FullSystem constant where possible.
Gabe Black [Fri, 30 Sep 2011 07:27:16 +0000 (00:27 -0700)]
SE/FS: Use the new FullSystem constant where possible.

12 years agoO3: Tidy up some DPRINTFs in the LSQ.
Gabe Black [Tue, 27 Sep 2011 07:25:26 +0000 (00:25 -0700)]
O3: Tidy up some DPRINTFs in the LSQ.

12 years agoFaults: Replace calls to genMachineCheckFault with M5PanicFault.
Gabe Black [Tue, 27 Sep 2011 07:24:43 +0000 (00:24 -0700)]
Faults: Replace calls to genMachineCheckFault with M5PanicFault.

12 years agoFaults: Add in generic faults that work like panics, warns, etc.
Gabe Black [Tue, 27 Sep 2011 07:17:09 +0000 (00:17 -0700)]
Faults: Add in generic faults that work like panics, warns, etc.

These faults take varargs to their constructors which they print into a string
and pass to the M5DebugFault base class. They are basically faults wrapped
around panics, faults, warns, and warnonce-es so that they happen only at
commit.

12 years agoFaults: Make the generic faults more consistent between SE and FS.
Gabe Black [Tue, 27 Sep 2011 07:16:33 +0000 (00:16 -0700)]
Faults: Make the generic faults more consistent between SE and FS.

All of the classes will now be available in both modes, and only
GenericPageTableFault will continue to check the mode for conditional
compilation. It uses a process object to handle the fault in SE mode, and
for now those aren't available in FS mode.

12 years agoISA parser: Use '_' instead of '.' to delimit type modifiers on operands.
Gabe Black [Tue, 27 Sep 2011 06:48:54 +0000 (23:48 -0700)]
ISA parser: Use '_' instead of '.' to delimit type modifiers on operands.

By using an underscore, the "." is still available and can unambiguously be
used to refer to members of a structure if an operand is a structure, class,
etc. This change mostly just replaces the appropriate "."s with "_"s, but
there were also a few places where the ISA descriptions where handling the
extensions themselves and had their own regular expressions to update. The
regular expressions in the isa parser were updated as well. It also now
looks for one of the defined type extensions specifically after connecting "_"
where before it would look for any sequence of characters after a "."
following an operand name and try to use it as the extension. This helps to
disambiguate cases where a "_" may legitimately be part of an operand name but
not separate the name from the type suffix.

Because leaving the "_" and suffix on the variable name still leaves a valid
C++ identifier and all extensions need to be consistent in a given context, I
considered leaving them on as a breadcrumb that would show what the intended
type was for that operand. Unfortunately the operands can be referred to in
code templates, the Mem operand in particular, and since the exact type of Mem
can be different for different uses of the same template, that broke things.

12 years agoLSQ: Moved a couple of lines to enable O3 + Ruby
Nilay Vaish [Mon, 26 Sep 2011 17:18:32 +0000 (12:18 -0500)]
LSQ: Moved a couple of lines to enable O3 + Ruby
This patch makes O3 CPU work along with the Ruby memory model. Ruby
overwrites the senderState pointer with another pointer. The pointer
is restored only when Ruby gets done with the packet. LSQ makes use of
senderState just after sendTiming() returns. But the dynamic_cast returns
a NULL pointer since Ruby's senderState pointer is from a different class.
Storing the senderState pointer before calling sendTiming() does away with
the problem.

12 years agoSE/FS: Define a const bool FullSystem which will equal FULL_SYSTEM.
Gabe Black [Mon, 26 Sep 2011 09:09:04 +0000 (02:09 -0700)]
SE/FS: Define a const bool FullSystem which will equal FULL_SYSTEM.

This constant will have the same value as FULL_SYSTEM but will not be usable
by the preprocessor. It can be substituted into places where FULL_SYSTEM is
used in a C++ context and will make it easier to find which parts of the
simulator still use FULL_SYSTEM with the preprocessor using grep.

12 years agoSCons: Add a comment I forgot to add in earlier.
Gabe Black [Sun, 25 Sep 2011 00:03:18 +0000 (17:03 -0700)]
SCons: Add a comment I forgot to add in earlier.

This comment was supposed to be added to an earlier change as part of review
feedback, but I accidentally left it out when I pushed. Add it in now.

12 years agoSCons: Make the ISA parser a source for its output files like the comments say.
Gabe Black [Sat, 24 Sep 2011 23:59:11 +0000 (16:59 -0700)]
SCons: Make the ISA parser a source for its output files like the comments say.

There was a change a while ago that refactored some scons stuff which got rid
of cpu_models.py but also accidentally got rid of the ISA parser as a source
for its target files. That meant that changes which affected the parser
wouldn't cause a rebuild unless they also changed one of the description
files. This change fixes that.

12 years agostyle.py: don't die on empty files
Steve Reinhardt [Sat, 24 Sep 2011 15:12:26 +0000 (08:12 -0700)]
style.py: don't die on empty files

12 years agoX86: Move the MSR lookup table out of the TLB and into its own file.
Gabe Black [Fri, 23 Sep 2011 09:42:22 +0000 (02:42 -0700)]
X86: Move the MSR lookup table out of the TLB and into its own file.

Translating MSR addresses into MSR register indices took a lot of space in the
TLB source and made looking around in that file awkward. This change moves
the lookup into its own file to get it out of the way. It also changes it from
a switch statement to a hash map which should hopefully be a little more
efficient.

12 years agoevent: minor cleanup
Steve Reinhardt [Fri, 23 Sep 2011 01:59:55 +0000 (18:59 -0700)]
event: minor cleanup
Initialize flags via the Event constructor instead of calling
setFlags() in the body of the derived class's constructor.  I
forget exactly why, but this made life easier when implementing
multi-queue support.

Also rename Event::getFlags() to isFlagSet() to better match
common usage, and get rid of some unused Event methods.

12 years agopseudo_inst: clean up workbegin/workend functions
Steve Reinhardt [Fri, 23 Sep 2011 01:59:54 +0000 (18:59 -0700)]
pseudo_inst: clean up workbegin/workend functions
Use exitSimLoop() function instead of explicitly scheduling
on mainEventQueue (which won't work once we go to multiple
event queues).  Also introduced a local params variable to
shorten a lot of expressions.

12 years agoparams.py: enhance IpAddress param handling
Steve Reinhardt [Fri, 23 Sep 2011 01:58:14 +0000 (18:58 -0700)]
params.py: enhance IpAddress param handling

Print IpAddress params in dot notation for readability.
Properly compare IpAddress objects (by value and not object identity).
Also fix up derived param classes (IpNetmask and IpWithPort)
similarly.

12 years agoMIPS: Final overhaul of MIPS faults to kill #if FULL_SYSTEM
Gabe Black [Mon, 19 Sep 2011 13:17:21 +0000 (06:17 -0700)]
MIPS: Final overhaul of MIPS faults to kill #if FULL_SYSTEM

This change is a significant reorganization of the MIPS fault code that gets
rid of duplication, fixes some bugs, doubtlessly introduces others, and adds
names for the exception code constants.

12 years agoMIPS, faults: Update how the PC is set.
Gabe Black [Mon, 19 Sep 2011 13:17:21 +0000 (06:17 -0700)]
MIPS, faults: Update how the PC is set.

12 years agoMIPS: Get rid of skipFaultInstruction and setRestartAddress.
Gabe Black [Mon, 19 Sep 2011 13:17:21 +0000 (06:17 -0700)]
MIPS: Get rid of skipFaultInstruction and setRestartAddress.

Neither of these functions were used.

12 years agoMIPS: Use inheritance to consolidate class definitions.
Gabe Black [Mon, 19 Sep 2011 13:17:21 +0000 (06:17 -0700)]
MIPS: Use inheritance to consolidate class definitions.

12 years agoMIPS: Always compile in setExceptionState, including in SE mode.
Gabe Black [Mon, 19 Sep 2011 13:17:21 +0000 (06:17 -0700)]
MIPS: Always compile in setExceptionState, including in SE mode.

Also fix the newly exposed and preexisting compile errors. This code hasn't
been exposed in a while, and it's not up to date with the rest of gem5.

12 years agoMIPS: Consolidate TLB related faults.
Gabe Black [Mon, 19 Sep 2011 13:17:20 +0000 (06:17 -0700)]
MIPS: Consolidate TLB related faults.

Pass in a bool to indicate if the fault is from a store instead of having two
different classes. The classes were also misleadingly named since loads are
also processed by the DTB but should return ITB faults since they aren't
stores. The TLB may be returning the wrong fault in this case, but I haven't
looked at it closely.

12 years agoMIPS: Get rid of the unused "count" field in FaultVals.
Gabe Black [Mon, 19 Sep 2011 13:17:20 +0000 (06:17 -0700)]
MIPS: Get rid of the unused "count" field in FaultVals.

12 years agoMIPS: Move the genMachineCheckFault function near MachineCheckFault.
Gabe Black [Mon, 19 Sep 2011 13:17:20 +0000 (06:17 -0700)]
MIPS: Move the genMachineCheckFault function near MachineCheckFault.

Since they're so closely linked, they should be next to each other in the
file.

12 years agoMIPS: Consolidate the two AddressErrorFault variants.
Gabe Black [Mon, 19 Sep 2011 13:17:20 +0000 (06:17 -0700)]
MIPS: Consolidate the two AddressErrorFault variants.

12 years agoFaults: Get rid of the unused isAlignmentFault and isMachineCheckFault.
Gabe Black [Mon, 19 Sep 2011 13:17:20 +0000 (06:17 -0700)]
Faults: Get rid of the unused isAlignmentFault and isMachineCheckFault.

These functions aren't called anywhere and are probably only theoretically
useful.

12 years agoMIPS: Get rid of cruft in the fault classes.
Gabe Black [Mon, 19 Sep 2011 13:17:19 +0000 (06:17 -0700)]
MIPS: Get rid of cruft in the fault classes.

Get rid of Fault classes left over from when this file was copied from Alpha,
and rename ArithmeticOverflowFault to be IntegerOverflowFault and get rid of
the old IntegerOverflowFault stub. The Integer version is what's actually in
the manual, but the Arithmetic version had the implementation.

12 years agoMIPS: Add constructors to the fault classes.
Gabe Black [Mon, 19 Sep 2011 13:17:19 +0000 (06:17 -0700)]
MIPS: Add constructors to the fault classes.

12 years agoMIPS: Use the CRTP to streamline the Fault class definitions.
Gabe Black [Mon, 19 Sep 2011 13:17:19 +0000 (06:17 -0700)]
MIPS: Use the CRTP to streamline the Fault class definitions.

CRTP stands for the curiously recurring template pattern.

12 years agoSPARC: Remove #if FULL_SYSTEMs from the ISA description.
Gabe Black [Mon, 19 Sep 2011 13:17:19 +0000 (06:17 -0700)]
SPARC: Remove #if FULL_SYSTEMs from the ISA description.

12 years agoMIPS: Get rid of #if style config checks in the ISA description.
Gabe Black [Mon, 19 Sep 2011 13:14:02 +0000 (06:14 -0700)]
MIPS: Get rid of #if style config checks in the ISA description.

12 years agoMIPS: Guard SystemCallFault::invoke consistently.
Gabe Black [Mon, 19 Sep 2011 13:09:15 +0000 (06:09 -0700)]
MIPS: Guard SystemCallFault::invoke consistently.

Make sure it's declared iff it's also defined.

12 years agoMIPS: Get rid of the unused (and partially defined) CacheError fault.
Gabe Black [Mon, 19 Sep 2011 12:53:54 +0000 (05:53 -0700)]
MIPS: Get rid of the unused (and partially defined) CacheError fault.

12 years agoEndianness: Make it easier to check the compiled in guest endianness.
Gabe Black [Mon, 19 Sep 2011 12:19:45 +0000 (05:19 -0700)]
Endianness: Make it easier to check the compiled in guest endianness.

It was technically possible but clumsy to determine what endianness a guest
was configured with using the state in byteswap.hh. This change makes that
information available more directly.

Also get rid of unused (and mildly redundant) ByteOrderDiffers constant.

12 years agoAlpha: Get rid of some #if FULL_SYSTEMs in the Alpha ISA description.
Gabe Black [Mon, 19 Sep 2011 10:40:30 +0000 (03:40 -0700)]
Alpha: Get rid of some #if FULL_SYSTEMs in the Alpha ISA description.

The remaining ones are more complicated and may require adjustments in other
parts of the simulator.

12 years agoPseudoInst: Make all the pseudo insts available in SE and FS.
Gabe Black [Mon, 19 Sep 2011 10:39:58 +0000 (03:39 -0700)]
PseudoInst: Make all the pseudo insts available in SE and FS.

12 years agoX86: Don't use "#if FULL_SYSTEM" in the X86 ISA description.
Gabe Black [Mon, 19 Sep 2011 09:53:37 +0000 (02:53 -0700)]
X86: Don't use "#if FULL_SYSTEM" in the X86 ISA description.

The decoder now checks the value of FULL_SYSTEM in a switch statement to
decide whether to return a real syscall instruction or one that triggers
syscall emulation (or a panic in FS mode). The switch statement should devolve
into an if, and also should be optimized out since it's based on constant
input.

12 years agoSyscall: Make the syscall function available in both SE and FS modes.
Gabe Black [Mon, 19 Sep 2011 09:46:48 +0000 (02:46 -0700)]
Syscall: Make the syscall function available in both SE and FS modes.

In FS mode the syscall function will panic, but the interface will be
consistent and code which calls syscall can be compiled in. This will allow,
for instance, instructions that use syscall to be built unconditionally but
then not returned by the decoder.

12 years agoPseudoInst: Remove the now unnecessary #if FULL_SYSTEMs around pseudoinsts.
Gabe Black [Mon, 19 Sep 2011 09:40:19 +0000 (02:40 -0700)]
PseudoInst: Remove the now unnecessary #if FULL_SYSTEMs around pseudoinsts.

12 years agoPseudoinst: Add an initParam pseudo inst function.
Gabe Black [Mon, 19 Sep 2011 06:26:39 +0000 (23:26 -0700)]
Pseudoinst: Add an initParam pseudo inst function.

12 years agoMIPS: Fix regressions tests
Ali Saidi [Sat, 17 Sep 2011 16:34:03 +0000 (12:34 -0400)]
MIPS: Fix regressions tests

12 years agoIGbE: Clean up debug printing and proprly account for copied bytes.
Ali Saidi [Tue, 13 Sep 2011 17:06:13 +0000 (12:06 -0500)]
IGbE: Clean up debug printing and proprly account for copied bytes.

Some DPRINTFs were printing uninitalized values because the DPRINTFs were
always being printed even when the features they were printing weren't
being used. This change moves the DPRINTFs into the appropriate if blocks
and initializes the state variables correctly.

There also is a case where the offset into the packet could be calculated
incorrectly during a DMA that is fixed.

12 years agoARM: update TLB to set request packet ASID field
Daniel Johnson [Tue, 13 Sep 2011 17:06:13 +0000 (12:06 -0500)]
ARM: update TLB to set request packet ASID field

12 years agoMem: Allow ASID to be set after request is created.
Daniel Johnson [Tue, 13 Sep 2011 17:06:13 +0000 (12:06 -0500)]
Mem: Allow ASID to be set after request is created.

12 years agoCP15 c15: enable execution with accesses to c15 registers
Chander Sudanthi [Tue, 13 Sep 2011 17:06:13 +0000 (12:06 -0500)]
CP15 c15: enable execution with accesses to c15 registers

Previously, coprocessor accesses to CP15 c15 would fault.  This patch
enables accesses but prints out a warning, as the registers are not implemented.