gem5.git
19 years agofew more stat items to serialize
Erik Hallnor [Sat, 2 Oct 2004 16:43:59 +0000 (12:43 -0400)]
few more stat items to serialize

kern/kernel_stats.cc:
    Few more items to serialize

--HG--
extra : convert_revision : b816512735928cbde0b24bf8cb48deec9fb26413

19 years agoFixes to kernel to get checkpoints to work again.
Erik Hallnor [Sat, 2 Oct 2004 16:34:54 +0000 (12:34 -0400)]
Fixes to kernel to get checkpoints to work again.

kern/kernel_stats.cc:
    Serialize idleProcess.
kern/system_events.cc:
    Remove the idle start event once it runs.

--HG--
extra : convert_revision : 05ac574558a88b86ccfce963e4ca9b037a1a8509

19 years agoMake printouts look more like stats.
Erik Hallnor [Fri, 1 Oct 2004 20:31:13 +0000 (16:31 -0400)]
Make printouts look more like stats.

cpu/trace/opt_cpu.cc:
    Change printout to look more like real stats, should really just make these stats someday.

--HG--
extra : convert_revision : cd5db4657a53abeda0417ca6ba4407d366408358

19 years agoUpdates to make traces work correctly in all circumstances. Add opt set associative...
Erik Hallnor [Thu, 30 Sep 2004 05:46:48 +0000 (01:46 -0400)]
Updates to make traces work correctly in all circumstances. Add opt set associative simulation.

cpu/trace/opt_cpu.cc:
cpu/trace/opt_cpu.hh:
    Add the ability to simulate less than fully-associative opt caches.
cpu/trace/reader/itx_reader.cc:
    Add writeback to the command list.

--HG--
extra : convert_revision : a9c9c4be3358f4083d7e85772620441a3ad809db

19 years agoAdd opt cpu and fix page copy warnings
Erik Hallnor [Tue, 28 Sep 2004 20:55:55 +0000 (16:55 -0400)]
Add opt cpu and fix page copy warnings

SConscript:
    Add opt_cpu
cpu/simple_cpu/simple_cpu.cc:
    Fix page spanning copy warning.
cpu/trace/reader/itx_reader.cc:
    Fix reader to return correct address.

--HG--
extra : convert_revision : f03e244971af4197743c7c717d64f21db0ae42d3

19 years agoonly set stuff up for binning interrupts if interrupt binning is on
Ali Saidi [Fri, 24 Sep 2004 18:16:51 +0000 (14:16 -0400)]
only set stuff up for binning interrupts if interrupt binning is on

kern/linux/linux_system.cc:
    Don't scheduling interrupt events if we are not binning interrupts
kern/tru64/tru64_system.cc:
    set the bin_int boolean in the system structure

--HG--
extra : convert_revision : 68eea9c448f1c481fc79be1777acb536d6385495

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5-smp
Ali Saidi [Wed, 22 Sep 2004 22:39:37 +0000 (18:39 -0400)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5-smp

--HG--
extra : convert_revision : 19dc01e1c0d2c0ba6b4d804b902429fb0a6a5552

19 years agofix unaligned memory offset and some small fixes to interrupt binning
Ali Saidi [Wed, 22 Sep 2004 22:25:06 +0000 (18:25 -0400)]
fix unaligned memory offset and some small fixes to interrupt binning
code

arch/alpha/alpha_memory.cc:
    Fixed unaligned trap faults
arch/alpha/ev5.cc:
    little more verbose faulting information
kern/linux/linux_system.cc:
    more descriptive errors, and the correct offsets from symbols
sim/system.cc:
    load local pal symbols

--HG--
extra : convert_revision : 0c81badf77321d5e1a060dcae2d42204e5a1fc84

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Tue, 21 Sep 2004 05:42:10 +0000 (01:42 -0400)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : cbe53e9404ac592b7c89bb35831e0d20539e0f9c

19 years agoa bit more cleaning of the network header wrappers.
Nathan Binkert [Tue, 21 Sep 2004 05:41:55 +0000 (01:41 -0400)]
a bit more cleaning of the network header wrappers.

base/inet.hh:
    add functions to the various headers to grab the most common
    encapsulated protocols.  This could easily get out of hand, but
    we're just worrying about tcp, udp, and ip for now.

    add common functions size(), bytes(), and payload() to all wrappers.
    size() gets the header size
    bytes() returns a uint8_t * to the beginning of the header
    payload() returns a uint8_t * to the beginning of the payload.
dev/etherpkt.cc:
dev/etherpkt.hh:
    don't cache pointers to headers.  It's probably not worth the
    hassle.

--HG--
extra : convert_revision : ba9df85ac019b8a48233042dde79fb9da9546410

19 years agoUpdate copies to work around alignment faults.
Erik Hallnor [Tue, 21 Sep 2004 02:00:35 +0000 (22:00 -0400)]
Update copies to work around alignment faults.

arch/alpha/isa_desc:
    whitespace fix.
cpu/simple_cpu/simple_cpu.cc:
    Add support to make sure we don't get alignment faults in copies. Warn if we go over an 8k page boundary.

--HG--
extra : convert_revision : 98b38da86a66215d80ea9eb6e6f1f68ee573cb57

19 years agoClean up network header stuff and make it more generic. Use
Nathan Binkert [Mon, 20 Sep 2004 14:43:53 +0000 (10:43 -0400)]
Clean up network header stuff and make it more generic.  Use
libdnet when we can instead of our own home grown stuff.

SConscript:
    separate the crc code into its own file
base/inet.cc:
    move the crc stuff to crc.cc
    add generic code for calculating ip/tcp/udp checksums
base/inet.hh:
    -  move crc stuff to crc.hh
    -  #include all of the libdnet stuff.  (this makes base/inet.hh the
    only file you need to include if you want to use this kind of stuff.)
    -  Wrap some of the libdnet structs to get easier access to structure
    members.  These wrappers will automatically deal with masking/shifting/
    byte-swapping.
