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

17 years agoUse c99 variadic macros for non gnu compilers
Nathan Binkert [Fri, 9 Feb 2007 04:59:11 +0000 (20:59 -0800)]
Use c99 variadic macros for non gnu compilers

--HG--
extra : convert_revision : 4e9fda42e9f5ed3e9f66e5bd178c45537792073b

17 years agoGet rid of the gross operator,()/variadic macro hack
Nathan Binkert [Thu, 8 Feb 2007 06:11:30 +0000 (22:11 -0800)]
Get rid of the gross operator,()/variadic macro hack
that made ccprintf and friends work, turn it into a
normal function (though it still has a slightly strange
implementation.)  All instances of variadic macros
are not yet removed, but I know how, and it will happen.

One side effect of this new implementation is that a
cprintf statement can now only have 16 parameters, though
it's easy enough to raise this number if needed.

--HG--
extra : convert_revision : 85cb3c17f8e2ecf9cd2f31ea80a760a28ea127a7

17 years agoQuick program to time how long ccprintf takes to write
Nathan Binkert [Thu, 8 Feb 2007 06:02:09 +0000 (22:02 -0800)]
Quick program to time how long ccprintf takes to write
to a stream compared to sprintf to a buffer.

--HG--
extra : convert_revision : de80724943d18aa110aa39cde9414252d9a7944c

