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

17 years agoAli and I both made the same change and we only need it once. I liked mine a little...
Gabe Black [Fri, 23 Feb 2007 01:05:34 +0000 (01:05 +0000)]
Ali and I both made the same change and we only need it once. I liked mine a little better.

--HG--
extra : convert_revision : 3a1b7856e6143ca089fd6e36492608377dfede19

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

--HG--
extra : convert_revision : a7697ea8457a03318e3fcf34775bf3ecc4786e8a

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Fri, 23 Feb 2007 01:05:32 +0000 (20:05 -0500)]
Merge zizzer:/bk/newmem
into  pb15.local:/Users/ali/work/m5.newmem

--HG--
extra : convert_revision : 887b278dac6db5ea17ade641de84d0ab8b05db96

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Thu, 22 Feb 2007 13:18:23 +0000 (13:18 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem-sparc32

--HG--
extra : convert_revision : 70dcd9d1d669c1c619411389487b7910861550e3

17 years agoMake the m5 pseudo instructions only work in FS. Also, make sure any undefined opcode...
Gabe Black [Thu, 22 Feb 2007 13:17:51 +0000 (13:17 +0000)]
Make the m5 pseudo instructions only work in FS. Also, make sure any undefined opcodes in impdep2 (which in SE is all of them) trap with an illegal_instruction exception.

--HG--
extra : convert_revision : dd7848d0685e4cc6f5fd5e3b846a3f70b62ee30a

17 years agoMake it easier to turn off the remote debugger
Nathan Binkert [Thu, 22 Feb 2007 06:25:48 +0000 (22:25 -0800)]
Make it easier to turn off the remote debugger

--HG--
extra : convert_revision : d88784736df5f9b498770fb7e98f52715669c0e1

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Thu, 22 Feb 2007 06:15:16 +0000 (01:15 -0500)]
Merge zizzer:/bk/newmem
into  pb15.local:/Users/ali/work/m5.newmem

--HG--
extra : convert_revision : e0057583132ce545eb1867b446484e8984b97282

17 years agoGet rid of the ConsoleListener SimObject and just fold the
Nathan Binkert [Thu, 22 Feb 2007 06:14:11 +0000 (22:14 -0800)]
Get rid of the ConsoleListener SimObject and just fold the
relevant code directly into the SimConsole object.  Now,
you can easily turn off the listen port by just specifying
0 as the port.

--HG--
extra : convert_revision : c8937fa45b429d8a0728e6c720a599e38972aaf0

17 years agofix se compiling oops
Ali Saidi [Thu, 22 Feb 2007 06:11:04 +0000 (01:11 -0500)]
fix se compiling oops

--HG--
extra : convert_revision : ce7ac94da0ed6bad457a8a9e4c949b0c3b09c2ae

17 years agoMake sure that all variables in the NSGigE device model are
Nathan Binkert [Thu, 22 Feb 2007 04:45:05 +0000 (20:45 -0800)]
Make sure that all variables in the NSGigE device model are
initialized.

--HG--
extra : convert_revision : b4b156ed8e3c0c4c4f8043ff86dc232ebad38668

17 years agoMake comments refer to ticks not cycles
Nathan Binkert [Thu, 22 Feb 2007 04:35:30 +0000 (20:35 -0800)]
Make comments refer to ticks not cycles

--HG--
extra : convert_revision : 4970a76890a3256073423a827dd0c55cfcb19a08

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

--HG--
extra : convert_revision : 4105ebbeca59206bece27f229ee810d594fb4310

17 years agoadd pseduo instruction support for sparc
Ali Saidi [Thu, 22 Feb 2007 02:06:17 +0000 (21:06 -0500)]
add pseduo instruction support for sparc

util/m5/Makefile.alpha:
    Clean up to make it a bit easier to muck with
util/m5/Makefile.alpha:
    Make the makefile more reasonable
util/m5/Makefile.alpha:
    Remove authors from copyright.
util/m5/Makefile.alpha:
    Updated Authors from bk prs info
util/m5/Makefile.alpha:
    bk cp Makefile Makefile.alpha
src/arch/sparc/tlb.cc:
    Clean up the cache code a little bit and make sure the uncacbale bit is set when appropriate
src/arch/alpha/isa/decoder.isa:
src/sim/pseudo_inst.cc:
src/sim/pseudo_inst.hh:
    Rename AlphaPseudo -> PseudoInst since it's all generic
src/arch/sparc/isa/bitfields.isa:
src/arch/sparc/isa/decoder.isa:
src/arch/sparc/isa/includes.isa:
src/arch/sparc/isa/operands.isa:
    Add support for pseudo instructions in sparc
util/m5/Makefile.alpha:
util/m5/Makefile.sparc:
    split off alpha make file and sparc make file for m5 app
util/m5/m5.c:
    ivle and ivlb aren't used anymore
util/m5/m5op.h:
    stdint seems like a more generic better fit here
util/m5/m5op_alpha.S:
    move the op ids into their own header file since we can share them between sparc and alpha

--HG--
rename : util/m5/Makefile => util/m5/Makefile.sparc
rename : util/m5/m5op.S => util/m5/m5op_alpha.S
extra : convert_revision : 490ba2e8b8bc6e28bfc009cedec6b686b28e7834

17 years agoFix compile issues on gcc 4.1.x related to namespaces.
Nathan Binkert [Thu, 22 Feb 2007 00:42:16 +0000 (16:42 -0800)]
Fix compile issues on gcc 4.1.x related to namespaces.
This basically involves moving the builder code outside of any
namespace.  While we're at it, move a few braces outside of
a couple #if/#else/#endif blocks so it's easier to match up
the braces.

--HG--
extra : convert_revision : a7834532aadc63b0e0ff988dd5745049e02e6312

17 years agoFix tracing so it starts right away if --trace-start is not
Nathan Binkert [Wed, 21 Feb 2007 22:08:13 +0000 (14:08 -0800)]
Fix tracing so it starts right away if --trace-start is not
specified.

--HG--
extra : convert_revision : 49c1ea0b8c313949124aed84b1055db0b3c55bd8

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Gabe Black [Wed, 21 Feb 2007 18:30:52 +0000 (18:30 +0000)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem

--HG--
extra : convert_revision : bab45577db1967de1dd88ec9b228f106a4ab7479

17 years agoAutomatically generate m5/internal/__init__.py and swig/init.cc
Nathan Binkert [Wed, 21 Feb 2007 18:30:51 +0000 (10:30 -0800)]
Automatically generate m5/internal/__init__.py and swig/init.cc
based on the swig modules that we have

--HG--
extra : convert_revision : 2fd12db39d46608a62b9df36c2b36189f1d2bc30