Gabe Black [Mon, 10 Nov 2008 05:55:43 +0000 (21:55 -0800)]
X86: Fix completeAcc get call.
Gabe Black [Mon, 10 Nov 2008 05:55:01 +0000 (21:55 -0800)]
X86: Make the timing simple CPU handle variable length instructions.
Steve Reinhardt [Fri, 7 Nov 2008 04:23:05 +0000 (20:23 -0800)]
tracediff: add '#' support for sub-arg alternatives, '-n' param
Lisa Hsu [Thu, 6 Nov 2008 16:11:50 +0000 (11:11 -0500)]
Automated merge with ssh://daystrom.m5sim.org//repo/m5
Lisa Hsu [Thu, 6 Nov 2008 16:11:42 +0000 (11:11 -0500)]
Reference updates. Since split cache is gone, a lot of config.ini changes, and minor changes to stats that are likely due to the decoupling of insertions/evictions in the cache.
Lisa Hsu [Wed, 5 Nov 2008 23:12:21 +0000 (18:12 -0500)]
Automated merge with ssh://m5sim.org//repo/m5
Lisa Hsu [Wed, 5 Nov 2008 23:10:30 +0000 (18:10 -0500)]
new mp eio test
Lisa Hsu [Wed, 5 Nov 2008 21:19:17 +0000 (16:19 -0500)]
Fix SPARC_FS compile
Lisa Hsu [Wed, 5 Nov 2008 20:30:49 +0000 (15:30 -0500)]
Right now a single thread cpu 1 could get assigned context Id != 1, depending
on the order in which it's registered with the system. To make them match,
here is a little change.
Nathan Binkert [Wed, 5 Nov 2008 15:20:03 +0000 (07:20 -0800)]
Fix a few more places where the context stuff wasn't changed
Lisa Hsu [Tue, 4 Nov 2008 16:35:58 +0000 (11:35 -0500)]
decouple eviction from insertion in the cache.
Lisa Hsu [Tue, 4 Nov 2008 16:35:57 +0000 (11:35 -0500)]
Change the findBlock(addr, lat) to accessBlock, which I think has better connotations for what is really happening and how it should be used.
Lisa Hsu [Tue, 4 Nov 2008 16:35:42 +0000 (11:35 -0500)]
get rid of all instances of readTid() and getThreadNum(). Unify and eliminate
redundancies with threadId() as their replacement.
Lisa Hsu [Mon, 3 Nov 2008 02:57:07 +0000 (21:57 -0500)]
Add in Context IDs to the simulator. From now on, cpuId is almost never used,
the primary identifier for a hardware context should be contextId(). The
concept of threads within a CPU remains, in the form of threadId() because
sometimes you need to know which context within a cpu to manipulate.
Lisa Hsu [Mon, 3 Nov 2008 02:57:06 +0000 (21:57 -0500)]
Make it so that all thread contexts are registered with the System, even in
SE. Process still keeps track of the tc's it owns, but registration occurs
with the System, this eases the way for system-wide context Ids based on
registration.
Lisa Hsu [Mon, 3 Nov 2008 02:56:57 +0000 (21:56 -0500)]
make BaseCPU the provider of _cpuId, and cpuId() instead of being scattered
across the subclasses. generally make it so that member data is _cpuId and
accessor functions are cpuId(). The ID val comes from the python (default -1 if
none provided), and if it is -1, the index of cpuList will be given. this has
passed util/regress quick and se.py -n4 and fs.py -n4 as well as standard
switch.
Ali Saidi [Wed, 29 Oct 2008 01:13:21 +0000 (21:13 -0400)]
Libelf: Append options to CCFLAGS for warning free libelf compile instead of deleting CCFLAGS. Should fix 64bit OS X compile problem.
Clint Smullen [Mon, 27 Oct 2008 22:18:04 +0000 (18:18 -0400)]
CPU: The API change to EventWrapper did not get propagated to the entirety of TimingSimpleCPU.
The constructor no-longer schedules an event at construction and the implict conversion between int and bool was allowing the old code to compile without warning.
Signed-off By: Ali Saidi
Clint Smullen [Mon, 27 Oct 2008 23:46:01 +0000 (19:46 -0400)]
Checkpointing: createCountedDrain function, it was only returning an Event, which does not expose a setCount method to Python.
Signed-off By: Ali Saidi
Ali Saidi [Sun, 26 Oct 2008 18:45:47 +0000 (14:45 -0400)]
BATCH: Run as, ar, and ranlib with BATCH_CMD so that they execute on the batch hosts, not local host.
Lisa Hsu [Thu, 23 Oct 2008 20:49:17 +0000 (16:49 -0400)]
s/cpu_id/cpuId in o3 (to be consistent and match style), also fix some typos in
comments.
Lisa Hsu [Thu, 23 Oct 2008 20:49:13 +0000 (16:49 -0400)]
probe function no longer used anywhere.
Lisa Hsu [Thu, 23 Oct 2008 20:11:28 +0000 (16:11 -0400)]
remove the totally obsolete split cache
Nathan Binkert [Tue, 21 Oct 2008 14:12:53 +0000 (07:12 -0700)]
style: Use the correct m5 style for things relating to interrupts.
Ali Saidi [Mon, 20 Oct 2008 23:00:07 +0000 (19:00 -0400)]
Regression: Add single and dual boot O3 regressions. They both take about 8 minutes to complete.
Ali Saidi [Mon, 20 Oct 2008 20:22:59 +0000 (16:22 -0400)]
O3CPU: Undo Gabe's changes to remove hwrei and simpalcheck from O3 CPU. Removing hwrei causes
the instruction after the hwrei to be fetched before the ITB/DTB_CM register is updated in a call pal
call sys and thus the translation fails because the user is attempting to access a super page address.
Minimally, it seems as though some sort of fetch stall or refetch after a hwrei is required. I think
this works currently because the hwrei uses the exec context interface, and the o3 stalls when that occurs.
Additionally, these changes don't update the LOCK register and probably break ll/sc. Both o3 changes were
removed since a great deal of manual patching would be required to only remove the hwrei change.
Lisa Hsu [Mon, 20 Oct 2008 02:50:53 +0000 (22:50 -0400)]
Automated merge with ssh://daystrom.m5sim.org//z/repo/m5
Nathan Binkert [Fri, 17 Oct 2008 05:22:47 +0000 (22:22 -0700)]
need to add packet_access.hh in order to get tempalte definition
Nathan Binkert [Fri, 17 Oct 2008 05:22:17 +0000 (22:22 -0700)]
get rid of local variable that's only used in an assert so fast compiles
Lisa Hsu [Thu, 16 Oct 2008 18:16:26 +0000 (14:16 -0400)]
Automated merge with ssh://daystrom.m5sim.org//z/repo/m5
Lisa Hsu [Tue, 14 Oct 2008 21:22:03 +0000 (17:22 -0400)]
This function declaration isn't used anywhere.
HG: user: Lisa Hsu <hsul@eecs.umich.edu> HG: branch default HG: changed
src/mem/cache/cache.hh
Nathan Binkert [Tue, 14 Oct 2008 16:34:11 +0000 (09:34 -0700)]
eventq: make python events actually work
Nathan Binkert [Tue, 14 Oct 2008 16:33:52 +0000 (09:33 -0700)]
eventq: revert code for unserializing events.
Since I never implemented a proper solution, put it back to something that
at least works for now. Once I add more event queues, I'll have to really
fix this though
Gabe Black [Mon, 13 Oct 2008 06:52:02 +0000 (23:52 -0700)]
CPU: Explain why some code is commented out.
Gabe Black [Mon, 13 Oct 2008 06:50:22 +0000 (23:50 -0700)]
Get rid of some commented out code.
Gabe Black [Mon, 13 Oct 2008 06:29:10 +0000 (23:29 -0700)]
X86: Set the delayed commit flag in x86 microops appropriately.
Gabe Black [Mon, 13 Oct 2008 06:28:49 +0000 (23:28 -0700)]
X86: Make the local APIC timer event generate an interrupt.
Gabe Black [Mon, 13 Oct 2008 06:28:11 +0000 (23:28 -0700)]
X86: Implement the EOI register in the local APIC.
Gabe Black [Mon, 13 Oct 2008 06:27:45 +0000 (23:27 -0700)]
X86: Add some DPRINTFs to the local APIC.
Gabe Black [Mon, 13 Oct 2008 06:27:08 +0000 (23:27 -0700)]
X86: Make auto eoi mode work in the I8259 PIC.
Gabe Black [Mon, 13 Oct 2008 06:25:48 +0000 (23:25 -0700)]
X86: Make non-specific EOI commands work.
Gabe Black [Mon, 13 Oct 2008 06:22:58 +0000 (23:22 -0700)]
X86: Make the I8259 PIC accept a specific EOI command.
Gabe Black [Mon, 13 Oct 2008 06:05:22 +0000 (23:05 -0700)]
X86: Fix the segment setting code in IRET, and make it restore the flags.
Gabe Black [Mon, 13 Oct 2008 06:00:28 +0000 (23:00 -0700)]
X86: Panic when an unimplemented fault is invoked, rather than spinning forever
Gabe Black [Mon, 13 Oct 2008 06:00:07 +0000 (23:00 -0700)]
X86: Implement the swapgs instruction.
Gabe Black [Mon, 13 Oct 2008 05:55:55 +0000 (22:55 -0700)]
X86: Add wrval/rdval microops for reading significant miscregs.
Gabe Black [Mon, 13 Oct 2008 05:42:10 +0000 (22:42 -0700)]
X86: Make the x86 interrupt fault kick off the interrupt microcode.
Gabe Black [Mon, 13 Oct 2008 05:42:03 +0000 (22:42 -0700)]
X86: Implement entering an interrupt in microcode.
Gabe Black [Mon, 13 Oct 2008 05:24:06 +0000 (22:24 -0700)]
X86: Make sure register microops set fault rather than returning one.
Gabe Black [Mon, 13 Oct 2008 05:16:53 +0000 (22:16 -0700)]
X86: Implement an wrdh microop which loads bases/offsets from 16 byte descriptors.
Gabe Black [Mon, 13 Oct 2008 03:48:24 +0000 (20:48 -0700)]
X86: Make the MicroPC type 16 bit.
Gabe Black [Mon, 13 Oct 2008 03:44:11 +0000 (20:44 -0700)]
X86: Implement local labels for the ROM that actually refer into the ROM.
Gabe Black [Mon, 13 Oct 2008 03:38:22 +0000 (20:38 -0700)]
X86: Implement the chks check of interrupt gate target code segments.
Gabe Black [Mon, 13 Oct 2008 03:33:37 +0000 (20:33 -0700)]
X86: Add a check type for interrupt gates.
Gabe Black [Mon, 13 Oct 2008 03:29:52 +0000 (20:29 -0700)]
X86: Fix chks checking the submode for stack segments.
Gabe Black [Mon, 13 Oct 2008 03:25:06 +0000 (20:25 -0700)]
X86: Let segment manipulation microops be conditional.
Gabe Black [Mon, 13 Oct 2008 03:17:38 +0000 (20:17 -0700)]
X86: Let the microassembler know about the microcode only H segment.
Gabe Black [Mon, 13 Oct 2008 03:07:46 +0000 (20:07 -0700)]
X86: Fix the rdbase microop
Gabe Black [Mon, 13 Oct 2008 02:32:06 +0000 (19:32 -0700)]
X86: Don't fetch in the simple CPU if you're in the ROM.
Gabe Black [Mon, 13 Oct 2008 00:57:46 +0000 (17:57 -0700)]
Get rid of old RegContext code.
Gabe Black [Mon, 13 Oct 2008 00:52:51 +0000 (17:52 -0700)]
X86: Create a handy way to access labels from the ROM in microcode.
Gabe Black [Mon, 13 Oct 2008 00:48:44 +0000 (17:48 -0700)]
X86: Make X86's microcode ROM actually do something.
Gabe Black [Sun, 12 Oct 2008 23:59:55 +0000 (16:59 -0700)]
CPU: Make the highest order bit in the micro pc determine if it's combinational or from the ROM.
Gabe Black [Sun, 12 Oct 2008 22:59:21 +0000 (15:59 -0700)]
CPU: Create a microcode ROM object in the CPU which is defined by the ISA.
Gabe Black [Sun, 12 Oct 2008 22:53:04 +0000 (15:53 -0700)]
X86: Create an eret microop which returns from ROM to combinational decoding.
Gabe Black [Sun, 12 Oct 2008 22:43:35 +0000 (15:43 -0700)]
X86: Make Br never report itself as the last microop.
Gabe Black [Sun, 12 Oct 2008 22:33:17 +0000 (15:33 -0700)]
X86: Create a SeqOp class of microops and make Br one of them.
Gabe Black [Sun, 12 Oct 2008 22:31:37 +0000 (15:31 -0700)]
X86: Update the stats for cpuid's new implementation
Gabe Black [Sun, 12 Oct 2008 22:31:28 +0000 (15:31 -0700)]
X86: Implement CPUID with a magical function instead of microcode.
Gabe Black [Sun, 12 Oct 2008 21:01:06 +0000 (14:01 -0700)]
X86: Fix the ordering of special physical address ranges.
Gabe Black [Sun, 12 Oct 2008 20:54:57 +0000 (13:54 -0700)]
X86: Create a mechanism for the IO APIC to access I8259 vectors.
Gabe Black [Sun, 12 Oct 2008 20:51:48 +0000 (13:51 -0700)]
X86: Actually use the extra vector bits we get from ICW2.
Gabe Black [Sun, 12 Oct 2008 20:45:21 +0000 (13:45 -0700)]
X86: Make the local APIC process interrupts and send them to the CPU.
Gabe Black [Sun, 12 Oct 2008 20:44:24 +0000 (13:44 -0700)]
X86: Make the local APIC handle interrupt messages from the IO APIC.
Gabe Black [Sun, 12 Oct 2008 20:35:26 +0000 (13:35 -0700)]
X86: Change the default value for the IO APIC redirection table.
Gabe Black [Sun, 12 Oct 2008 20:29:26 +0000 (13:29 -0700)]
X86: Make the bases for x86 fault class public.
Gabe Black [Sun, 12 Oct 2008 20:28:54 +0000 (13:28 -0700)]
X86: Make APICs communicate through the memory system.
Gabe Black [Sun, 12 Oct 2008 19:08:51 +0000 (12:08 -0700)]
Create a message port for sending messages as apposed to reading/writing a memory range.
Gabe Black [Sun, 12 Oct 2008 19:07:25 +0000 (12:07 -0700)]
X86: Add a LocalApic trace flag.
Gabe Black [Sun, 12 Oct 2008 18:08:00 +0000 (11:08 -0700)]
X86: Make the local APIC accessible through the memory system directly, and make the timer work.
Gabe Black [Sun, 12 Oct 2008 16:09:56 +0000 (09:09 -0700)]
Turn Interrupts objects into SimObjects. Also, move local APIC state into x86's Interrupts object.
Gabe Black [Sun, 12 Oct 2008 15:24:09 +0000 (08:24 -0700)]
CPU: Eliminate the get_vec function.
Gabe Black [Sat, 11 Oct 2008 23:13:58 +0000 (16:13 -0700)]
CPU: Add a getInterruptController function
Gabe Black [Sat, 11 Oct 2008 23:12:34 +0000 (16:12 -0700)]
X86: Add entries for the IO APIC to the MP table.
Gabe Black [Sat, 11 Oct 2008 23:08:14 +0000 (16:08 -0700)]
X86: Create an IO APIC device.
Gabe Black [Sat, 11 Oct 2008 22:15:34 +0000 (15:15 -0700)]
X86: Set up a mechanism for the I8254 timer to cause interrupts.
Gabe Black [Sat, 11 Oct 2008 22:14:37 +0000 (15:14 -0700)]
X86: Add an Intel MP table to the simulation.
Gabe Black [Sat, 11 Oct 2008 19:17:24 +0000 (12:17 -0700)]
CPU: Eliminate the simPalCheck funciton.
Gabe Black [Sat, 11 Oct 2008 09:27:21 +0000 (02:27 -0700)]
CPU: Eliminate the hwrei function.
Gabe Black [Sat, 11 Oct 2008 09:23:40 +0000 (02:23 -0700)]
X86: Rename the PC device to Pc.
--HG--
rename : src/dev/x86/PC.py => src/dev/x86/Pc.py
Gabe Black [Sat, 11 Oct 2008 09:21:44 +0000 (02:21 -0700)]
X86: Bring the South Bridge device into dev/x86 and get rid of south_bridge directory.
--HG--
rename : src/dev/x86/south_bridge/SouthBridge.py => src/dev/x86/SouthBridge.py
rename : src/dev/x86/south_bridge/south_bridge.cc => src/dev/x86/south_bridge.cc
rename : src/dev/x86/south_bridge/south_bridge.hh => src/dev/x86/south_bridge.hh
Gabe Black [Sat, 11 Oct 2008 09:16:11 +0000 (02:16 -0700)]
X86: Change I8254 and PCSpeaker devices from subdevices to SimObjects and eliminate subdevices.
--HG--
rename : src/dev/x86/south_bridge/i8254.cc => src/dev/x86/i8254.cc
rename : src/dev/x86/south_bridge/i8254.hh => src/dev/x86/i8254.hh
rename : src/dev/x86/south_bridge/speaker.cc => src/dev/x86/speaker.cc
rename : src/dev/x86/south_bridge/speaker.hh => src/dev/x86/speaker.hh
Gabe Black [Sat, 11 Oct 2008 08:49:39 +0000 (01:49 -0700)]
Devices: Make the Intel8254Timer device only use pointers to its counters.
Gabe Black [Sat, 11 Oct 2008 08:45:25 +0000 (01:45 -0700)]
X86: Make the CMOS and I8259 devices use IntDev and IntPin.
Gabe Black [Sat, 11 Oct 2008 08:37:04 +0000 (01:37 -0700)]
X86: Create the IntDev and IntPin system.
The IntDev class is a base for anything that supports IntPins. IntPins allow
devices to generically trigger interrupts on a particular pin of an IntDev
device without having to know what the device is or what pin they're attached
to.
Gabe Black [Sat, 11 Oct 2008 08:31:32 +0000 (01:31 -0700)]
X86: Hook the CMOS device to the I8259 PICs.
Gabe Black [Sat, 11 Oct 2008 08:28:35 +0000 (01:28 -0700)]
X86: Make the I8259 decipher the commands it's given, and add some of it's registers.
Gabe Black [Sat, 11 Oct 2008 08:22:20 +0000 (01:22 -0700)]
X86: Change the I8259 from a subdevice into a real SimObject.
--HG--
rename : src/dev/x86/south_bridge/i8259.cc => src/dev/x86/i8259.cc
rename : src/dev/x86/south_bridge/i8259.hh => src/dev/x86/i8259.hh
Gabe Black [Sat, 11 Oct 2008 08:13:11 +0000 (01:13 -0700)]
X86: Change the CMOS from a sub-device to a real SimObject
--HG--
rename : src/dev/x86/south_bridge/cmos.cc => src/dev/x86/cmos.cc
rename : src/dev/x86/south_bridge/cmos.hh => src/dev/x86/cmos.hh
Gabe Black [Sat, 11 Oct 2008 06:47:42 +0000 (23:47 -0700)]
TLB: Make all tlbs derive from a common base class in both python and C++.