17 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/newmem
Steve Reinhardt [Thu, 8 Feb 2007 03:33:44 +0000 (22:33 -0500)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/newmem
into  zizzer.eecs.umich.edu:/z/stever/bk/newmem-head

--HG--
extra : convert_revision : c56b8160b403fde235636ca5b5b4cecd206ffa4c

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Wed, 7 Feb 2007 21:43:47 +0000 (16:43 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : 60aabc4b93ef9d742f7e07363bd51f24170b85b8

17 years agoMerge zizzer.eecs.umich.edu:/bk/newmem
Steve Reinhardt [Wed, 7 Feb 2007 18:55:14 +0000 (10:55 -0800)]
Merge zizzer.eecs.umich.edu:/bk/newmem
into  vm1.(none):/home/stever/bk/newmem-head

--HG--
extra : convert_revision : c2350e01a052114a264f26551b13fca03a835c61

17 years agoMake memory commands dense again to avoid cache stat table explosion.
Steve Reinhardt [Wed, 7 Feb 2007 18:53:37 +0000 (10:53 -0800)]
Make memory commands dense again to avoid cache stat table explosion.
Created MemCmd class to wrap enum and provide handy methods to
check attributes, convert to string/int, etc.

--HG--
extra : convert_revision : 57f147ad893443e3a2040c6d5b4cdb1a8033930b

17 years agoMore DPRINTF cleanup.
Steve Reinhardt [Wed, 7 Feb 2007 07:53:48 +0000 (23:53 -0800)]
More DPRINTF cleanup.

--HG--
extra : convert_revision : db89cea42b46476d19333038522a6c144eafdab1

17 years agoInitialize the variable to something.
Nathan Binkert [Wed, 7 Feb 2007 06:32:37 +0000 (22:32 -0800)]
Initialize the variable to something.

--HG--
extra : convert_revision : bfe1e70130719ff239987d725b089c6d7152c541

17 years agoInclude compiler.hh since we use some of the #defines
Nathan Binkert [Wed, 7 Feb 2007 06:31:15 +0000 (22:31 -0800)]
Include compiler.hh since we use some of the #defines

--HG--
extra : convert_revision : 1040addcf3f52d8d9fed2930890dadf524205af9

17 years agoMinor DPRINTF fixes.
Steve Reinhardt [Wed, 7 Feb 2007 05:53:05 +0000 (21:53 -0800)]
Minor DPRINTF fixes.

--HG--
extra : convert_revision : 41956c9a480163ecac7807982215027e8ff1a4a9

17 years agoAdd short memtest run to quick regressions.
Steve Reinhardt [Wed, 7 Feb 2007 05:16:33 +0000 (21:16 -0800)]
Add short memtest run to quick regressions.
Caveats:
- Even though memtest is ISA-independent, it will only
run for the Alpha builds, since there's no way to specify
ISA-independent reference files and I didn't want to commit
3 copies since I'm not sure we want to run it for all the
different ISAs anyway.
- Reference outputs were generated on my laptop,
so performance numbers will be low compared to zizzer.

--HG--
extra : convert_revision : 210fe4abecc19fbab0b15402c6cb4863650bab66

17 years agomerge my index fix and lisa's fix
Ali Saidi [Tue, 6 Feb 2007 23:47:42 +0000 (18:47 -0500)]
merge my index fix and lisa's fix

--HG--
extra : convert_revision : 5f2c7d46c96fa061bbfb66edf188d405ca600020

17 years agomark ldst[0] instrutions at DelayedCommit so we don't take an interrupt in the middle...
Ali Saidi [Tue, 6 Feb 2007 23:22:33 +0000 (18:22 -0500)]
mark ldst[0] instrutions at DelayedCommit so we don't take an interrupt in the middle of one

--HG--
extra : convert_revision : 671549c2f0361679bc1e128744dcb60f44ea021e

17 years agoFix for LL/SC that Ron sent me.
Kevin Lim [Tue, 6 Feb 2007 20:54:44 +0000 (15:54 -0500)]
Fix for LL/SC that Ron sent me.

--HG--
extra : convert_revision : b3510a23d8a9eb466939f38491a109c3a65a7363

17 years agomore fp fixes
Ali Saidi [Tue, 6 Feb 2007 20:52:33 +0000 (15:52 -0500)]
more fp fixes
fix unaligned accesses in mmaped disk device

src/arch/sparc/isa/decoder.isa:
    get (ld|st)fsr ops working right. In reality the fp enable check needs to go higher up in the emitted code
src/arch/sparc/isa/formats/basic.isa:
    move the cexec into the aexec field
src/cpu/exetrace.cc:
    copy the exception state from legion when we get it wrong. We aren't going to get it right without an fp emulation layer
src/dev/sparc/mm_disk.cc:
src/dev/sparc/mm_disk.hh:
    fix unaligned accesses in the memory mapped disk device

--HG--
extra : convert_revision : aaa33096b08cf0563fe291d984a87493a117e528

17 years agoUse perl FindBin package to set path to rundiff to the
Steve Reinhardt [Tue, 6 Feb 2007 18:06:11 +0000 (10:06 -0800)]
Use perl FindBin package to set path to rundiff to the
directory where tracediff is.

--HG--
extra : convert_revision : f0cc0af264aa624cbacbf3ba42b6b64f90a8e759

17 years agoFix for previous commit: need to ifdef NDEBUG on the
Steve Reinhardt [Tue, 6 Feb 2007 18:04:44 +0000 (10:04 -0800)]
Fix for previous commit: need to ifdef NDEBUG on the
definition as well as the declaration.

--HG--
extra : convert_revision : 4f073fa6b47bf21abf58d92cb1c9eed699c9c89e

17 years agoUse an instance counter to give Events repeatable IDs
Steve Reinhardt [Tue, 6 Feb 2007 06:05:00 +0000 (22:05 -0800)]
Use an instance counter to give Events repeatable IDs
in debugging mode (especially valuable for tracediff).

--HG--
extra : convert_revision : 227434a06b5271a8300f2f6861bd06c4ac19e6c4

17 years agomore sparc fixes
Ali Saidi [Sat, 3 Feb 2007 00:02:27 +0000 (19:02 -0500)]
more sparc fixes

src/arch/sparc/isa/decoder.isa:
    fix rdgsr fault check
src/arch/sparc/tlb.cc:
    block asis are now supported

--HG--
extra : convert_revision : cf55d648d2c5184fab03b6fe057d0e33c1dfc393

17 years agomake interrupt code serialize itself and fix indenting
Ali Saidi [Fri, 2 Feb 2007 23:05:21 +0000 (18:05 -0500)]
make interrupt code serialize itself and fix indenting

--HG--
extra : convert_revision : d0bb23c7922568586b640084ac719e809cc8422f

17 years agofix mostly floating point related
Ali Saidi [Fri, 2 Feb 2007 23:04:42 +0000 (18:04 -0500)]
fix mostly floating point related

src/arch/sparc/floatregfile.cc:
    fix fp read/writing to registers... looking for suggestions on cleaner ways if anyone has them
src/arch/sparc/isa/decoder.isa:
    fix some fp implementations
src/arch/sparc/isa/formats/basic.isa:
    add new fp op class that 0 cexec in fsr and sets rounding mode for the up comming op
src/arch/sparc/isa/includes.isa:
    include the appropriate header files for the rounding code
src/arch/sparc/miscregfile.cc:
    print fsr out when it's read/written and the Sparc traceflgas in on
src/cpu/exetrace.cc:
    fix printing of float registers

--HG--
extra : convert_revision : 49faab27f2e786a8455f9ca0f3f0132380c9d992

17 years agoMerge zizzer:/bk/newmem
Lisa Hsu [Thu, 1 Feb 2007 20:35:26 +0000 (15:35 -0500)]
Merge zizzer:/bk/newmem
into  zed.eecs.umich.edu:/z/hsul/work/sparc/x86.m5

--HG--
extra : convert_revision : 62a0017a1147631513db7878f4e4d08fca776bc1

17 years agoonly increment numPosted if an interrupt of that type hasn't been posted before.
Lisa Hsu [Thu, 1 Feb 2007 20:34:52 +0000 (15:34 -0500)]
only increment numPosted if an interrupt of that type hasn't been posted before.

--HG--
extra : convert_revision : 6671c594b78d2e38449069157f39af96b81340f2

17 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/newmem
Gabe Black [Thu, 1 Feb 2007 00:44:50 +0000 (19:44 -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 : c02e184f69251dc6eeccdcb244788365aa12f7ee

17 years agoCreate reference outputs for this regression.
Gabe Black [Wed, 31 Jan 2007 23:47:23 +0000 (18:47 -0500)]
Create reference outputs for this regression.

--HG--
extra : convert_revision : 91e0144fef3f66d413417ad0318f43f752494e3c

17 years agomake sparc fs less chatty
Ali Saidi [Wed, 31 Jan 2007 23:32:27 +0000 (18:32 -0500)]
make sparc fs less chatty

src/SConscript:
    strip doesn't take a src and dest in solaris

--HG--
extra : convert_revision : 57f95eda0e3232475a5b55753ace3f3f0fced8b3

17 years agoMerge zizzer:/bk/newmem
Ali Saidi [Tue, 30 Jan 2007 23:27:16 +0000 (18:27 -0500)]
Merge zizzer:/bk/newmem
into  zeep.pool:/z/saidi/work/m5.newmem

--HG--
extra : convert_revision : 276b640c5c5a51e88e9bd630960ad462d9f0cb8d

17 years agoadd fsr to the list of registers we are interested in
Ali Saidi [Tue, 30 Jan 2007 23:27:04 +0000 (18:27 -0500)]
add fsr to the list of registers we are interested in

--HG--
extra : convert_revision : 2cc0d0144abab264aa0ec8c07242cdab2dffd4f8

17 years agoMake SPARC checkpointing work
Ali Saidi [Tue, 30 Jan 2007 23:25:39 +0000 (18:25 -0500)]
Make SPARC checkpointing work

src/arch/sparc/floatregfile.cc:
    Fix serialization for fpreg
src/arch/sparc/intregfile.cc:
    fix serialization for intreg
src/arch/sparc/miscregfile.cc:
    fix serialization from miscreg
src/arch/sparc/pagetable.cc:
    fix serialization for page table
src/arch/sparc/regfile.cc:
    need to serialize nnpc
src/arch/sparc/tlb.cc:
    write serialization code for tlb
src/cpu/base.cc:
    provide a way to find the thread number a context is
    serialize the instruction counter
src/cpu/base.hh:
    provide a way to find the thread number a context is
    and given a thread number find a context pointer
src/cpu/cpuevent.hh:
    provide method to get thread context from a cpu event for serialization
src/dev/sparc/t1000.cc:
src/dev/sparc/t1000.hh:
    nothing to serialize in t1000
src/sim/serialize.cc:
src/sim/serialize.hh:
    Make findObj() work (it hasn't since we did the python conversion stuff)

--HG--
extra : convert_revision : a95bc4e3c3354304171efbe3797556fdb146bea2