base/refcnt.hh:
    If one derives from RefCountingPtr, they should have access to
    the internal data pointer.
build/SConstruct:
    make #include of dnet stuff work
dev/etherlink.cc:
dev/ethertap.cc:
dev/ethertap.hh:
    EtherPacket -> PacketData
dev/etherpkt.cc:
    EtherPacket -> PacketData
    add a function for populating extra info about a packet.
    Basically just gives pointers to ethernet/ip/tcp/udp headers
    if they exist.
dev/etherpkt.hh:
    EtherPacket -> PacketData
    remove most of the packet header stuff from teh PacketData
    class and just add a few generic functions for grabbing various
    headers that may exist in the packet.  The old functionality is
    contained in the headers.
dev/ns_gige.cc:
    -  IP -> Ip, UDP -> Udp, TCP ->Tcp when used in variable names
    -  get rid of our own byte swapping functions.
    -  whack checksum code and use libdnet version.
    -  Get pointers to the various packet headers and grab info from
    those headers.  (The byte swapping in the headers now.)
    -  Add stats for Udp Checksums
dev/ns_gige.hh:
    use libdnet for checksum code.
    IP -> Ip, TCP -> Tcp in variable names
    add stats for UDP checksums

--HG--
extra : convert_revision : 96c4160e1967b7c0090acd456df4a76e1f3aab53

19 years agopc event now clears lower 2 bits
Ali Saidi [Thu, 16 Sep 2004 19:11:38 +0000 (15:11 -0400)]
pc event now clears lower 2 bits
always build with dynamic libraries for mysqlclient

SConscript:
    always use dynamic library now
cpu/pc_event.hh:
    cleared lower 2 bits, since everything must be 4byte aligned

--HG--
extra : convert_revision : 332ecd25a598e6a46a79bd653449aa7eb22a580a

19 years agoswitch contexts on palcode rather than kernel code
Ali Saidi [Thu, 16 Sep 2004 04:37:21 +0000 (00:37 -0400)]
switch contexts on palcode rather than kernel code

cpu/pc_event.cc:
    mask off lower three bits so we can have an event in palcode

--HG--
extra : convert_revision : 49fcdc5c359ca2bd9149f092f80f77abcd7b20ee

19 years agoupdate object descriptions
Nathan Binkert [Tue, 14 Sep 2004 17:28:43 +0000 (13:28 -0400)]
update object descriptions

--HG--
extra : convert_revision : 686d827549419e6a834687d91d040144df2b62ad

19 years agoMerge zizzer:/bk/m5
Ali Saidi [Fri, 10 Sep 2004 18:36:27 +0000 (14:36 -0400)]
Merge zizzer:/bk/m5
into zizzer.eecs.umich.edu:/.automount/zeep/z/saidi/work/m5-smp

--HG--
extra : convert_revision : b49d62dc75682f568e3e02f6a7ee37e4560b8b39

19 years agofix the options stuff
Nathan Binkert [Fri, 10 Sep 2004 18:34:23 +0000 (14:34 -0400)]
fix the options stuff

util/stats/stats.py:
    get the options from the options struct now
    gratuitously change the output directory for graphs.

--HG--
extra : convert_revision : 468f34bdc2c8b5fc3a393eaa4da4ec288e35c8c7

19 years agoadded system option to bin interrupt code seperately.
Ali Saidi [Fri, 3 Sep 2004 18:12:59 +0000 (14:12 -0400)]
added system option to bin interrupt code seperately.

arch/alpha/ev5.cc:
    set the mode explictly rather than having a bool user/notuser
cpu/simple_cpu/simple_cpu.hh:
    there is no class Kernel
kern/kernel_stats.cc:
    use cpu_mode_num
kern/kernel_stats.hh:
    add interrupt mode and use cpu_mode_num rather than constant
kern/linux/linux_system.cc:
kern/linux/linux_system.hh:
kern/system_events.cc:
kern/system_events.hh:
    add events to change the mode to/from interrupt
sim/system.cc:
sim/system.hh:
    add a pal symbol table

--HG--
extra : convert_revision : 9d30e826b72122062a5ea12d094f94760e75c66a

