gem5.git
17 years agoMerge zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace
Gabe Black [Sun, 11 Mar 2007 01:52:55 +0000 (20:52 -0500)]
Merge zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace
into  zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace-test

--HG--
extra : convert_revision : dc02bb6b4e5cc7f0260da80a71b9713f75566a29

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Sun, 11 Mar 2007 00:52:53 +0000 (19:52 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace

--HG--
extra : convert_revision : 6a8749be327bf2be888850060ae0427f0c943439

17 years agoFix bounds check for the cwp
Gabe Black [Sun, 11 Mar 2007 00:29:31 +0000 (19:29 -0500)]
Fix bounds check for the cwp

--HG--
extra : convert_revision : 097e6b0c80d71417329b2a4cd118046aa5ed777a

17 years agoAdded implementations of the fpop2 instructions.
Gabe Black [Sun, 11 Mar 2007 00:26:54 +0000 (19:26 -0500)]
Added implementations of the fpop2 instructions.

--HG--
extra : convert_revision : 1fc88b499334bb4ba44375347d0062843587b6cf

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Sat, 10 Mar 2007 22:46:25 +0000 (17:46 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace-test

--HG--
extra : convert_revision : df36efd84d938e0e402648b85b3732ed786aaa29

17 years agoIf you can't get rid of the files you want to make sure are gone, assume they're...
Gabe Black [Sat, 10 Mar 2007 22:45:53 +0000 (17:45 -0500)]
If you can't get rid of the files you want to make sure are gone, assume they're already gone. Print a warning and move on.

--HG--
extra : convert_revision : 192740b1e1a7a30222c4e79c7e7a5770e682f014

17 years agoCompilation fix
Gabe Black [Sat, 10 Mar 2007 20:21:55 +0000 (15:21 -0500)]
Compilation fix

--HG--
extra : convert_revision : 8bfa5e9408d1ead0197aab5078c248876f90ea7a

17 years agoI thought this code got deleted, but since it hasn't I've moved it to a place where...
Ali Saidi [Sat, 10 Mar 2007 20:00:41 +0000 (15:00 -0500)]
I thought this code got deleted, but since it hasn't I've moved it to a place where it doesn't access freed memory.

--HG--
extra : convert_revision : 4d9023f6193004a3e9cbeebd3721bccb50b2aab0

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Fri, 9 Mar 2007 23:32:13 +0000 (18:32 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace

--HG--
extra : convert_revision : 82a956ffc1bedb2c0d05c4ea3469f843f559a475

17 years agoUse the TheISA namespace in case we're coming from a file that doesn't do that for...
Gabe Black [Fri, 9 Mar 2007 22:14:25 +0000 (22:14 +0000)]
Use the TheISA namespace in case we're coming from a file that doesn't do that for us. This should be contained in the scope of the function and not leak elsewhere.

--HG--
extra : convert_revision : 0bb0e1457011505a99a871c443bc45f4365e9c7e

17 years agoSplit the syscall table, SPARC specific syscall implementations, and the 32 bit sysca...
Gabe Black [Fri, 9 Mar 2007 22:14:24 +0000 (17:14 -0500)]
Split the syscall table, SPARC specific syscall implementations, and the 32 bit syscall table into it's own file. Corrected problems with the stat structure. These should be tested on 64 bit x86 and SPARC machines.

--HG--
extra : convert_revision : 5d9fe19e031b92e111069c6b89c3dbeb29975b8a

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Fri, 9 Mar 2007 21:56:52 +0000 (16:56 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : 5804298706ac0f04fbe491326af71ce9ab74425a

17 years agoimplement ipi stufff for SPARC
Ali Saidi [Fri, 9 Mar 2007 21:56:39 +0000 (16:56 -0500)]
implement ipi stufff for SPARC

src/arch/alpha/utility.hh:
src/arch/mips/utility.hh:
src/arch/sparc/utility.hh:
src/arch/x86/utility.hh:
    add hook for system to startup the cpu or not... in the case of FS sparc, only the first cpu would get spunup.. the rest sit in an idle state until they get an ipi
src/arch/sparc/isa/decoder.isa:
    handle writable bits of strandstatus register in miscregfile
src/arch/sparc/miscregfile.hh:
    some constants for the strand status register
src/arch/sparc/ua2005.cc:
    properly implement the strand status register
src/dev/sparc/iob.cc:
    implement ipi generation properly
src/sim/system.cc:
    call into the ISA to start the CPU (or not)

--HG--
extra : convert_revision : 0003b2032337d8a031a9fc044da726dbb2a9e36f

17 years agofix regress... SPARC_FS may not be in the builds so check for it
Ali Saidi [Fri, 9 Mar 2007 21:27:24 +0000 (16:27 -0500)]
fix regress... SPARC_FS may not be in the builds so check for it

--HG--
extra : convert_revision : 16710e4c44bd34496ed31ae8e954544b06e92589

17 years agoTwo fixes:
Kevin Lim [Fri, 9 Mar 2007 15:06:09 +0000 (10:06 -0500)]
Two fixes:
1. Make sure connectMemPorts() only gets called when the CPU's peer gets changed.  This is done by making setPeer() virtual, and overriding it in the CPU's ports.  When it gets called on a CPU's port (dcache specifically), it calls the normal setPeer() function, and also connectMemPorts().
2. Consolidate redundant code that handles switching in a CPU.

src/cpu/base.cc:
    Move common code of switching over peers to base CPU.
src/cpu/base.hh:
    Move common code of switching over peers to BaseCPU.
src/cpu/o3/cpu.cc:
    Add in function that updates thread context's ports.
    Also use updated function to takeOverFrom() in BaseCPU.  This gets rid of some repeated code.
src/cpu/o3/cpu.hh:
    Include function to update thread context's memory ports.
src/cpu/o3/lsq.hh:
    Add function to dcache port that will update the memory ports upon getting a new peer.
    Also include a function that will tell the CPU to update those memory ports.
src/cpu/o3/lsq_impl.hh:
    Add function that will update the memory ports upon getting a new peer.
src/cpu/simple/atomic.cc:
src/cpu/simple/timing.cc:
    Add function that will update thread context's memory ports upon getting a new peer.
    Also use the new BaseCPU's take over from function.
src/cpu/simple/atomic.hh:
    Add in function (and dcache port) that will allow the dcache to update memory ports when it gets assigned a new peer.
src/cpu/simple/timing.hh:
    Add function that will update thread context's memory ports upon getting a new peer.
src/mem/port.hh:
    Make setPeer virtual so that other classes can override it.

--HG--
extra : convert_revision : 2050f1241dd2e83875d281cfc5ad5c6c8705fdaf

17 years agoPanic if any CMT registers are accessed
Ali Saidi [Fri, 9 Mar 2007 02:49:13 +0000 (21:49 -0500)]
Panic if any CMT registers are accessed

src/arch/sparc/asi.cc:
src/arch/sparc/asi.hh:
    add CMT ASI registers
src/arch/sparc/tlb.cc:
    Panic if any of the CMT registers are being accessed

--HG--
extra : convert_revision : b9a94281e2074a576ac21d042b756950d509e758

17 years agostop m5 from leaking like a sieve
Ali Saidi [Thu, 8 Mar 2007 23:57:15 +0000 (18:57 -0500)]
stop m5 from leaking like a sieve
don't create a new physPort/virtPort every time activateContext() is called
add the ability to tell a memory object to delete it's reference to a port and a method to have a port call deletePortRefs()
on the port owner as well as delete it's peer
still need to stop calling connectMemoPorts() every time activateContext() is called or we'll overflow the bus id and panic

src/cpu/thread_state.cc:
    if we hav ea (phys|virt)Port don't create a new on, have it delete it's peer and then reuse it
src/mem/bus.cc:
src/mem/bus.hh:
    add ability to delete a port by usig a hash_map instead of an array to store port ids
    add a function to do deleting
src/mem/cache/cache.hh:
src/mem/cache/cache_impl.hh:
src/mem/mem_object.cc:
src/mem/mem_object.hh:
    adda function to delete port references from a memory object
src/mem/port.cc:
src/mem/port.hh:
    add a removeConn function that tell the owener to delete any references to the port and then deletes its peer

--HG--
extra : convert_revision : 272f0c8f80e1cf1ab1750d8be5a6c9aa110b06a4

17 years agoFixed an off-by-one error.
Gabe Black [Thu, 8 Mar 2007 05:55:16 +0000 (00:55 -0500)]
Fixed an off-by-one error.

--HG--
extra : convert_revision : 498fef18cf339cabc2c00e4758bc8a0da857daca

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Thu, 8 Mar 2007 05:42:30 +0000 (00:42 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace

--HG--
extra : convert_revision : becba8537b11ee4ef33bbf129bef2ca047403df5

17 years agoFix up the SPARC initial stack frame to match an actual 32 bit process.
Gabe Black [Thu, 8 Mar 2007 05:29:37 +0000 (00:29 -0500)]
Fix up the SPARC initial stack frame to match an actual 32 bit process.

--HG--
extra : convert_revision : 3995744c3bf955a370b18f6e88de1bfb82f79843

17 years agoI missed a couple of WithEffects, this should do it
Ali Saidi [Thu, 8 Mar 2007 02:51:44 +0000 (21:51 -0500)]
I missed a couple of WithEffects, this should do it

--HG--
extra : convert_revision : 19fce78a19b27b7ccb5e3653a64b46e6d5292915

17 years agofix compiling of FS after Gabe's last compile
Ali Saidi [Thu, 8 Mar 2007 02:50:09 +0000 (21:50 -0500)]
fix compiling of FS after Gabe's last compile

--HG--
extra : convert_revision : a93fa5ad61aa2b8c18bf6c513b617f3425ffb220

17 years agoMove the magic m5 PageTableFault into sim/faults.[hh,cc] since it's the same across...
Gabe Black [Wed, 7 Mar 2007 20:04:46 +0000 (20:04 +0000)]
Move the magic m5 PageTableFault into sim/faults.[hh,cc] since it's the same across all architectures.

--HG--
extra : convert_revision : 18d441eb7ac44df4df41771bfe3dec69f7fa70ec

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Wed, 7 Mar 2007 20:04:45 +0000 (20:04 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem

--HG--
extra : convert_revision : d764fe37c71269a04fcede6cbf30e24262447e89

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Wed, 7 Mar 2007 20:04:44 +0000 (15:04 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/tmp/newmem

--HG--
extra : convert_revision : f078a05729b5fe464a06a58bc4adcb374f560572

17 years ago*MiscReg->*MiscRegNoEffect, *MiscRegWithEffect->*MiscReg
Ali Saidi [Wed, 7 Mar 2007 20:04:31 +0000 (15:04 -0500)]
*MiscReg->*MiscRegNoEffect, *MiscRegWithEffect->*MiscReg

--HG--
extra : convert_revision : f799b65f1b2a6bf43605e6870b0f39b473dc492b

17 years agoAdd setData functions for the new Twin??_t types.
Gabe Black [Wed, 7 Mar 2007 17:46:06 +0000 (17:46 +0000)]
Add setData functions for the new Twin??_t types.

--HG--
extra : convert_revision : 6f4e08e76eb4a95eb08b11632f6e33ba458723b6

17 years agoAdd some constructors and an output operator to the Twin??_t types so that o3 SPARC...
Gabe Black [Wed, 7 Mar 2007 17:46:05 +0000 (17:46 +0000)]
Add some constructors and an output operator to the Twin??_t types so that o3 SPARC will compile again.

--HG--
extra : convert_revision : af987aaeac87ee92a3b55cf0839d994cf7dea1af

17 years agoMake byteswap work correctly on Twin??_t types.
Gabe Black [Wed, 7 Mar 2007 17:46:04 +0000 (17:46 +0000)]
Make byteswap work correctly on Twin??_t types.

--HG--
extra : convert_revision : a8a14078d62c24e480ffa69591edfc775d1d76cc

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Wed, 7 Mar 2007 17:46:03 +0000 (12:46 -0500)]
Merge zizzer:/bk/newmem
into  udhcp-macvpn-108.public.engin.umich.edu:/Users/ali/work/m5.newmem

--HG--
extra : convert_revision : c6b11f535cca7fd46f1a3cea3b5a966e8fa80347

17 years agoIf we're running the quick tests, remove the SPARC_FS build since we don't have any...
Ali Saidi [Wed, 7 Mar 2007 17:45:21 +0000 (12:45 -0500)]
If we're running the quick tests, remove the SPARC_FS build since we don't have any quick SPARC_FS tests at the moment

--HG--
extra : convert_revision : 4505f1600cae5d049560f3b397541e9a9dea0420

17 years agoCleanup
Nathan Binkert [Wed, 7 Mar 2007 06:16:18 +0000 (22:16 -0800)]
Cleanup

--HG--
extra : convert_revision : 31f1b0f760a6eb861652440f9d42aaf123ef4833

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Tue, 6 Mar 2007 20:58:44 +0000 (20:58 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem-x86

--HG--
extra : convert_revision : 0822fbcc377781b53d2de9ba40ab9d985ccbc039

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Tue, 6 Mar 2007 20:58:43 +0000 (15:58 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : fa1e361fcae10fe7a91118007faeeabe3fecba2a

17 years agoAdd regression for SPARC "hard" instruction test. Only runs in simple-atomic right...
Ali Saidi [Tue, 6 Mar 2007 20:57:28 +0000 (15:57 -0500)]
Add regression for SPARC "hard" instruction test. Only runs in simple-atomic right now since we don't have cache support for
the atomic instructions.

--HG--
extra : convert_revision : b7013e6963885dfe2b4630ac175e24ddad6d42a6

17 years agoPython parameters types need analogous C++ types
Nathan Binkert [Tue, 6 Mar 2007 19:16:15 +0000 (11:16 -0800)]
Python parameters types need analogous C++ types

--HG--
extra : convert_revision : d068dfec69b28d48fc299a4108e165decfaaace7

17 years agoMove all of the parameters of the Root SimObject so they are
Nathan Binkert [Tue, 6 Mar 2007 19:13:43 +0000 (11:13 -0800)]
Move all of the parameters of the Root SimObject so they are
directly configured by python.  Move stuff from root.(cc|hh) to
core.(cc|hh) since it really belogs there now.
In the process, simplify how ticks are used in the python code.

--HG--
extra : convert_revision : cf82ee1ea20f9343924f30bacc2a38d4edee8df3

17 years agoGet X86 to load an elf and start a process for it.
Gabe Black [Tue, 6 Mar 2007 15:42:30 +0000 (15:42 +0000)]
Get X86 to load an elf and start a process for it.

src/arch/x86/SConscript:
    Add in process source files.
src/arch/x86/isa_traits.hh:
    Replace magic constant numbers with the x86 register names.
src/arch/x86/miscregfile.cc:
    Make clear the miscreg file succeed. There aren't any misc regs, so clearing them is very easy.
src/arch/x86/process.hh:
    An X86 process class.
src/base/loader/elf_object.cc:
    Add in code to recognize x86 as an architecture.
src/base/traceflags.py:
    Add an x86 traceflag
src/sim/process.cc:
    Add in code to create an x86 process.
src/arch/x86/intregs.hh:
    A file which declares names for the integer register indices.
src/arch/x86/linux/linux.cc:
src/arch/x86/linux/linux.hh:
    A very simple translation of SPARC's linux.cc and linux.hh. It's probably not correct for x86, but it might not be correct for SPARC either.
src/arch/x86/linux/process.cc:
src/arch/x86/linux/process.hh:
    An x86 linux process. The syscall table is split out into it's own file.
src/arch/x86/linux/syscalls.cc:
    The x86 Linux syscall table and the uname function.
src/arch/x86/process.cc:
    The x86 process base class.
tests/test-progs/hello/bin/x86/linux/hello:
    An x86 hello world test binary.

--HG--
extra : convert_revision : f22919e010c07aeaf5757dca054d9877a537fd08

17 years agoPython atexit handlers are called in reverse order.
Nathan Binkert [Tue, 6 Mar 2007 04:14:00 +0000 (20:14 -0800)]
Python atexit handlers are called in reverse order.
Fix things so the stats dump happens last.

--HG--
extra : convert_revision : ea842dbcbb77dd1c715c4e5b57d2470e558c4265

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Tue, 6 Mar 2007 01:54:36 +0000 (20:54 -0500)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace

--HG--
extra : convert_revision : 0959fb162253ff1eed8da0a990f58897322f0e1f

17 years agoFixing statetrace to work with 32 bit SPARC processes, as well as rewritting it's...
Gabe Black [Tue, 6 Mar 2007 01:54:20 +0000 (20:54 -0500)]
Fixing statetrace to work with 32 bit SPARC processes, as well as rewritting it's single stepping code.

--HG--
extra : convert_revision : 69b1668a850519ab98b02c525ec41ff727eb6036

17 years agoFill out a stub version of the vtophys header file.
Gabe Black [Mon, 5 Mar 2007 17:59:04 +0000 (17:59 +0000)]
Fill out a stub version of the vtophys header file.

--HG--
extra : convert_revision : 2c10a80a2f73207539e3f98b4a3b864d431f5035

17 years agoAdd in NumGDBRegs so the constructor to the base class can get all it's arguments.
Gabe Black [Mon, 5 Mar 2007 17:58:15 +0000 (17:58 +0000)]
Add in NumGDBRegs so the constructor to the base class can get all it's arguments.

--HG--
extra : convert_revision : fcec1ad134b53a419a952e556ed75cb1559a1127

17 years agoReorganize the floating point register file a little.
Gabe Black [Mon, 5 Mar 2007 17:57:26 +0000 (17:57 +0000)]
Reorganize the floating point register file a little.

--HG--
extra : convert_revision : 643c147b77e931d49ac559681d4bbda737f6e1c7

17 years agoAdd some new source files.
Gabe Black [Mon, 5 Mar 2007 17:56:26 +0000 (17:56 +0000)]
Add some new source files.

--HG--
extra : convert_revision : 94f3f19eb91b7f54918640b7605008eb1fe75fc7

17 years agoStub decoder. This is probably even farther from finished than it looks...
Gabe Black [Mon, 5 Mar 2007 16:16:28 +0000 (16:16 +0000)]
Stub decoder. This is probably even farther from finished than it looks...

--HG--
extra : convert_revision : a39a158fec4560f6eb7a6987592c473677c0b1ba

17 years agoAdd stub for x86 process creation
Gabe Black [Mon, 5 Mar 2007 16:15:13 +0000 (16:15 +0000)]
Add stub for x86 process creation

--HG--
extra : convert_revision : 3bdbc415a73c6bb4d723f68714a96c9f922ba5e6

17 years agoAdd x86 version of call to "decode"
Gabe Black [Mon, 5 Mar 2007 16:13:50 +0000 (16:13 +0000)]
Add x86 version of call to "decode"

--HG--
extra : convert_revision : bb799dcea58b51d6e1d3d744581ea48c5c1490fe

17 years agoAdd x86 to the Arch enum in the object file class.
Gabe Black [Mon, 5 Mar 2007 16:12:20 +0000 (16:12 +0000)]
Add x86 to the Arch enum in the object file class.

--HG--
extra : convert_revision : bc8c5e78aac0e9033d6cbc756d8092369ac29072

17 years agoAdded missing include.
Gabe Black [Mon, 5 Mar 2007 16:11:07 +0000 (16:11 +0000)]
Added missing include.

--HG--
extra : convert_revision : 9d00209e5c0ae8aa5ac37f9558627ee212a72c9b

17 years agoAdded LargestRead type for x86. I might have picked the wrong type.
Gabe Black [Mon, 5 Mar 2007 16:10:11 +0000 (16:10 +0000)]
Added LargestRead type for x86. I might have picked the wrong type.

--HG--
extra : convert_revision : 5570a595b9adbe9c35f9b4f8dd3b50533b5beb97

17 years agoStub implementation for x86.
Gabe Black [Mon, 5 Mar 2007 16:09:09 +0000 (16:09 +0000)]
Stub implementation for x86.

--HG--
extra : convert_revision : 3eccbf699bb62139a06a9b249e56bd205bc316ed

17 years agoStub implementation for x86
Gabe Black [Mon, 5 Mar 2007 16:08:18 +0000 (16:08 +0000)]
Stub implementation for x86

--HG--
extra : convert_revision : dd6b4d14070a2e99c179c5f780c9935847da8eda

17 years agoAdded fault generation functions. I would still like to see these go away. The page...
Gabe Black [Mon, 5 Mar 2007 16:07:01 +0000 (16:07 +0000)]
Added fault generation functions. I would still like to see these go away. The page table fault should be moved into sim/faults.hh because it's a "fake" m5 fault for se mode and shouldn't vary between architectures.

--HG--
extra : convert_revision : cafe25befd64f83a424c1a09f5e62a16df5408ad

17 years agoAdded an x86 dyninst
Gabe Black [Mon, 5 Mar 2007 14:55:45 +0000 (14:55 +0000)]
Added an x86 dyninst

--HG--
extra : convert_revision : 2317e9bb0bcf8010ab5d02019f7a14eeb7b1459c

17 years agoAdded stub implementations or prototypes for all the functions in this file.
Gabe Black [Mon, 5 Mar 2007 14:55:09 +0000 (14:55 +0000)]
Added stub implementations or prototypes for all the functions in this file.

--HG--
extra : convert_revision : c0170eae8aeae130f81618ae49a60f879c2b523f

17 years agoAdded in a missing include.
Gabe Black [Mon, 5 Mar 2007 14:53:51 +0000 (14:53 +0000)]
Added in a missing include.

--HG--
extra : convert_revision : 712480fef36bf7a34c2c0b8d19dd82689eb78a1d

17 years agoFilled in a stub header file for setting the result of a syscall.
Gabe Black [Mon, 5 Mar 2007 14:53:15 +0000 (14:53 +0000)]
Filled in a stub header file for setting the result of a syscall.

--HG--
extra : convert_revision : f0a2cdf7d669834b90444fc390b0aceede474737

17 years agoFilled in a stub header file for a stacktrace object. I'm still not sure what this...
Gabe Black [Mon, 5 Mar 2007 14:52:28 +0000 (14:52 +0000)]
Filled in a stub header file for a stacktrace object. I'm still not sure what this is for, and it probably doesn't work on anything but Alpha.

--HG--
extra : convert_revision : 9bc3833628d31799a7b578c450dac096a19aead3

17 years agoFilled in a stub header file for remote gdb
Gabe Black [Mon, 5 Mar 2007 14:51:21 +0000 (14:51 +0000)]
Filled in a stub header file for remote gdb

--HG--
extra : convert_revision : 6289181697142f672548a4d4cf6e010171cb98e1

17 years agoCorrect a typo
Gabe Black [Mon, 5 Mar 2007 14:50:33 +0000 (14:50 +0000)]
Correct a typo

--HG--
extra : convert_revision : 1e8ef87ddb28873045a08bd104afc8ce129c4299

17 years agoMake the constructor (and all the other functions) public
Gabe Black [Mon, 5 Mar 2007 14:49:52 +0000 (14:49 +0000)]
Make the constructor (and all the other functions) public

--HG--
extra : convert_revision : 9d572651fc1722b15ae7dbc59c108d680c911f04

17 years agoVarious touch ups
Gabe Black [Mon, 5 Mar 2007 14:49:07 +0000 (14:49 +0000)]
Various touch ups

--HG--
extra : convert_revision : 19ff30d969a46adbd256f674582a9e7d398b56ed

17 years agoAdded a missing include.
Gabe Black [Mon, 5 Mar 2007 14:48:18 +0000 (14:48 +0000)]
Added a missing include.

--HG--
extra : convert_revision : 15a1b49ff9e0a1a15bd2500bec9ec9bc95ee5898

17 years agoAdded a missing include.
Gabe Black [Mon, 5 Mar 2007 14:47:42 +0000 (14:47 +0000)]
Added a missing include.

--HG--
extra : convert_revision : 62583e5a5647913fb36e1aae265e8ac52a165829

17 years agoFix up the remote gdb include gaurds so it doesn't use the same symbol as Alpha does.
Gabe Black [Mon, 5 Mar 2007 14:46:49 +0000 (14:46 +0000)]
Fix up the remote gdb include gaurds so it doesn't use the same symbol as Alpha does.

--HG--
extra : convert_revision : b75dbdd95ceb4ec71275588a5cf8e6b614cf4539

17 years agox86 register file includes.
Gabe Black [Mon, 5 Mar 2007 12:23:14 +0000 (12:23 +0000)]
x86 register file includes.

--HG--
extra : convert_revision : c00a077dd7ae8f6b48c6939034be244bcf48d715

17 years agoInclude the x86 specific traits file.
Gabe Black [Mon, 5 Mar 2007 12:21:20 +0000 (12:21 +0000)]
Include the x86 specific traits file.

--HG--
extra : convert_revision : bcf448aedd832022527cc972f7a1f0433987c564

17 years agoStub x86 Fault class which just panics.
Gabe Black [Mon, 5 Mar 2007 12:20:34 +0000 (12:20 +0000)]
Stub x86 Fault class which just panics.

--HG--
extra : convert_revision : abfcf4005ec636b1e6c085515b63c1d8e69e3370

17 years agoA new file for x86 specific parameters. This could be implemented as a sim object?
Gabe Black [Mon, 5 Mar 2007 12:19:54 +0000 (12:19 +0000)]
A new file for x86 specific parameters. This could be implemented as a sim object?

--HG--
extra : convert_revision : 51757435bb0b20132f3ec5782db31382bb2cca18

17 years agoAdd in a declaration of class Checkpoint rather than expecting it to come from some...
Gabe Black [Mon, 5 Mar 2007 12:19:11 +0000 (12:19 +0000)]
Add in a declaration of class Checkpoint rather than expecting it to come from some other include.

--HG--
extra : convert_revision : adbd4899508e3d30959a504a48402f01d1187099

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Mon, 5 Mar 2007 11:00:44 +0000 (11:00 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem-x86

--HG--
extra : convert_revision : b585cea2221377eb2fceea8976c46a17c0034f51

17 years agoDon't use the exact same name as a system header #define
Nathan Binkert [Mon, 5 Mar 2007 03:26:49 +0000 (19:26 -0800)]
Don't use the exact same name as a system header #define

--HG--
extra : convert_revision : 099e380395fc1fdaef993b019d3d4e596e8076c2

17 years agoadd a sparc fs regression
Ali Saidi [Sun, 4 Mar 2007 03:45:26 +0000 (22:45 -0500)]
add a sparc fs regression

src/dev/sparc/iob.cc:
    don't warn on cpu restart/idle/halt stuff
tests/SConscript:
    add sparc target in test Sconscript
util/regress:
    Add SPARC_FS target in regress

--HG--
extra : convert_revision : 37fa21700ec4c350d87ca9723bc3359feb81c50a

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Sun, 4 Mar 2007 00:03:22 +0000 (19:03 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : fd6464c9883783c7c2cbefba317f4a0f20dd24cb

17 years agoAdd Iob and remove the fake device
Ali Saidi [Sun, 4 Mar 2007 00:02:31 +0000 (19:02 -0500)]
Add Iob and remove the fake device

configs/common/FSConfig.py:
    add an attachOnChipIO to force people to think about where "onchip" i/o should be connected in their hierarchy

--HG--
extra : convert_revision : cf79a9a00760b7daf28063f407a04bd38b956843

17 years agoImplement Niagara I/O interface and rework interrupts
Ali Saidi [Sat, 3 Mar 2007 22:22:47 +0000 (17:22 -0500)]
Implement Niagara I/O interface and rework interrupts

configs/common/FSConfig.py:
    Use binaries we've compiled instead of the ones that come with Legion
src/arch/alpha/interrupts.hh:
    get rid of post(int int_type) and add a get_vec function that gets the interrupt vector for an interrupt number
src/arch/sparc/asi.cc:
    Add AsiIsInterrupt() to AsiIsMmu()
src/arch/sparc/faults.cc:
src/arch/sparc/faults.hh:
    Add InterruptVector type
src/arch/sparc/interrupts.hh:
    rework interrupts. They are no longer cleared when created... A I/O or ASI read/write needs to happen before they are cleared
src/arch/sparc/isa_traits.hh:
    Add the "interrupt" trap types to isa traits
src/arch/sparc/miscregfile.cc:
    add names for all the misc registers and possible post an interrupt when TL is changed.
src/arch/sparc/miscregfile.hh:
    Add a helper function to post an interrupt when pil < some set softint
src/arch/sparc/regfile.cc:
src/arch/sparc/regfile.hh:
    InterruptLevel shouldn't really live here, moved to interrupt.hh
src/arch/sparc/tlb.cc:
    Add interrupt ASIs to TLB
src/arch/sparc/ua2005.cc:
    Add checkSoftInt to check if a softint needs to be posted
    Check that a tickCompare isn't scheduled before scheduling one
    Post and clear interrupts on queue writes and what not
src/base/bitfield.hh:
    Add an helper function to return the msb that is set
src/cpu/base.cc:
src/cpu/base.hh:
    get rid of post_interrupt(type) since it's no longer needed.. Add a way to see what interrupts are pending
src/cpu/intr_control.cc:
src/cpu/intr_control.hh:
src/dev/alpha/tsunami_cchip.cc:
src/python/m5/objects/IntrControl.py:
    Make IntrControl have a system pointer rather than using a cpu pointer to get one
src/dev/sparc/SConscript:
    add iob to SConsscrip
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/config.out:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/config.out:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/config.out:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/config.ini:
tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/config.out:
tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/config.ini:
tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/config.out:
    update config.ini/out for intrcntrl not having a cpu pointer anymore

--HG--
extra : convert_revision : 38614f6b9ffc8f3c93949a94ff04b7d2987168dd

17 years agoinclude signal.h
Nathan Binkert [Sat, 3 Mar 2007 17:26:14 +0000 (12:26 -0500)]
include signal.h

--HG--
extra : convert_revision : 9b5ad2704dfd63a1aa8ad0e4275fd0e3a7d32d6d

17 years agoFilled in with basic x86 stuff. Some things are missing, wrong, or nonsensical for...
Gabe Black [Sat, 3 Mar 2007 17:19:52 +0000 (17:19 +0000)]
Filled in with basic x86 stuff. Some things are missing, wrong, or nonsensical for x86.

--HG--
extra : convert_revision : 2f7845db6d65b353985b474f7012cfbbaece6a39

17 years agoFilled in with basic x86 information. Some things are missing, wrong, or non-sensical...
Gabe Black [Sat, 3 Mar 2007 17:18:29 +0000 (17:18 +0000)]
Filled in with basic x86 information. Some things are missing, wrong, or non-sensical in x86.

--HG--
extra : convert_revision : bba78db3667e214c95bb127872d3fdf546619703

17 years agoAdd build hooks for x86.
Gabe Black [Sat, 3 Mar 2007 16:01:48 +0000 (16:01 +0000)]
Add build hooks for x86.

--HG--
extra : convert_revision : 438eb74f14e6ea60bab5012110f3946c9213786e

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Nathan Binkert [Sat, 3 Mar 2007 15:47:00 +0000 (07:47 -0800)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  iceaxe.int.chaotic.net:/Users/nate/work/m5/outgoing

--HG--
extra : convert_revision : b3d48721ead389fa807c0d5392039d4fc71a252e

17 years agoDo the default argument stuff in python
Nathan Binkert [Sat, 3 Mar 2007 15:45:55 +0000 (07:45 -0800)]
Do the default argument stuff in python

--HG--
extra : convert_revision : 235f85e611a669401c6ddfbdf14244e80eb55888

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Sat, 3 Mar 2007 06:24:01 +0000 (06:24 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem-sparc32

--HG--
extra : convert_revision : bbd0def502e423e64e2c4f6415a4b043b60c7f90

17 years agoFactor code out of main.cc and main.i into a bunch of files
Nathan Binkert [Sat, 3 Mar 2007 06:24:00 +0000 (22:24 -0800)]
Factor code out of main.cc and main.i into a bunch of files
so things are organized in a more sensible manner.  Take apart
finalInit and expose the individual functions which are now
called from python.  Make checkpointing a bit easier to use.

--HG--
extra : convert_revision : f470ddabbb47103e7b4734ef753c40089f2dcd9d

17 years agoImplement the _llseek syscall. It's Linux only, so we'll actually use the lseek syscall.
Gabe Black [Sat, 3 Mar 2007 03:34:55 +0000 (03:34 +0000)]
Implement the _llseek syscall. It's Linux only, so we'll actually use the lseek syscall.

--HG--
extra : convert_revision : cccfd5efddbba527c6fb4e07ad2ab235a2670918

17 years agoFix some issues with 32 bit processes.
Gabe Black [Sat, 3 Mar 2007 03:34:54 +0000 (03:34 +0000)]
Fix some issues with 32 bit processes.

--HG--
extra : convert_revision : b01b38bbf185f2279134db4976a9bdb3e381a670

17 years agoKeep around which input set was used for a benchmark, and make vortex work with SPARC.
Gabe Black [Sat, 3 Mar 2007 03:34:53 +0000 (03:34 +0000)]
Keep around which input set was used for a benchmark, and make vortex work with SPARC.

--HG--
extra : convert_revision : c891435a31e81fb8294484aedf340c0c96c8afa2

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Sat, 3 Mar 2007 03:34:52 +0000 (03:34 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem

--HG--
extra : convert_revision : dcb1fc0c6252fb96a956640c6d7995679da725e5

17 years agomake ldtw(a) -- Twin 32 bit load work correctly -- by doing it the same way as the...
Ali Saidi [Sat, 3 Mar 2007 03:34:51 +0000 (22:34 -0500)]
make ldtw(a) -- Twin 32 bit load work correctly -- by doing it the same way as the twin 64 bit loads

src/arch/isa_parser.py:
src/arch/sparc/isa/decoder.isa:
src/arch/sparc/isa/operands.isa:
src/base/bigint.hh:
src/cpu/simple/atomic.cc:
src/cpu/simple/timing.cc:
src/mem/packet_access.hh:
    make ldtw(a) Twin 32 bit load work correctly

--HG--
extra : convert_revision : 2646b269d58cc1774e896065875a56cf5e313b42

17 years agoForgot to commit this new file last earlier.
Gabe Black [Fri, 2 Mar 2007 14:43:27 +0000 (14:43 +0000)]
Forgot to commit this new file last earlier.

--HG--
extra : convert_revision : f2d80ae551b7e29426141d5c9fe355b43a0b9c7d

17 years agoMake the m5 psuedo instructions use the BasicOperate format
Gabe Black [Wed, 28 Feb 2007 16:49:17 +0000 (16:49 +0000)]
Make the m5 psuedo instructions use the BasicOperate format

--HG--
extra : convert_revision : f02da702ab9b99da124fac7e10a07386b04f3a0f

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Wed, 28 Feb 2007 16:39:42 +0000 (16:39 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem-sparc32

--HG--
extra : convert_revision : 88d1401f6e6b7c82344abef2c81b3c22bf6a0499

17 years agoMake trap instructions always generate TrapInstruction Fault objects which call into...
Gabe Black [Wed, 28 Feb 2007 16:36:38 +0000 (16:36 +0000)]
Make trap instructions always generate TrapInstruction Fault objects which call into the Process object to handle system calls. Refactored the Process objects, and move the handler code into it's own file, and add some syscalls which are used in a natively compiled hello world. Software traps with trap number 3 (not syscall number 3) are supposed to cause the register windows to be flushed but are ignored right now. Finally, made uname for SPARC report a 2.6.12 kernel which is what m22-018.pool happens to be running.

--HG--
extra : convert_revision : ea873f01c62234c0542f310cc143c6a7c76ade94

17 years agoThe "hostname" variable isn't used in the process classes. It should be removed from...
Gabe Black [Wed, 28 Feb 2007 16:29:25 +0000 (16:29 +0000)]
The "hostname" variable isn't used in the process classes. It should be removed from the other ones as well.

--HG--
extra : convert_revision : 0c07534de42d6c32ac26d9e43709111e3ab30d57

17 years agoFix issue with twolf where the presence or absence of two files, smred.sav or smred...
Gabe Black [Tue, 27 Feb 2007 10:37:48 +0000 (10:37 +0000)]
Fix issue with twolf where the presence or absence of two files, smred.sav or smred.sv2, would affect the outcome of the program. These names are based on the input file names which are in turn based on the input set selected. There may be more files like this generated for larger input sets, for example "mdred.sv3"

--HG--
extra : convert_revision : f4f1d3fd0fb28468b0ee507aaadf3c14aa9cf924

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Mon, 26 Feb 2007 10:34:45 +0000 (10:34 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem

--HG--
extra : convert_revision : 7e8c3572ede7d93910fc3e2a2e76d9a38b1f4243

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Sun, 25 Feb 2007 03:10:06 +0000 (22:10 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : a4f80ce975a23ba9858e6bf2dbbfed8897dd1810

17 years agomake m5 readfile work on solaris... we can have a solaris regression soon!
Ali Saidi [Sun, 25 Feb 2007 03:05:01 +0000 (22:05 -0500)]
make m5 readfile work on solaris... we can have a solaris regression soon!

src/arch/sparc/isa/decoder.isa:
    add readfile and break to sparc decoder
src/arch/sparc/isa/operands.isa:
    fix O0-O5 operands registers
util/m5/Makefile.sparc:
    Make sparc makefile compile a 64bit binary
util/m5/m5.c:
    readfile was in here twice, once will be sufficient I think
util/m5/m5op_sparc.S:
    implement readfile and debugbreak

--HG--
extra : convert_revision : 139b3f480ee6342b37b5642e072c8486d91a3944

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Fri, 23 Feb 2007 12:54:07 +0000 (12:54 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem

--HG--
extra : convert_revision : e0eb0240848698496bd55093a313eb2e0f512ebc