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

17 years agoFix majory brokenness in my previous MySQL commit, basically
Nathan Binkert [Wed, 21 Feb 2007 18:15:17 +0000 (10:15 -0800)]
Fix majory brokenness in my previous MySQL commit, basically
this is just a shuffling around of code and fixes to make
stuff commit properly

--HG--
extra : convert_revision : a057f7fe4962cfc6200781ff66d2c26bf9c6eb8c

17 years ago#include needed for compile
Nathan Binkert [Wed, 21 Feb 2007 18:13:10 +0000 (10:13 -0800)]
#include needed for compile

--HG--
extra : convert_revision : fda9ab0d04f77f27810018a8639d6ea8abb59326

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

tests/long/30.eon/ref/alpha/linux/simple-timing/m5stats.txt:
    "Hand merge" that just used the local file.

--HG--
extra : convert_revision : 24c7fa192094958be5a9d17c3461f3328079fd3b

17 years agoUpdate 50.vortex simple-timing for 8k blk_size
Gabe Black [Wed, 21 Feb 2007 00:25:50 +0000 (00:25 +0000)]
Update 50.vortex simple-timing for 8k blk_size

--HG--
extra : convert_revision : 73f8c4f8f6da901021ea38e5ac053d905454a3ff

17 years agoUpdate 50.vortex simple-atomic for 8k blk_size
Gabe Black [Wed, 21 Feb 2007 00:24:45 +0000 (00:24 +0000)]
Update 50.vortex simple-atomic for 8k blk_size

--HG--
extra : convert_revision : 82a131bf16b856dadf62a678ce74350079433692

17 years agoUpdate 40.perlbmk simple-timing for 8k blk_size
Gabe Black [Wed, 21 Feb 2007 00:23:52 +0000 (00:23 +0000)]
Update 40.perlbmk simple-timing for 8k blk_size

--HG--
extra : convert_revision : 461751061dc5db076f11e9c3b37da25cc47c583e

17 years agoUpdate 40.perlbmk simple-atomic for 8k blk_size
Gabe Black [Wed, 21 Feb 2007 00:23:02 +0000 (00:23 +0000)]
Update 40.perlbmk simple-atomic for 8k blk_size

--HG--
extra : convert_revision : 135274a64ead4962faa4f34b2df4e9de453cbe7f

17 years agoUpdate 30.eon simple-timing for 8k blk_size. It's strange this is necessary because...
Gabe Black [Wed, 21 Feb 2007 00:21:43 +0000 (00:21 +0000)]
Update 30.eon simple-timing for 8k blk_size. It's strange this is necessary because simple-atomic doesn't seem affected.