19 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
Erik Hallnor [Thu, 2 Sep 2004 15:27:45 +0000 (11:27 -0400)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/ehallnor/work/m5

--HG--
extra : convert_revision : 3f1842ffa9c193fbbdcfefb5aa364671b3d90785

19 years agoUpdate tracing functionality and add an ITX trace writer.
Erik Hallnor [Thu, 2 Sep 2004 15:27:38 +0000 (11:27 -0400)]
Update tracing functionality and add an ITX trace writer.

SConscript:
    Add build support for ITX trace writer
cpu/trace/reader/itx_reader.cc:
    Handle full 36 bit physical addressses.
cpu/trace/reader/itx_reader.hh:
    Need a string header file here
cpu/trace/trace_cpu.cc:
cpu/trace/trace_cpu.hh:
    Modify trace CPU to take a single trace and drive an instruction and data interfaces.

--HG--
extra : convert_revision : 4c81f2f9d9341df41f0ae45e4bda49800a43977c

19 years agoUpdates to make SMP work.
Ali Saidi [Wed, 1 Sep 2004 03:47:57 +0000 (23:47 -0400)]
Updates to make SMP work.

dev/tsunami_cchip.cc:
    updates to ipi handling chipset code
sim/system.cc:
    debugSymbolTable, now has symbols from pal, console, and linux

--HG--
extra : convert_revision : c981d857f7e3d75f4c46172809e6d14e5f0a1238

19 years agoFixup interrupting of the ethernet device.
Nathan Binkert [Fri, 20 Aug 2004 15:40:57 +0000 (11:40 -0400)]
Fixup interrupting of the ethernet device.

dev/ns_gige.cc:
    clean up the interrupt handling code so that it is simpler and
    less prone to bugs.  I hope I removed the bug where the:
    assert(intrTick >= curTick || intrTick == 0); would get triggered.
    I'm pretty sure that was due to intrTick not being cleared when
    the interrupt was cleared.

    This code probably still needs to be looked at more closely to
    make sure interrupts are not missed.

--HG--
extra : convert_revision : 61e2eb043540f2534a80c9b633006a71e7d6e282

19 years agostd::
Nathan Binkert [Fri, 20 Aug 2004 15:36:19 +0000 (11:36 -0400)]
std::

--HG--
extra : convert_revision : 623b18587c4827a0de4841cee7fc68817d4b9427

19 years ago- Clean up and factor out all of the binning code into a
Nathan Binkert [Fri, 20 Aug 2004 15:35:31 +0000 (11:35 -0400)]
-  Clean up and factor out all of the binning code into a
single place so it's easier to work with.
-  Add support for binning kernel/user/idle time separately from
lisa's binning stuff, but make the two compatible.
-  KernelStats used to directly implement the pImpl idiom, but
it makes more sense to just remove the level of indirection and
make the exec context have a pointer to the stats.
-  Factor common code out of LinuxSystem and Tru64System and put
it into the System base class.  While doing that, make all
constructors take a pointer to a parameter struct instead of
naming the parameters individually to make it much easier to add
parameters to these classes.

SConscript:
    Move the function tracking and binning stuff around.
arch/alpha/ev5.cc:
    kernelStats is now a pointer
arch/alpha/pseudo_inst.cc:
    kernelStats is now a pointer
    the parameters to the system have been moved into their own
    struct
base/trace.hh:
    provide a little functor class for wrapping a string that
    can allow you to define name() in any scope very simply
    for use with DPRINTF
cpu/base_cpu.cc:
    New order of arguments for consistency.
cpu/exec_context.cc:
    kernelStats no longer has the level of indirection in it,
    execContext has the indirection now.  so, kernelStats is a pointer.
    We also need a pointer to the kernelBinning stuff from the system
    and we need to figure out if we want to do binning or not.
    Move a whole bunch of code into kern_binning.cc so it's all
    in the same place.
cpu/exec_context.hh:
    We want pointers to the kernel binning/stats stuff and we'll
    have the exec_context and system have the level of indirection
    instead of having the extra layer in the kernel stats class.
cpu/simple_cpu/simple_cpu.cc:
    call through the exec context to do the special binning
    stuff.
kern/kernel_stats.cc:
kern/kernel_stats.hh:
    Re-organize the stats stuff and remove the level of indirection
    (that was there to simplify building) and move the binning stuff
    into its own class/file.
kern/linux/linux_system.cc:
kern/linux/linux_system.hh:
kern/tru64/tru64_system.cc:
kern/tru64/tru64_system.hh:
sim/system.cc:
sim/system.hh:
    move lots of common system code into the base system class so
    that it can be shared between linux, tru64, and whatever else
    we decide to support in the future.

    Make the constructor take a pointer to a parameter struct so that
    it is easier to pass parameters to the parent.
kern/system_events.cc:
    move the majority of the binning code into the Kernel::Binning class
    in the kern_binning file
kern/system_events.hh:
    FnEvents only need to know the bin
    create the Idle start event to find the PCBB of the idle
    process when it starts.
kern/tru64/tru64_events.cc:
    memCtrl -> memctrl
sim/process.cc:
sim/process.hh:
    re-order args for consistency

--HG--
extra : convert_revision : 86cb39738c41fcd680f2aad125c9dde000227b2b

19 years ago-DUSE_MYSQL so that mysql stuff builds properly
Nathan Binkert [Fri, 20 Aug 2004 14:29:54 +0000 (10:29 -0400)]
-DUSE_MYSQL so that mysql stuff builds properly

--HG--
extra : convert_revision : 22d2de08460df7a2016cea162057e44bfd6df010

19 years agoadded nate's memtest code to devtime
Ali Saidi [Thu, 19 Aug 2004 03:12:16 +0000 (23:12 -0400)]
added nate's memtest code to devtime

util/ccdrv/devtime.c:
    incorperated nate's changes for memory testing.

--HG--
extra : convert_revision : 6c479dd6b9a79659bb4cfd3e03b794909b14db3b

19 years agoAdded code using VPtr to be able to extract info from linux thread
Ali Saidi [Thu, 19 Aug 2004 03:06:51 +0000 (23:06 -0400)]
Added code using VPtr to be able to extract info from linux thread
structures.
Added event to print out currently running task

base/traceflags.py:
    Added Thread trace flag
kern/linux/linux_system.cc:
kern/linux/linux_system.hh:
    Added event to print out currently running task

--HG--
extra : convert_revision : 94347dbaf90f39eb40467b2a43b4628a3deafc6c

19 years agoFix a small bug in parameter processing that would always result
Nathan Binkert [Tue, 17 Aug 2004 15:19:04 +0000 (11:19 -0400)]
Fix a small bug in parameter processing that would always result
in at least on entry in a VectorParam even if the string was
empty.

sim/param.cc:
    if there are no parameters, leave the vector empty.

--HG--
extra : convert_revision : d0d41baa8c77651a27ac6a4d02cc388711f47dbe

19 years agoFix SConstruct file to allow you to override the compilers
Nathan Binkert [Mon, 16 Aug 2004 21:27:38 +0000 (17:27 -0400)]
Fix SConstruct file to allow you to override the compilers

build/SConstruct:
    Make it possible to override the CC and CXX environment
    variables.

--HG--
extra : convert_revision : e1b68ae9b1b7011cc494bfa9ee688aa72929a2e3

19 years agoMake the mysql stuff work with scons
Nathan Binkert [Mon, 16 Aug 2004 18:20:20 +0000 (14:20 -0400)]
Make the mysql stuff work with scons

SConscript:
    Make the mysql stuff work.
    Add specific support to statically link in the mysql client on
    linux machines so that we don't need to worry about what's
    installed on the pool.

--HG--
extra : convert_revision : 2317c3163cefc8e4d857929e313afd53c616e2a5

19 years agoWhack the make stuff since it doesn't work anymore anyway.
Nathan Binkert [Wed, 11 Aug 2004 14:19:22 +0000 (10:19 -0400)]
Whack the make stuff since it doesn't work anymore anyway.
We're solely using SCons now.

--HG--
extra : convert_revision : 122b255e3143d1192c136211cbf3618ff7262fa9

19 years agocommented script with various kernel parameter tweaks for better
Nathan Binkert [Wed, 11 Aug 2004 14:17:11 +0000 (10:17 -0400)]
commented script with various kernel parameter tweaks for better
network performance

--HG--
extra : convert_revision : 9fd2f18a0d2b79942661d764d90177a50754d9c0

19 years agocleanup interrupt code for gigabit device
Nathan Binkert [Wed, 11 Aug 2004 14:14:26 +0000 (10:14 -0400)]
cleanup interrupt code for gigabit device

dev/ns_gige.cc:
    Clean up the interrupt code.  Do a better job determining when
    coalescing should happen.
    Remove some bogus comments
    Stop using magic numbers in initialization and comment what
    the various numbers do
dev/ns_gige_reg.h:
    #define describing which interrupts cannot be delayed and
    which interrrupts we don't implement

--HG--
extra : convert_revision : eb196afa0bf448e1849dd2bd30dde32134effee7

19 years agostd::
Nathan Binkert [Wed, 11 Aug 2004 13:05:13 +0000 (09:05 -0400)]
std::

--HG--
extra : convert_revision : 8383048265ef5b4d7c995dbf44f7d85e349ddbde

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
Ali Saidi [Tue, 10 Aug 2004 17:32:15 +0000 (13:32 -0400)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5

--HG--
extra : convert_revision : 006842b706c7d972f6722b2767c82c6761c447b2

19 years agotweak a bunch of kernel parameters to get better performance
Nathan Binkert [Tue, 10 Aug 2004 13:08:36 +0000 (09:08 -0400)]
tweak a bunch of kernel parameters to get better performance

--HG--
extra : convert_revision : 57cca576fac4013027c2cb6c85cc73cbbcf772ae

19 years agoTotally re-do/reorganize the python part of the statistics code
Nathan Binkert [Tue, 10 Aug 2004 01:20:52 +0000 (21:20 -0400)]
Totally re-do/reorganize the python part of the statistics code
Make the database creation/removal/cleanup code use python
Make formulas work with the database
Add support to do some graphing, but needs more work
Still need to work on vectors, 2d vectors, dists and vectordists

--HG--
extra : convert_revision : 1a88320dcc036a3751e8a036770766dce76a568c

19 years agoSplit libelf/SConscript into two parts, one for the
Steve Reinhardt [Sat, 7 Aug 2004 21:23:01 +0000 (14:23 -0700)]
Split libelf/SConscript into two parts, one for the
shared build and one for the per-config header file
copying.

SConscript:
    Just include libelf/SConscript-local.
build/SConstruct:
    Include libelf/SConscript-global.

--HG--
extra : convert_revision : 0a4ae8f1514819f99fec101b898c19dabd4d59bd

19 years agomake_c_file.py, load_odescs.py:
Steve Reinhardt [Sat, 7 Aug 2004 06:38:27 +0000 (02:38 -0400)]
make_c_file.py, load_odescs.py:
Change mode to -rwxrwx--x

--HG--
extra : convert_revision : 253dc560ed7b1f321635a9420e47d6d6e53c30ad

19 years agoIntegrate Python configuration script parsing into m5 itself.
Steve Reinhardt [Thu, 5 Aug 2004 09:03:47 +0000 (02:03 -0700)]
Integrate Python configuration script parsing into m5 itself.

SConscript:
    Add pyconfig/{pyconfig,code}.cc
    Add list of object description (.od) files.
    Include pyconfig/SConscript.
base/inifile.cc:
    Get rid of CPP_PIPE... it never really worked anyway.
base/inifile.hh:
    Make load(ifstream&) method public so pyconfig
    code can call it.
sim/main.cc:
    Handle Python config scripts (end in '.py' instead of '.ini').
sim/pyconfig/m5configbase.py:
    Add license.
    Fix minor __setattr__ problem (2.3 related?)

--HG--
rename : util/config/m5configbase.py => sim/pyconfig/m5configbase.py
extra : convert_revision : 5e004922f950bfdefced333285584b80ad7ffb83

19 years agoMove libelf/SConscript include to m5/SConscript, so elf
Steve Reinhardt [Wed, 4 Aug 2004 05:46:03 +0000 (22:46 -0700)]
Move libelf/SConscript include to m5/SConscript, so elf
headers get created in build tree (under build/FOO/libelf)
instead of source tree (m5/libelf).

SConscript:
    Move libelf/SConscript include here.
build/SConstruct:
    Get rid of libelf/SConscript include (moved to
    m5/SConscript).

--HG--
extra : convert_revision : c0acb3bab2afa5079748b907c5917f548582099e

19 years agoadded p4 config
Ali Saidi [Tue, 3 Aug 2004 22:05:54 +0000 (18:05 -0400)]
added p4 config

--HG--
extra : convert_revision : e64b1d6340f7a262653847f15f736e25356ed2d2

19 years agomerged full_cpu.ini, system.ini and devtime.c
Ali Saidi [Mon, 2 Aug 2004 21:16:54 +0000 (17:16 -0400)]
merged full_cpu.ini, system.ini and devtime.c

util/ccdrv/devtime.c:
    coding style

--HG--
extra : convert_revision : 972941e100ba13a2ece0986454c4a3485841d9cb

19 years agoadded m5 debug and m5 switch cpu instruction (doesn't work yet) and
Ali Saidi [Mon, 2 Aug 2004 21:10:02 +0000 (17:10 -0400)]
added m5 debug and m5 switch cpu instruction (doesn't work yet) and
a p4 memory/cpu config

arch/alpha/alpha_memory.cc:
    Added code to fault on an unaligned access
arch/alpha/isa_desc:
arch/alpha/pseudo_inst.cc:
arch/alpha/pseudo_inst.hh:
    Added m5debug break and m5switchcpu (the latter doesn't work)

--HG--
extra : convert_revision : 409e73adb151600a4fea49f35bf6f503f66fa916

19 years agofix compile
Nathan Binkert [Mon, 2 Aug 2004 19:42:25 +0000 (15:42 -0400)]
fix compile

base/stats/events.cc:
    Make this compile with MYSQL stuff

--HG--
extra : convert_revision : e4e8f9b078447f5e7f535b2678a2ed7d44fa8644

19 years agomoved alpha access to an unused part of the uncachebale address
Ali Saidi [Sun, 1 Aug 2004 04:52:32 +0000 (00:52 -0400)]
moved alpha access to an unused part of the uncachebale address
space in tsunami.

--HG--
extra : convert_revision : 53eb2ed0cf869565b76d1576c65e29fb3df4dcb6

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5-dprintk
Ali Saidi [Sat, 31 Jul 2004 04:55:15 +0000 (00:55 -0400)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5-dprintk

--HG--
extra : convert_revision : d26b89ff1bf224dbcd6c9eeeab361f516a8d7360

19 years agofew forgotten changes for dprintk
Ali Saidi [Sat, 31 Jul 2004 04:55:05 +0000 (00:55 -0400)]
few forgotten changes for dprintk

SConscript:
    Added printk to scons
kern/linux/linux_system.cc:
kern/linux/printk.cc:
    Forgot to commit this dprintk change

--HG--
extra : convert_revision : d9a71835b55ece7e84b34632ee6646ac2d0535da

19 years agoadded printk.cc to the sconsscript so it will actually build.
Lisa Hsu [Sat, 31 Jul 2004 01:14:05 +0000 (21:14 -0400)]
added printk.cc to the sconsscript so it will actually build.

SConscript:
    grrr, spent half an hour looking for why the linker was dying.  needed to include the new file printk.cc

--HG--
extra : convert_revision : 4c461d9dbe96e94d7c312bf71ee8ad4c87a3b1a1

19 years agoAdded debug printk support
Ali Saidi [Fri, 30 Jul 2004 21:13:24 +0000 (17:13 -0400)]
Added debug printk support

arch/alpha/ev5.hh:
    Added max address PAL code can be at
arch/alpha/vtophys.cc:
    Check max address pal can be at so we don't do the wrong conversion
    if gdb asks for an unaligned access.

--HG--
extra : convert_revision : b44f6a8fcd8582337a7d4033f28137c7e718a6a8

19 years agoClean up the functional memory debugging stuff a bit.
Nathan Binkert [Fri, 30 Jul 2004 16:57:12 +0000 (12:57 -0400)]
Clean up the functional memory debugging stuff a bit.

--HG--
extra : convert_revision : 3e05996af51c1c051b044864b50edb21e39368e4

19 years agoname this stat since it makes life easier with the mysql stuff
Nathan Binkert [Fri, 30 Jul 2004 15:37:15 +0000 (11:37 -0400)]
name this stat since it makes life easier with the mysql stuff

--HG--
extra : convert_revision : cad76b1741f17e183285a8805198345bd815e98b

19 years agobetter debugging
Nathan Binkert [Fri, 30 Jul 2004 15:33:45 +0000 (11:33 -0400)]
better debugging

dev/ns_gige.cc:
    Make all DPRINTF statements take one line. If they need two lines,
    break them up into separate statements.  This makes grep much more
    effective since *every* line will be prefixed by the cycle that the
    trace message is from and the object that caused the message.
    normalize some debugging statements so that searching is easier
    (e.g. always say rxState, not rx state or receive state)
    break into the debugger when a packet is dropped since we don't really
    like dropping packets.

--HG--
extra : convert_revision : 9cf309ca2143a6b8c8215ac5dd6a31aae60173cd

19 years agoFix a few bugs in the receive state machine. In doing back to tracking
Nathan Binkert [Fri, 30 Jul 2004 15:29:45 +0000 (11:29 -0400)]
Fix a few bugs in the receive state machine.  In doing back to tracking
whether or not the state machine is enabled rather than tracking the
specific instance of trying to halt the state machine.

dev/ns_gige.cc:
    change back to tracking the state machine's enableness instead of
    whether or not it is trying to halt.  Also fix a major bug that
    would cause the NIC to drop packets when the rx state machine was
    idle, but enabled.
    Fix a couple other bugs in the state machine where the idle interrupt
    would happen at the wrong time.
    Add a warning to deal with improper values of intrTick
dev/ns_gige.hh:
    We need to keep track of whether the state machine is enabled
    or not separately from the control register since the bits don't
    always reflect the truth.

--HG--
extra : convert_revision : 20056b225fa62a0744473babfd693506aa5f29b2

19 years agomake all ethernet dma use the new interface
Nathan Binkert [Fri, 30 Jul 2004 15:17:20 +0000 (11:17 -0400)]
make all ethernet dma use the new interface

--HG--
extra : convert_revision : 1cab883fac2bffd83cb035ebf28958c15118dfdc

19 years agobetter debugging of DMA operations
Nathan Binkert [Fri, 30 Jul 2004 15:09:03 +0000 (11:09 -0400)]
better debugging of DMA operations

dev/ns_gige.cc:
    use the new PhysicalMemory dma_read and dma_write functions

--HG--
extra : convert_revision : 427049d43355f02ac8bdfe2e60c24825dd734006

19 years agoImprove the debuggability of FunctionalMemory objects by allowing
Nathan Binkert [Fri, 30 Jul 2004 14:59:59 +0000 (10:59 -0400)]
Improve the debuggability of FunctionalMemory objects by allowing
the user to choose which objects will break  (so you can have only
the client system break for example.)  Add features to differentiate
between breaking on reads and writes and break when an address gets
a specific data value.

--HG--
extra : convert_revision : b8b2d1b43832bf74ee75b3f789df829f5b876a17

19 years agoMove all of the object matching code to a shared file so it can
Nathan Binkert [Fri, 30 Jul 2004 14:47:53 +0000 (10:47 -0400)]
Move all of the object matching code to a shared file so it can
be more easily re-used.  This currently uses some cooked up matching
function that I wrote a while ago, but should probably be changed
to use regular expressions in the future.
add doDebugBreak to control breakpoints on a per SimObject basis

SConscript:
    add match
base/stats/events.cc:
base/trace.cc:
    Move the object matching code into a separate file so it can be
    more easily shared
base/trace.hh:
    the object matching code was wrapped up and moved.  adapt.
sim/sim_object.cc:
    add the doDebugBreak flag that can be set on a per-SimObject
    basis.  This will be used in the future to control whether or
    not debug_break() will actually break for a given object.

    provide a function interface that can be called from the debugger.
sim/sim_object.hh:
    add the doDebugBreak flag that can be set on a per-SimObject
    basis.  This will be used in the future to control whether or
    not debug_break() will actually break for a given object.

--HG--
extra : convert_revision : 6bf7924de63d41f5ba6b80d579efdf26ba265a8f

19 years agoMake the DDUMP tracing feature output the cycle number and
Nathan Binkert [Fri, 30 Jul 2004 14:18:04 +0000 (10:18 -0400)]
Make the DDUMP tracing feature output the cycle number and
the object name on every line.
This makes grep a bit more effective.

kern/tru64/dump_mbuf.cc:
    use the new data dump format that trace.hh now provides

--HG--
extra : convert_revision : 179efa96aaff9da710baae13c9e981975d2abdc1

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5
Ali Saidi [Wed, 28 Jul 2004 21:56:42 +0000 (17:56 -0400)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5

--HG--
extra : convert_revision : 11ce57baaa1ccdb159d83bdad527c92087aa0502

19 years agoupdated readme to reflect linux/scons changes
Ali Saidi [Wed, 28 Jul 2004 21:56:36 +0000 (17:56 -0400)]
updated readme to reflect linux/scons changes
Put correct date in copyright headers based on bk changesets

LICENSE:
    Updated copyright on license file
README:
    Updaded readme to reflect shift to scons and linux support
cpu/trace/reader/ibm_reader.cc:
cpu/trace/reader/ibm_reader.hh:
cpu/trace/reader/itx_reader.cc:
cpu/trace/reader/itx_reader.hh:
cpu/trace/reader/m5_reader.cc:
cpu/trace/reader/m5_reader.hh:
cpu/trace/reader/mem_trace_reader.cc:
cpu/trace/reader/mem_trace_reader.hh:
cpu/trace/trace_cpu.cc:
cpu/trace/trace_cpu.hh:
    updated copyright (only changeset in 2004)
kern/kernel_stats.cc:
kern/kernel_stats.hh:
    updated copyright

--HG--
extra : convert_revision : 726aed4b38ff4d230c63a570df83c63075b3c76f

19 years agostyle
Nathan Binkert [Tue, 27 Jul 2004 03:10:20 +0000 (23:10 -0400)]
style

--HG--
extra : convert_revision : 7489726b6c7bd11af603a448e4ff56c1e46139fe

19 years agoMove the query function to the cc file and make trace stuff work
Nathan Binkert [Mon, 26 Jul 2004 17:03:27 +0000 (13:03 -0400)]
Move the query function to the cc file and make trace stuff work

base/mysql.cc:
    Move the query function to the cc file
    make the trace stuff work
base/mysql.hh:
    Move the query function to the cc file

--HG--
extra : convert_revision : c47cb12afa47d3fe4a7a031b3563601adab62913

19 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
Nathan Binkert [Fri, 23 Jul 2004 20:30:35 +0000 (16:30 -0400)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/current

--HG--
extra : convert_revision : 375f5dc9556fa12bd67915b8c348f35f49ca5049

19 years agoadd a trace mechanism to trace sql stuff
Nathan Binkert [Fri, 23 Jul 2004 19:52:28 +0000 (15:52 -0400)]
add a trace mechanism to trace sql stuff

base/mysql.hh:
    Trace sql queries
base/traceflags.py:
    Add a trace flag to trace sql queries

--HG--
extra : convert_revision : dc25abb474db7334529b791a7aa90f8178ea59ea

19 years agouse the linux 2.6 kernel
Nathan Binkert [Fri, 23 Jul 2004 16:44:55 +0000 (12:44 -0400)]
use the linux 2.6 kernel
Make it so the two system config can have one system with
a cache hier and the other without

--HG--
extra : convert_revision : 32403821cb889d00283ae0982e3fbe21a93acce4

19 years agoWhen a packet has finished transmitting, kick the state
Nathan Binkert [Fri, 23 Jul 2004 16:19:27 +0000 (12:19 -0400)]
When a packet has finished transmitting, kick the state
machine too.  The fifo may have been full and we want
to get another packet into it if we can.

--HG--
extra : convert_revision : 8f57294bd18f5eccb900118f2de83a4ccfd20dbb

19 years agoformatting
Nathan Binkert [Fri, 23 Jul 2004 15:54:54 +0000 (11:54 -0400)]
formatting

--HG--
extra : convert_revision : a1577ca129ff98ab83bb46714331831c15156adc

19 years agosim ticks should be the number of elapsed ticks, not curTick
Nathan Binkert [Fri, 23 Jul 2004 04:24:24 +0000 (00:24 -0400)]
sim ticks should be the number of elapsed ticks, not curTick

--HG--
extra : convert_revision : 709753255e3e0425940b49e5df0271105935f3d4

19 years agoa little bit more info when dumping the event queue.
Nathan Binkert [Fri, 23 Jul 2004 04:15:52 +0000 (00:15 -0400)]
a little bit more info when dumping the event queue.
add a function that can be called from the debugger to dump
the event queue

--HG--
extra : convert_revision : 2a8bb9b948abf611e8dc8cefe208a33b7a3c2c90

19 years agoIf we're doing mysql, we're doing binning
Nathan Binkert [Fri, 23 Jul 2004 04:14:26 +0000 (00:14 -0400)]
If we're doing mysql, we're doing binning

--HG--
extra : convert_revision : a5a15136d991b41263d6e5aa2f79deefc85a99a9

19 years agonotify the transmitter when the packet has finished transmitting.
Nathan Binkert [Fri, 23 Jul 2004 04:05:29 +0000 (00:05 -0400)]
notify the transmitter when the packet has finished transmitting.

--HG--
extra : convert_revision : 66f6f80945c1f621cdc3e743f601d2a73361bacd

19 years agoStats database fixes to avoid naming conflicts in the database
Nathan Binkert [Fri, 23 Jul 2004 03:59:12 +0000 (23:59 -0400)]
Stats database fixes to avoid naming conflicts in the database
and to do proper dumping of non-binned stats.

base/stats/mysql.cc:
    have configure return whether or not the stat is a printable
    stat.  This avoids naming problems in the database.
    don't store non printable stats.
    dump non-binned stats into the special bin 0
base/stats/mysql.hh:
    have configure return whether or not the stat is a printable
    stat.  This avoids naming problems in the database.

--HG--
extra : convert_revision : e33b115d605226a838eee2e6489e03b8d77ffc02

19 years agoAdd support to store less than the full packet in an etherdump
Nathan Binkert [Fri, 23 Jul 2004 03:54:24 +0000 (23:54 -0400)]
Add support to store less than the full packet in an etherdump
and actually default to only storing a max of 96 bytes per
packet since that should be plenty to fit all of the headers in.

--HG--
extra : convert_revision : 0c4a6571d80536477ed166e695d957e39da0334e

19 years agomore initial checking of stats
Nathan Binkert [Fri, 23 Jul 2004 01:31:35 +0000 (21:31 -0400)]
more initial checking of stats

base/statistics.cc:
    add more checking to the stats stuff to make sure that
    things are set up correctly
base/stats/statdb.cc:
    Check that bins are only registered once.

--HG--
extra : convert_revision : b0eafe4f584a8587dc3bf48812c632531ca28cb6

19 years agoone more fix to the ini files
Ali Saidi [Wed, 21 Jul 2004 22:48:13 +0000 (18:48 -0400)]
one more fix to the ini files

--HG--
extra : convert_revision : 1261cb1dd78c3a7e4ec1c99de4b6136819375016

19 years agoMerge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5
Ali Saidi [Wed, 21 Jul 2004 20:26:51 +0000 (16:26 -0400)]
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5

--HG--
extra : convert_revision : 8444a4f15530bef95350e124f9b840c74e236f7d

19 years agoupdated config files to fix what was broken in paper rush
Ali Saidi [Wed, 21 Jul 2004 20:26:43 +0000 (16:26 -0400)]
updated config files to fix what was broken in paper rush

--HG--
extra : convert_revision : 3128d0edd9367cff6a24cd923068535b59de25fd

19 years agoWrap tracing stuff in #if TRACING_ON to avoid compile error
Nathan Binkert [Wed, 21 Jul 2004 19:44:57 +0000 (15:44 -0400)]
Wrap tracing stuff in #if TRACING_ON to avoid compile error
in m5.fast

--HG--
extra : convert_revision : 329d810bfe282e88133ca35da62ee6dcc73a38f5

19 years agoAdd python-file-to-c-string utility for compiling python into the simulator
Steve Reinhardt [Mon, 19 Jul 2004 06:03:17 +0000 (23:03 -0700)]
Add python-file-to-c-string utility for compiling python into the simulator
(for later piping to a forked interpreter, unless we go crazy and embed it).

--HG--
extra : convert_revision : 70860b12780830a16c48aedd495fd79730dfce4c

19 years agoadd some new stats and make one more change to the way the split lifo works.
Lisa Hsu [Sun, 18 Jul 2004 04:03:07 +0000 (00:03 -0400)]
add some new stats and make one more change to the way the split lifo works.

--HG--
extra : convert_revision : f9154409014cb9edba6c33be1e1063f13c593ea3

19 years agosplit_lifo.cc:
Lisa Hsu [Sat, 17 Jul 2004 03:29:33 +0000 (23:29 -0400)]
split_lifo.cc:
oops, also need to move a newly replaced blk to tail, if not there already.

--HG--
extra : convert_revision : 6e118cd135987c401f3663575d08f33c2c0c4ceb

19 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Lisa Hsu [Sat, 17 Jul 2004 01:04:25 +0000 (21:04 -0400)]
Merge zizzer.eecs.umich.edu:/bk/m5
into shizzle.(none):/home/hsul/work/linux-clean

--HG--
extra : convert_revision : 6bdf1a161163ca1cec55b2a608b0e31eac8ef6b3

19 years agosplit_lifo.cc:
Lisa Hsu [Sat, 17 Jul 2004 01:01:49 +0000 (21:01 -0400)]
split_lifo.cc:
clear the isUsed flag for a block when it is replace in the 2Q scheme

--HG--
extra : convert_revision : 3284fe5ba4eb29dbd472237c09f95a8c92b2da5a

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Thu, 15 Jul 2004 03:02:11 +0000 (23:02 -0400)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : 87387b4f896ed945196b2090484c932c8b7e5abc

20 years agoAdd a clock multiplier for simple CPU so that it is possible
Nathan Binkert [Thu, 15 Jul 2004 03:01:54 +0000 (23:01 -0400)]
Add a clock multiplier for simple CPU so that it is possible
to do multiple instructions per cycle.

--HG--
extra : convert_revision : 5588ae38071f170792aad93899fef6842b7d818d

20 years agoFix serialization when a tx interrupt isn't scheduled
Erik Hallnor [Thu, 15 Jul 2004 01:34:51 +0000 (21:34 -0400)]
Fix serialization when a tx interrupt isn't scheduled

dev/uart.cc:
    Fix serialization when a tx interrupt isn't scheduled.

--HG--
extra : convert_revision : 3029e284cbba417e3f453d83fdf2ef307d684916

20 years agoMerge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
Steve Reinhardt [Wed, 14 Jul 2004 19:48:19 +0000 (15:48 -0400)]
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/stever/bk/m5

--HG--
extra : convert_revision : c79927401293a4496223cf190b9fc6cab6ea12de

20 years agoSConscript:
Steve Reinhardt [Wed, 14 Jul 2004 19:48:11 +0000 (15:48 -0400)]
SConscript:
Make decoder.cc/hh depend on isa_parser.py.

SConscript:
    Make decoder.cc/hh depend on isa_parser.py.

--HG--
extra : convert_revision : ff575d7f819da951423b36275e960fed652f9b2b

20 years agoadjust latencies so that they more closely match numbers seen
Nathan Binkert [Wed, 14 Jul 2004 13:44:31 +0000 (09:44 -0400)]
adjust latencies so that they more closely match numbers seen
in the real world.
re-work kernel ini files for more flexibility

--HG--
extra : convert_revision : 075c31c9daf251117cde7ef659e37e32d5e4b0c8

20 years agofix paths for changes in disk image layout
Nathan Binkert [Wed, 14 Jul 2004 13:06:56 +0000 (09:06 -0400)]
fix paths for changes in disk image layout

--HG--
extra : convert_revision : 506ff845efc8d786639c29931eb4abd3a5860fcf

20 years agoFix infinite loop in ns_gige stat machine
Nathan Binkert [Wed, 14 Jul 2004 13:02:15 +0000 (09:02 -0400)]
Fix infinite loop in ns_gige stat machine
argh!

dev/ns_gige.cc:
    Exit the state machine so that we don't come right back where
    we started and enter an infinite loop.

--HG--
extra : convert_revision : a5f2b5b5a692de6c80e4b02d7f9bc5d27fe17252

20 years agoremove a panic in split.cc:regernateBlkAddr that shouldnt' be there.
Lisa Hsu [Tue, 13 Jul 2004 15:05:43 +0000 (11:05 -0400)]
remove a panic in split.cc:regernateBlkAddr that shouldnt' be there.

--HG--
extra : convert_revision : 59029318d714cd93e998e45429cf96694020cc3c

20 years agoput the formatting fixes back into devtime
Nathan Binkert [Tue, 13 Jul 2004 03:01:53 +0000 (23:01 -0400)]
put the formatting fixes back into devtime

util/ccdrv/devtime.c:
    put the formatting fixes back.  no tabs.

--HG--
extra : convert_revision : 541e91294ee5383f3b321dd084876ae7c353cce9

20 years agomake the cache access latency a parameter that is based on bus
Nathan Binkert [Tue, 13 Jul 2004 02:58:22 +0000 (22:58 -0400)]
make the cache access latency a parameter that is based on bus
ticks for the most commonly accessed devices.

dev/baddev.cc:
    Get rid of the constant cache access latency.
    For unimportant devices, don't add any latency.
dev/ide_ctrl.cc:
dev/ide_ctrl.hh:
dev/ns_gige.cc:
dev/pciconfigall.cc:
dev/pciconfigall.hh:
dev/tsunami_cchip.cc:
dev/tsunami_cchip.hh:
dev/tsunami_io.cc:
dev/tsunami_io.hh:
dev/tsunami_pchip.cc:
dev/tsunami_pchip.hh:
dev/uart.cc:
dev/uart.hh:
    make the cache access latency a parameter that is based on bus
    ticks.
dev/io_device.cc:
dev/io_device.hh:
    add an io latency variable
dev/ns_gige.hh:
    this moved to io_device.hh

--HG--
extra : convert_revision : 4883130feeaef48abee492eddf0b8eb40eb94789

20 years agomodified devtime to print out raw data
Ali Saidi [Tue, 13 Jul 2004 02:51:20 +0000 (22:51 -0400)]
modified devtime to print out raw data

--HG--
extra : convert_revision : 5ad673d6f684acaffeb61db794f7e2ac099ba99d

20 years agomodified ccdrv to print out raw data.
Ali Saidi [Tue, 13 Jul 2004 02:47:46 +0000 (22:47 -0400)]
modified ccdrv to print out raw data.

util/ccdrv/devtime.c:
    modified to print out raw data.

--HG--
extra : convert_revision : 1f76ab8a022476e6a5ed787aa38547dd0ca99e36

20 years agoformatting
Nathan Binkert [Tue, 13 Jul 2004 02:33:27 +0000 (22:33 -0400)]
formatting

--HG--
extra : convert_revision : cbd0c148a50643191372fdba2f771d7e145f1bff

20 years agomake tx/rx fifo size a param, also fix the empty dma problem by adjusting the state...
Lisa Hsu [Mon, 12 Jul 2004 20:09:52 +0000 (16:09 -0400)]
make tx/rx fifo size a param, also fix the empty dma problem by adjusting the state machine.

dev/ns_gige.cc:
    make tx/rx fifo sizes a param. the default is 128K for each.  also, make the state machine not move onto txFragRead if there is no room in the txfifo for data.
dev/ns_gige.hh:
    make tx/rx fifo size a param

--HG--
extra : convert_revision : ed91eb31c2b21d4cdc6de87d8641df6197be5209

20 years agoFix a couple of bugs in lisa's cache partitioning code.
Nathan Binkert [Sun, 11 Jul 2004 19:35:11 +0000 (15:35 -0400)]
Fix a couple of bugs in lisa's cache partitioning code.

--HG--
extra : convert_revision : d3b6920609a59a33ac19bb1b395f5ae9694c2b53