--HG--
extra : convert_revision : 6a8c77f0ca76eb06ac7eb5216af6adba3759c4c7

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Mon, 19 Feb 2007 00:57:58 +0000 (19:57 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : 10d4dc08411c7a433a7194e94f69ca1d639a1ce7

17 years agoimplement vtophys and 32bit gdb support
Ali Saidi [Mon, 19 Feb 2007 00:57:46 +0000 (19:57 -0500)]
implement vtophys and 32bit gdb support

src/arch/alpha/vtophys.cc:
src/arch/alpha/vtophys.hh:
src/arch/sparc/arguments.hh:
    move Copy* to vport since it's generic for all the ISAs
src/arch/sparc/isa_traits.hh:
    the Solaris kernel sets up a virtual-> real mapping for all memory starting at SegKPMBase
src/arch/sparc/pagetable.hh:
    add a class for getting bits out of the TteTag
src/arch/sparc/remote_gdb.cc:
    add 32bit support kinda.... If its 32 bit
src/arch/sparc/remote_gdb.hh:
    Add 32bit register offsets too.
src/arch/sparc/tlb.cc:
    cleanup generation of tsb pointers
src/arch/sparc/tlb.hh:
    add function to return tsb pointers for an address
    make lookup public so vtophys can use it
src/arch/sparc/vtophys.cc:
src/arch/sparc/vtophys.hh:
    write vtophys for sparc
src/base/bitfield.hh:
    return a mask of bits first->last
src/mem/vport.cc:
src/mem/vport.hh:
    move Copy* here since it's ISA generic

--HG--
extra : convert_revision : c42c331e396c0d51a2789029d8e232fe66995d0f

17 years agoGet rid of the stand alone ParamContext since all of the
Nathan Binkert [Sun, 18 Feb 2007 17:31:25 +0000 (09:31 -0800)]
Get rid of the stand alone ParamContext since all of the
relevant stuff has now been moved to python.

--HG--
extra : convert_revision : 608e5ffd0e2b33949a2b183117216f136cfa4484

17 years agoGet rid of the Serialize and IntervalStats Param contexts
Nathan Binkert [Sun, 18 Feb 2007 17:08:32 +0000 (09:08 -0800)]
Get rid of the Serialize and IntervalStats Param contexts
since they're no longer used

--HG--
extra : convert_revision : e39590aa03cc4c961d2eb5dab57862811f431e4d

17 years agoThe trace_mem function is really part of the encumbered
Nathan Binkert [Sun, 18 Feb 2007 16:50:21 +0000 (08:50 -0800)]
The trace_mem function is really part of the encumbered
FullCPU

--HG--
extra : convert_revision : d7fc876333fc3474bc3827f710aa472e2ad847f4

17 years agoGet rid of the Statistics and Statreset ParamContexts, and
Nathan Binkert [Sun, 18 Feb 2007 06:52:32 +0000 (22:52 -0800)]
Get rid of the Statistics and Statreset ParamContexts, and
expose all of the relevant functionality to python.  Clean
up the mysql code while we're at it.

--HG--
extra : convert_revision : 5b711202a5a452b8875ebefb136a156b65c24279

17 years agoCheck that there is a param context list before trying
Nathan Binkert [Sun, 18 Feb 2007 06:36:39 +0000 (22:36 -0800)]
Check that there is a param context list before trying
to loop through it.  This is more important as we get rid
of param contexts

--HG--
extra : convert_revision : 5a24048b5c3d609285da83dfcb106910afad6919

17 years agoRemove the event_ignore stuff since it was never really used
Nathan Binkert [Sun, 18 Feb 2007 06:11:21 +0000 (22:11 -0800)]
Remove the event_ignore stuff since it was never really used

--HG--
extra : convert_revision : ef5f3492e8232d08af7e1eae64ba96c79ca14b6f

17 years agoGive the progress event its own priority
Nathan Binkert [Sun, 18 Feb 2007 06:07:50 +0000 (22:07 -0800)]
Give the progress event its own priority

--HG--
extra : convert_revision : 6357ade64deb42fae68b2766545b1c4cdc673fc9

17 years agoDefault to tracing being disabled in C++, it will be turned
Nathan Binkert [Sun, 18 Feb 2007 04:32:39 +0000 (20:32 -0800)]
Default to tracing being disabled in C++, it will be turned
on in python.  Fix the trace start code so it actually starts
when it is suppsed to.  Make the Exec tracing stuff obey the
trace enabled flag.

--HG--
extra : convert_revision : 634ba0b4f52345d4bf40d43e239cef7ef43e7691

17 years agoPass an exception from a python event through the event queue
Nathan Binkert [Sun, 18 Feb 2007 04:27:11 +0000 (20:27 -0800)]
Pass an exception from a python event through the event queue
back into python so we don't just silently ignore those errors

--HG--
extra : convert_revision : e2f5566a4681f1b8ea80af50071119118afa7d8a

17 years agoUpdate for 8k block size.
Gabe Black [Sun, 18 Feb 2007 01:35:00 +0000 (20:35 -0500)]
Update for 8k block size.

--HG--
extra : convert_revision : 6249d3697c74a0f9f9b2f03857b75785b02bfc8b

17 years agoUpdate reference outputs because twolf was really fixed.
Gabe Black [Sat, 17 Feb 2007 09:38:13 +0000 (04:38 -0500)]
Update reference outputs because twolf was really fixed.

--HG--
extra : convert_revision : 613eeaf5b3ba5d504e1208f907312a22fe02c0c7

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Thu, 15 Feb 2007 20:24:19 +0000 (15:24 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : f9fd4df544144a691bb5956e3f84036a61822547

17 years agofixup remote gdb support for sparc fs
Ali Saidi [Thu, 15 Feb 2007 20:24:08 +0000 (15:24 -0500)]
fixup remote gdb support for sparc fs

--HG--
extra : convert_revision : 5edf0ad492fe438d66bcf0ae469ef841cd71e157

17 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/newmem
Gabe Black [Wed, 14 Feb 2007 20:45:29 +0000 (15:45 -0500)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/newmem
into  zizzer.eecs.umich.edu:/.automount/wexford/x/gblack/m5/newmem

--HG--
extra : convert_revision : 4878ca509f9982c065933a41ffc87808edb08b00

17 years agoReference outputs fixed to reflect branch mispredict change and 8k io buffers.
Gabe Black [Wed, 14 Feb 2007 18:05:20 +0000 (13:05 -0500)]
Reference outputs fixed to reflect branch mispredict change and 8k io buffers.

--HG--
extra : convert_revision : 24b0da355b6422cae4e4f7b664128c4612c55b2a

17 years agoForce the st_blksize field of a stat call to be 8k.
Gabe Black [Wed, 14 Feb 2007 17:58:28 +0000 (12:58 -0500)]
Force the st_blksize field of a stat call to be 8k.

--HG--
extra : convert_revision : 6cd2dc622ca95cc1ea89bd5e5cbf33d9510c351c

17 years agoMake mulitple consoles work and be distinguishable from each other
Ali Saidi [Tue, 13 Feb 2007 20:58:06 +0000 (15:58 -0500)]
Make mulitple consoles work and be distinguishable from each other

src/dev/alpha/tsunamireg.h:
    get rid of things that aren't really tsunami registers
src/dev/platform.hh:
src/dev/uart.cc:
    the uart pointer isn't used anymore
src/dev/simconsole.cc:
    make the simconsole print something more useful to distinguish between various consoles in a single system
src/dev/uart8250.hh:
    put the needed uart defines in here rather than including them from tsunamireg
src/python/m5/objects/T1000.py:
    add a console to the T1000 config for the hypervisor

--HG--
extra : convert_revision : 76ca92122e611eaf76b989bc699582eef8297be8

17 years agoGet rid of the MemoryTrace context since it is unused
Nathan Binkert [Tue, 13 Feb 2007 17:51:11 +0000 (09:51 -0800)]
Get rid of the MemoryTrace context since it is unused

--HG--
extra : convert_revision : 2b2ff5549e83473491b39272590b9af68e9d5fae

17 years agoget rid of the ExeTrace.py file since we no longer use it
Nathan Binkert [Tue, 13 Feb 2007 17:39:35 +0000 (09:39 -0800)]
get rid of the ExeTrace.py file since we no longer use it

--HG--
extra : convert_revision : 1a20ef41684564e12555e2ff353f19b8a6275406

17 years agoUpdate MIPS ISA description to work with new write result interface
Steve Reinhardt [Tue, 13 Feb 2007 16:09:09 +0000 (08:09 -0800)]
Update MIPS ISA description to work with new write result interface
for store conditional.

--HG--
extra : convert_revision : 73efd2ca17994e0e19c08746441874a2ac8183af

17 years agofix compiling problems
Ali Saidi [Tue, 13 Feb 2007 15:07:50 +0000 (10:07 -0500)]
fix compiling problems

--HG--
extra : convert_revision : 9ecfd5a0a151c03503e42faf98240da12fd719b1

17 years agoMerge all of the execution trace configuration stuff into
Nathan Binkert [Tue, 13 Feb 2007 08:59:01 +0000 (00:59 -0800)]
Merge all of the execution trace configuration stuff into
the traceflags infrastructure.  InstExec is now just Exec
and all of the command line options are now trace options.

--HG--
extra : convert_revision : 4adfa9dfbb32622d30ef4e63c06c7d87da793c8f

17 years agoRearrange traceflags.py so that the file generation only happens if
Nathan Binkert [Tue, 13 Feb 2007 08:16:41 +0000 (00:16 -0800)]
Rearrange traceflags.py so that the file generation only happens if
the script is invoked as main.  This allows us to import traceflags.py
if we just want the list of available flags.
Embed traceflags.py into the zipfile so it can be accessed from the
python side of things.  With this, print an error on invalid flags and
add --trace-help option that will print out the list of trace flags
that are compiled in.  If a flag is prefixed with a '-', now that flag
will be disabled.

--HG--
extra : convert_revision : 2260a596b07d127c582ff73474dbbdb0583db524

17 years agosome forgotten commits
Ali Saidi [Mon, 12 Feb 2007 23:40:08 +0000 (18:40 -0500)]
some forgotten commits

--HG--
extra : convert_revision : 213440066c700ed5891a6d4568928b7f3f2fe750

17 years agomake hver match legion
Ali Saidi [Mon, 12 Feb 2007 18:58:03 +0000 (13:58 -0500)]
make hver match legion

--HG--
extra : convert_revision : 5bfe4b943ca5b3e30a7097a46cab4f93dadd714f

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Mon, 12 Feb 2007 18:22:36 +0000 (13:22 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

src/cpu/simple/atomic.cc:
    merge steve's changes in.

--HG--
extra : convert_revision : a17eda37cd63c9380af6fe68b0aef4b1e1974231

17 years agorename store conditional stuff as extra data so it can be used for conditional swaps...
Ali Saidi [Mon, 12 Feb 2007 18:06:30 +0000 (13:06 -0500)]
rename store conditional stuff as extra data so it can be used for conditional swaps as well
Add support for a twin 64 bit int load
Add Memory barrier and write barrier flags as appropriate
Make atomic memory ops atomic

src/arch/alpha/isa/mem.isa:
src/arch/alpha/locked_mem.hh:
src/cpu/base_dyn_inst.hh:
src/mem/cache/cache_blk.hh:
src/mem/cache/cache_impl.hh:
    rename store conditional stuff as extra data so it can be used for conditional swaps as well
src/arch/alpha/types.hh:
src/arch/mips/types.hh:
src/arch/sparc/types.hh:
    add a largest read data type for statically allocating read buffers in atomic simple cpu
src/arch/isa_parser.py:
    Add support for a twin 64 bit int load
src/arch/sparc/isa/decoder.isa:
    Make atomic memory ops atomic
    Add Memory barrier and write barrier flags as appropriate
src/arch/sparc/isa/formats/mem/basicmem.isa:
    add post access code block and define a twinload format for twin loads
src/arch/sparc/isa/formats/mem/blockmem.isa:
    remove old microcoded twin load coad
src/arch/sparc/isa/formats/mem/mem.isa:
    swap.isa replaces the code in loadstore.isa
src/arch/sparc/isa/formats/mem/util.isa:
    add a post access code block
src/arch/sparc/isa/includes.isa:
    need bigint.hh for Twin64_t
src/arch/sparc/isa/operands.isa:
    add a twin 64 int type
src/cpu/simple/atomic.cc:
src/cpu/simple/atomic.hh:
src/cpu/simple/base.hh:
src/cpu/simple/timing.cc:
    add support for twinloads
    add support for swap and conditional swap instructions
    rename store conditional stuff as extra data so it can be used for conditional swaps as well
src/mem/packet.cc:
src/mem/packet.hh:
    Add support for atomic swap memory commands
src/mem/packet_access.hh:
    Add endian conversion function for Twin64_t type
src/mem/physical.cc:
src/mem/physical.hh:
src/mem/request.hh:
    Add support for atomic swap memory commands
    Rename sc code to extradata

--HG--
extra : convert_revision : 69d908512fb34a4e28b29a6e58b807fb1a6b1656

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Steve Reinhardt [Mon, 12 Feb 2007 17:27:32 +0000 (09:27 -0800)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  vm1.(none):/home/stever/bk/newmem-head

--HG--
extra : convert_revision : 496428e23050122a8a0029e5fddea261bef5729e

17 years agoMove store conditional result checking from SimpleAtomicCpu write
Steve Reinhardt [Mon, 12 Feb 2007 17:26:47 +0000 (09:26 -0800)]
Move store conditional result checking from SimpleAtomicCpu write
function into Alpha ISA description.  write now just generically
returns a result value if the res pointer is non-null (which means
we can only provide a res pointer if we expect a valid result
value).

--HG--
extra : convert_revision : fb1c315515787f5fbbf7d1af7e428bdbfe8148b8

17 years agocleanup
Nathan Binkert [Mon, 12 Feb 2007 14:26:52 +0000 (06:26 -0800)]
cleanup

--HG--
extra : convert_revision : 84114216854dfcd468115bbf5398333e98056a58

17 years agoGet rid of the FetchTrace since it doesn't appear to be
Nathan Binkert [Mon, 12 Feb 2007 14:24:39 +0000 (06:24 -0800)]
Get rid of the FetchTrace since it doesn't appear to be
used anywhere at all.

--HG--
extra : convert_revision : 141a45f2ec8ff3d82fdc787ded459ff28c109763

17 years agoClean up tracing stuff more, get rid of the trace log since
Nathan Binkert [Sat, 10 Feb 2007 23:14:50 +0000 (15:14 -0800)]
Clean up tracing stuff more, get rid of the trace log since
its not all that useful. Fix a few bugs with python/C++
integration.

--HG--
extra : convert_revision : a706512f7dc8b0c88f1ff96fe35ab8fbf9548b78

17 years agoGet rid of the Random context and add the support directly to python.
Nathan Binkert [Sat, 10 Feb 2007 00:44:02 +0000 (16:44 -0800)]
Get rid of the Random context and add the support directly to python.
We don't currently use randomness much, so I didn't go too far, but
in the future, we may want to actually expose the random number values
themselves to python.  For now, I'll at least let you seed it.
While we're at it, clean up a clearly bad way for generating random
doubles.

--HG--
extra : convert_revision : df2aa8b58dd0d9c2a7c771668a760b2df8db1e11

17 years agoClean up from my last commit to the trace stuff.
Nathan Binkert [Sat, 10 Feb 2007 00:30:06 +0000 (16:30 -0800)]
Clean up from my last commit to the trace stuff.

--HG--
extra : convert_revision : b6a975d1c4195a764ba875bc3aaaa064be4955b7

17 years agoRemove tracing file that's no longer needed
Nathan Binkert [Fri, 9 Feb 2007 22:49:14 +0000 (14:49 -0800)]
Remove tracing file that's no longer needed

--HG--
extra : convert_revision : 2c216ae8bb6a2ae70aea7ecc641d2417b3f5e0b5

17 years agoGet rid of the Trace ParamContext and give python direct
Nathan Binkert [Fri, 9 Feb 2007 22:39:56 +0000 (14:39 -0800)]
Get rid of the Trace ParamContext and give python direct
access to enabling/disabling tracing.  Command line is
unchanged except for the removal of --trace-cycle since
it's not so clear what that means.

--HG--
extra : convert_revision : c0164d92d3615d76d0c6acaabaafd92a9278212a