gem5.git
20 years agomark the request satisfied since well, it is.
Nathan Binkert [Mon, 1 Mar 2004 01:38:25 +0000 (20:38 -0500)]
mark the request satisfied since well, it is.

--HG--
extra : convert_revision : 667c477b0b5ca45d63eaecabcf5119701584599f

20 years agoAvoid more bogus addresses
Nathan Binkert [Mon, 1 Mar 2004 01:35:55 +0000 (20:35 -0500)]
Avoid more bogus addresses

--HG--
extra : convert_revision : 25bc2adb78e2f96fb28b352a73401c3fa52eab03

20 years agofix switchover WRT interrupts
Nathan Binkert [Mon, 1 Mar 2004 01:32:30 +0000 (20:32 -0500)]
fix switchover WRT interrupts

cpu/base_cpu.cc:
    gah! copy the interrupt status on switchover

--HG--
extra : convert_revision : d3199a7409a494b7687354c43ffca697f37e8456

20 years agoMerge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
Nathan Binkert [Mon, 1 Mar 2004 01:25:52 +0000 (20:25 -0500)]
Merge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/.automount/ziff/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : b3fd8bcfbaf1e9d09bac8c1403944df36dde671e

20 years agoInitial cleanup pass of lisa's function call tracking
Nathan Binkert [Mon, 1 Mar 2004 01:22:32 +0000 (20:22 -0500)]
Initial cleanup pass of lisa's function call tracking
code.

base/statistics.hh:
    We're getting rid of FS_MEASURE, but for now, we're going
    to still use a compile time flag to turn on and off binning
    of statistics.  (The flag is STATS_BINNING)
cpu/exec_context.cc:
cpu/exec_context.hh:
kern/tru64/tru64_system.cc:
    get rid of FS_MEASURE
cpu/simple_cpu/simple_cpu.cc:
    yank the function call tracking code out of the cpu and move
    it into the software context class itself.
kern/tru64/tru64_system.hh:
    get rid of FS_MEASURE
    move all of the tacking stuff to the same place.
sim/system.hh:
    cleanup

--HG--
extra : convert_revision : 73d3843afe1b3ba0d5445421c39c1148d3f4e7c0

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Mon, 1 Mar 2004 00:31:58 +0000 (19:31 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : 48e5262fc37a5774b10a83e4c36a89c0ef2c8f15

20 years agomore debugging support
Nathan Binkert [Mon, 1 Mar 2004 00:29:30 +0000 (19:29 -0500)]
more debugging support

base/trace.cc:
    code to set/clear/print trace flags from the debugger.

--HG--
extra : convert_revision : f2a549e9af05c4a177186b9f1792a0493ce15c95

20 years agoMake the progress event work even after restoring from a checkpoint
Nathan Binkert [Sun, 29 Feb 2004 23:49:44 +0000 (18:49 -0500)]
Make the progress event work even after restoring from a checkpoint

--HG--
extra : convert_revision : 80e31eb26250700ebe3ce5848e570068cc76ef47

20 years agoFix dumping to work on the opteron. struct timeval can
Nathan Binkert [Sun, 29 Feb 2004 22:05:23 +0000 (17:05 -0500)]
Fix dumping to work on the opteron.  struct timeval can
vary in size, so we're explicit about the fields.

--HG--
extra : convert_revision : e5264849dafb878676b2bfd3a6e6f95f6f94ea48

20 years agoAdd support for multiple address ranges in memory interfaces.
Erik Hallnor [Sun, 29 Feb 2004 21:18:49 +0000 (16:18 -0500)]
Add support for multiple address ranges in memory interfaces.

dev/alpha_console.cc:
    setAddrRange -> addAddrRange

--HG--
extra : convert_revision : 9dc853b80bea443b54a130ca4c110a68077cb336

20 years agofix rpcc
Nathan Binkert [Sun, 29 Feb 2004 19:54:52 +0000 (14:54 -0500)]
fix rpcc

arch/alpha/ev5.cc:
    actually implement the cycle count register
arch/alpha/isa_desc:
    the rpcc instruction really just reads the cycle count
    register

--HG--
extra : convert_revision : a0edec85672377a62b90950efc17b62b375220b1

20 years agoFix handling of rpcc in full-system mode.
Steve Reinhardt [Sat, 28 Feb 2004 22:21:32 +0000 (17:21 -0500)]
Fix handling of rpcc in full-system mode.

arch/alpha/ev5.cc:
    Handle writing IPR_CC and IPR_CC_CTL slightly more intelligently.
    (Very slightly).
arch/alpha/isa_desc:
    Upper half of rpcc result comes from value written
    to IPR_CC, not actual cycle counter.

--HG--
extra : convert_revision : 7161989db8a3f040d0558e2e5a1a162ed1cb4125

20 years agoAdded copy instructions to the ISA. Well it didn't break anything yet...
Erik Hallnor [Fri, 27 Feb 2004 07:40:43 +0000 (02:40 -0500)]
Added copy instructions to the ISA. Well it didn't break anything yet...

arch/alpha/isa_desc:
    Add copy_load and copy_store insts (ldf and stf respectively)
cpu/simple_cpu/simple_cpu.hh:
    Add copy functions to SimpleCPU as well

--HG--
extra : convert_revision : 1fa041da582b418c47d4eefc22dabba978a50e2d

20 years agoInitial copy support in the pipeline. Add copypal counting.
Erik Hallnor [Fri, 27 Feb 2004 05:45:21 +0000 (00:45 -0500)]
Initial copy support in the pipeline. Add copypal counting.

arch/alpha/osfpal.cc:
    Add a string for copypal.
arch/alpha/osfpal.hh:
    Add a code for copypal.
cpu/static_inst.hh:
    Add an IsCopy flag.

--HG--
extra : convert_revision : 19e3d90368454806029ad492eace19cd0924fe9f

20 years agofix
Nathan Binkert [Fri, 27 Feb 2004 01:40:00 +0000 (20:40 -0500)]
fix

--HG--
extra : convert_revision : 67a9e36cda69da6b462e6a30d6daa047ce48fdde

20 years agoThe DMAInterface was never updated to the new blocking model. Need to hold the reques...
Erik Hallnor [Fri, 27 Feb 2004 01:36:29 +0000 (20:36 -0500)]
The DMAInterface was never updated to the new blocking model. Need to hold the request locally until it is retransmitted.

--HG--
extra : convert_revision : cc89d6c4b7f21b7252c172c694633ce1daae30eb

20 years agoQuick hack to allow rerequests for the future.
Erik Hallnor [Thu, 26 Feb 2004 21:59:04 +0000 (16:59 -0500)]
Quick hack to allow rerequests for the future.

--HG--
extra : convert_revision : 4f1b080ae500dfd022c28e0cd7544c4fcfa5e330

20 years agostoopid
Nathan Binkert [Thu, 26 Feb 2004 19:16:18 +0000 (14:16 -0500)]
stoopid

--HG--
extra : convert_revision : ccd87a2de7f684bb3a4a448a307eb30afd363e12

20 years agoMerge.
Steve Reinhardt [Thu, 26 Feb 2004 15:08:45 +0000 (07:08 -0800)]
Merge.

--HG--
extra : convert_revision : e83f6895bceb0ced656e90275ec1a93d0af5498d

20 years agoMake SW prefetch flag a parameter again, and add code to make
Steve Reinhardt [Thu, 26 Feb 2004 15:05:36 +0000 (07:05 -0800)]
Make SW prefetch flag a parameter again, and add code to make
it actually do something on FullCPU.  Still disabled, as it
causes detailed-boot to hang when you turn it on.

arch/alpha/isa_desc:
    Add EAComp and MemAcc pseudo-instructions to prefetch StaticInst.
cpu/simple_cpu/simple_cpu.hh:
    Changed prefetch() return type from Fault to void.

--HG--
extra : convert_revision : c7cb42682bfea6af117c87d4dfdb06176b6fe6b7

20 years agoSave the status of faulting write-hints so that they
Nathan Binkert [Thu, 26 Feb 2004 06:18:13 +0000 (01:18 -0500)]
Save the status of faulting write-hints so that they
won't accidentally be issued to the memory system.

--HG--
extra : convert_revision : 5696a09abcdee54c8bec72d9374f7944fb136740

20 years agoMake this compile under non full system.
Erik Hallnor [Thu, 26 Feb 2004 02:32:37 +0000 (21:32 -0500)]
Make this compile under non full system.

--HG--
extra : convert_revision : 6ae9b4af78cff3c8e5dc367fdbefad496a28857d

20 years agodelay execContext registration from create() to init() callback in the sampling cpu...
Lisa Hsu [Wed, 25 Feb 2004 23:25:20 +0000 (18:25 -0500)]
delay execContext registration from create() to init() callback in the sampling cpu also.

--HG--
extra : convert_revision : d3947c55f95bb03e73a815188a517043f39925d4

20 years agoprevent bogus addresses from being sent to the memory system
Nathan Binkert [Wed, 25 Feb 2004 21:16:17 +0000 (16:16 -0500)]
prevent bogus addresses from being sent to the memory system

--HG--
extra : convert_revision : 4f08f8c7ab380436b2ad2c30ba53d9fe305e4496

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Wed, 25 Feb 2004 21:13:00 +0000 (16:13 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : 2a258d16ba51ce34f5748825a94b456abfb577cc

20 years agoFix stats debugging and always compile it in for the
Nathan Binkert [Wed, 25 Feb 2004 21:12:48 +0000 (16:12 -0500)]
Fix stats debugging and always compile it in for the
debug target

--HG--
extra : convert_revision : aa16e6256a056e6df9affec6fd973e62e812e23c

20 years agoadd in an init() callback for CPU's so that no stats are accessed prior to the end...
Lisa Hsu [Tue, 24 Feb 2004 19:59:25 +0000 (14:59 -0500)]
add in an init() callback for CPU's so that no stats are accessed prior to the end of the build process.  (Done by doing the registerExecContext() calling sequence in the init() process rather than the create() process).

cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
    same thing for simple cpu's.

--HG--
extra : convert_revision : aac9f91742866fb26f8cace622f9b88454a69662

20 years agoQuote args properly in tracediff.
Steve Reinhardt [Mon, 23 Feb 2004 16:07:32 +0000 (08:07 -0800)]
Quote args properly in tracediff.

util/tracediff:
    Quote simulator args so args with spaces get handled correctly.

--HG--
extra : convert_revision : b48677bc712be17e6e50ca35680e757ba9364692

20 years agoOnly one request may be on the dma interface at a time,
Nathan Binkert [Mon, 23 Feb 2004 07:49:09 +0000 (02:49 -0500)]
Only one request may be on the dma interface at a time,
so add some states to indicate that the dma read/write
hasn't issued yet, and add some support to reissue the
request when the interface becomes unblocked.

--HG--
extra : convert_revision : 448695a8eb2e9f98554769f3165df1f796adf44a

20 years agoextend the hack by turning the address into a real
Nathan Binkert [Mon, 23 Feb 2004 07:46:47 +0000 (02:46 -0500)]
extend the hack by turning the address into a real
physical address

--HG--
extra : convert_revision : 9f752d5ab6def492056d4dfe0bda5eecb022ba80

20 years agoDon't issue memory requests for bogus addresses
Nathan Binkert [Mon, 23 Feb 2004 07:46:04 +0000 (02:46 -0500)]
Don't issue memory requests for bogus addresses

--HG--
extra : convert_revision : 786b7fa503436f9a269ebeaedf152c6364874ab5

20 years agoMake this like PCI-X
Nathan Binkert [Mon, 23 Feb 2004 07:44:22 +0000 (02:44 -0500)]
Make this like PCI-X

--HG--
extra : convert_revision : 59eaf2c548a88df075b13e78aaa7a4377f20e6c8

20 years agoconfigurable latency for programmed IO
Nathan Binkert [Sun, 22 Feb 2004 23:09:11 +0000 (18:09 -0500)]
configurable latency for programmed IO
fix serialization

dev/etherlink.cc:
    fix serialization

--HG--
extra : convert_revision : 6739001f3f97b745d9874bb4c5729cc4909625c2

20 years agoChange order of serialization
Nathan Binkert [Sat, 21 Feb 2004 15:46:31 +0000 (10:46 -0500)]
Change order of serialization

sim/sim_object.cc:
    serialize objects in the reverse order of their creation.
    This causes a SimObject that is dependent on another
    to be serialized first.  For example, the ethernet device
    writes back some data to physical memory while serializing,
    so this will cause the physical memory to be serialized
    after that, preserving the data written back.

--HG--
extra : convert_revision : f9a37b63ce777df1cfecefa80f94f8fc69e42448

20 years agoNew Ethernet device. Descriptors are now done via DMA instead
Nathan Binkert [Sat, 21 Feb 2004 15:43:37 +0000 (10:43 -0500)]
New Ethernet device.  Descriptors are now done via DMA instead
of faking it.  Renamed stuff to follow our style.  Lots of
general cleanup.

dev/etherpkt.hh:
    fix up includes

--HG--
extra : convert_revision : fb3a21466cdae00f8747d6e3027c9f2c63569c48

20 years agoAdd a simple event wrapper class that takes a class pointer
Nathan Binkert [Fri, 20 Feb 2004 20:24:21 +0000 (15:24 -0500)]
Add a simple event wrapper class that takes a class pointer
and member function and will schedule it for the future.

--HG--
extra : convert_revision : f5c5a8df0839e1e10716850c2086862c4a5bc499

20 years agomake the dma interface useable.
Nathan Binkert [Fri, 20 Feb 2004 20:23:27 +0000 (15:23 -0500)]
make the dma interface useable.
make it so that pio devices must respond with some delay.

dev/io_device.cc:
    don't forget to include dma_interface.hh so we could use it.
dev/io_device.hh:
    the generic BusInterface isn't enough for doing DMA
    we need the actual DMAInterface

--HG--
extra : convert_revision : 70298d33c8520a3f4ad11aa600825a8cec7e44bf

20 years agomake uncacheable stuff happen again
Nathan Binkert [Fri, 20 Feb 2004 20:22:41 +0000 (15:22 -0500)]
make uncacheable stuff happen again

cpu/simple_cpu/simple_cpu.cc:
    Allow requests to be uncacheable

--HG--
extra : convert_revision : 7ab1442f2eec3763d5bc6a6f37b11f663851b12c

20 years agomake the devices default to being attached to the memory bus
Nathan Binkert [Fri, 20 Feb 2004 20:22:02 +0000 (15:22 -0500)]
make the devices default to being attached to the memory bus
but provide a #define that can be used to put them on
a separate IO bus

--HG--
extra : convert_revision : 75d48f312c503ad67d22319db691ef5a0de12996

20 years agoDon't need to specify two etherdump devices
Nathan Binkert [Fri, 20 Feb 2004 20:20:37 +0000 (15:20 -0500)]
Don't need to specify two etherdump devices

--HG--
extra : convert_revision : 62e8d6b218909c00a97d71e0d3b0f11816499fbf

20 years agoMake it so dump takes a void *
Nathan Binkert [Fri, 20 Feb 2004 20:19:55 +0000 (15:19 -0500)]
Make it so dump takes a void *

base/trace.cc:
base/trace.hh:
    take a void * for the raw data

--HG--
extra : convert_revision : fc336dc82b4d533c3a0f319977074f26342445ea

20 years agomake etherdump work again
Nathan Binkert [Fri, 20 Feb 2004 20:19:19 +0000 (15:19 -0500)]
make etherdump work again

dev/etherdump.cc:
    now that init is automatically called by the framework, don't
    init twice.

--HG--
extra : convert_revision : 16dcdef67aa193ed71ff546e7b255d60f39bf13d

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Fri, 20 Feb 2004 20:08:02 +0000 (15:08 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/memory

--HG--
extra : convert_revision : 691c89ebacb3c5a5eb67359ed102646b8547dd17

20 years agoMerge zizzer:/bk/m5 into zamp.eecs.umich.edu:/z/rdreslin/m5bk/clean
Ron Dreslinski [Fri, 20 Feb 2004 17:45:11 +0000 (12:45 -0500)]
Merge zizzer:/bk/m5 into zamp.eecs.umich.edu:/z/rdreslin/m5bk/clean

--HG--
extra : convert_revision : b8e4d9c2901c4c784ecca351fd34a3f5a2845473

20 years agoAdd serialization for packets on the ethernet link,
Ron Dreslinski [Fri, 20 Feb 2004 17:44:41 +0000 (12:44 -0500)]
Add serialization for packets on the ethernet link,
and for link events

--HG--
extra : convert_revision : 0054dbc4a42dd38ff8bbf64af303bc509dd5aa8a

20 years agoput back $SETUPDIR = $ENV{PWD} for amd purposes.
Lisa Hsu [Fri, 20 Feb 2004 17:37:52 +0000 (12:37 -0500)]
put back $SETUPDIR = $ENV{PWD} for amd purposes.

--HG--
extra : convert_revision : 115a9ea8d08bf3e32ecb689962c8a12c9a7dba26

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Fri, 20 Feb 2004 16:29:39 +0000 (11:29 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/memory

--HG--
extra : convert_revision : 626baf73d2e26201088b05b4e5fac19292abcb32

20 years agointerestingly, when setup is called from a perl script, when you chdir in the perl...
Lisa Hsu [Thu, 19 Feb 2004 22:58:17 +0000 (17:58 -0500)]
interestingly, when setup is called from a perl script, when you chdir in the perl script, the ENV{PWD} does not change.

--HG--
extra : convert_revision : e1b2fb3e3b791921b9c3f4bb3b7417ff047bbcbf

20 years agoChange the physical memory logic, and also add misspeculation fix to
Andrew Schultz [Thu, 19 Feb 2004 02:38:55 +0000 (21:38 -0500)]
Change the physical memory logic, and also add misspeculation fix to
tlb index calls that are called from ExecContext::readIpr

arch/alpha/ev5.cc:
    Fix misspeculation bugs for misspeculated IPR accesses

--HG--
extra : convert_revision : c9ffcf9ef8123dfcaee1606c05aee8ad60d893d7

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Wed, 18 Feb 2004 19:17:44 +0000 (14:17 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/memory

--HG--
extra : convert_revision : 20e6f7edd432952b3c30d4f017058dfd52456fda

20 years agocouple fixes
Nathan Binkert [Wed, 18 Feb 2004 19:17:13 +0000 (14:17 -0500)]
couple fixes

--HG--
extra : convert_revision : bd0948bc831610f442d5ff6893f0e2a68e3aa83f

20 years agoMerge
Nathan Binkert [Wed, 18 Feb 2004 17:01:04 +0000 (12:01 -0500)]
Merge

--HG--
extra : convert_revision : b29c9bbb50994e2567fd58deedb853123d2d69a0

20 years agoAdd COW support to the IIC.
Erik Hallnor [Wed, 18 Feb 2004 03:53:15 +0000 (22:53 -0500)]
Add COW support to the IIC.

cpu/memtest/memtest.cc:
    Move the trace Addr to the end of the printouts

--HG--
extra : convert_revision : 875f0a3f65e07f531a23fea6be07fbf3239ec2c4

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Tue, 17 Feb 2004 08:14:21 +0000 (03:14 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : 19800f3879c943addbf4bca747b357a94352b6a8

20 years agoChange the way data is handled in the cache blocks.
Erik Hallnor [Tue, 17 Feb 2004 08:05:19 +0000 (03:05 -0500)]
Change the way data is handled in the cache blocks.

--HG--
extra : convert_revision : 8c071c4f48581a398bebc4f033e18580dca0897f

20 years agoChange logic for translating a memory addresses, extra checks for invalid
Andrew Schultz [Tue, 17 Feb 2004 02:56:38 +0000 (21:56 -0500)]
Change logic for translating a memory addresses, extra checks for invalid
physical addresses.

--HG--
extra : convert_revision : efb4a5229d88cb3c024e0b24f5916048bd42d589

20 years agoRework BusBridge to have a latency and handle bus IDs correctly.
Erik Hallnor [Mon, 16 Feb 2004 21:28:11 +0000 (16:28 -0500)]
Rework BusBridge to have a latency and handle bus IDs correctly.

--HG--
extra : convert_revision : 901ef4782d0c9f0d842deba7acdba7896da7e41c

20 years agoAdd full copy support.
Erik Hallnor [Sat, 14 Feb 2004 08:25:39 +0000 (03:25 -0500)]
Add full copy support.

cpu/memtest/memtest.cc:
cpu/memtest/memtest.hh:
    Add 2 new parameters to control the percentage of unaligned copy sources and destinations.

--HG--
extra : convert_revision : 2646ee2f195e9f3e76bc257b8716163ef63a9f40

20 years agoMerge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
Nathan Binkert [Fri, 13 Feb 2004 20:44:46 +0000 (15:44 -0500)]
Merge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/.automount/ziff/z/binkertn/research/m5/memory

--HG--
extra : convert_revision : 99f5289f4143fb09c84694a51b3394d6699d927a

20 years agofix up vtophys a bit
Nathan Binkert [Fri, 13 Feb 2004 20:36:21 +0000 (15:36 -0500)]
fix up vtophys a bit

arch/alpha/vtophys.cc:
    fix up vtophys to deal with translations if there
    is no ptbr, and to deal with PAL addresses
    add ptomem which is just a wrapper for dma_addr
arch/alpha/vtophys.hh:
    add ptomem which is a wrapper for dma_addr with the
    same usage as vtomem

--HG--
extra : convert_revision : 1ae22073d400e87b708a4a7ef501124227fc6c39

20 years agobetter debugging
Nathan Binkert [Thu, 12 Feb 2004 18:59:56 +0000 (13:59 -0500)]
better debugging

--HG--
extra : convert_revision : 504fc7174403aaeed0574a20587d4651c7351671

20 years agoAdd support for all devices to get requests from a timing memory bus.
Nathan Binkert [Wed, 11 Feb 2004 21:07:55 +0000 (16:07 -0500)]
Add support for all devices to get requests from a timing memory bus.
In the future, this can be used for actual data, but for now, it's
so that devices can respond to timing accesses properly.  This way,
an uncached access on a bus further away will take longer to respond.

dev/alpha_console.cc:
dev/alpha_console.hh:
    suport the separate IO bus

--HG--
extra : convert_revision : ececb70f5febfd00231f6e406f93b2a79be01261

20 years agoMerge zizzer:/bk/m5 into isabel.reinhardt.house:/z/stever/bk/m5
Steve Reinhardt [Wed, 11 Feb 2004 05:44:08 +0000 (21:44 -0800)]
Merge zizzer:/bk/m5 into isabel.reinhardt.house:/z/stever/bk/m5

--HG--
extra : convert_revision : 964126edcf72faf572a9272599264ba2f5cd7aa1

20 years agoFixes for Linux syscall emulation.
Steve Reinhardt [Wed, 11 Feb 2004 05:43:57 +0000 (21:43 -0800)]
Fixes for Linux syscall emulation.

arch/alpha/alpha_linux_process.cc:
    Fixes for Linux emulation:
    - stat struct alignment
    - osf_{get,set}sysinfo return values
    - additional syscall numbers
    - initialize $r0 to 0
sim/syscall_emul.cc:
    brk(0) just returns brk value (don't update it!)

--HG--
extra : convert_revision : 78e22458321c81e81540d101c9e65e2e4b0ad117

20 years agoAdd support for multiple outstanding aligned copies
Erik Hallnor [Wed, 11 Feb 2004 01:37:38 +0000 (20:37 -0500)]
Add support for multiple outstanding aligned copies

cpu/memtest/memtest.cc:
    Add traceBlockAddr to trace outputs.

--HG--
extra : convert_revision : e4ebaf9647fb393448367f4f4af3bae566f51c24

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Mon, 9 Feb 2004 22:38:41 +0000 (17:38 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : 0c018b88d6ca80b1690ec99d795014848e375e44

20 years agoAdd LRU aligned copies to the hierarchy, with only one outstanding copy. Aligned...
Erik Hallnor [Mon, 9 Feb 2004 22:37:27 +0000 (17:37 -0500)]
Add LRU aligned copies to the hierarchy, with only one outstanding copy. Aligned copies now fully work in LRU (just need to write the IIC doCopy call). At the moment they are slow since a stalled copy stalls the entire cache.

cpu/memtest/memtest.cc:
cpu/memtest/memtest.hh:
    Add aligned copy tests, percent of copies is specified by percent_copies

--HG--
extra : convert_revision : eaf1900fcb8832db98249e94e3472ebfb049eb48

20 years ago- Whack unused code
Nathan Binkert [Mon, 9 Feb 2004 15:49:48 +0000 (10:49 -0500)]
-  Whack unused code
-  Make the MemoryController use address ranges (via Range) instead
of an address and a mask

base/remote_gdb.cc:
    reflect name change
dev/alpha_access.h:
    better include
dev/alpha_console.cc:
    -  FunctionalMemory no longer takes care of mapping my address into
    the proper address space.  It must be done locally.
    -  the memory controller no longer uses a mask, but a size, and the
    size is determined by the device, not the .ini file
    -  fix up address calculations to reflect the removal of a mask
    -  PhysicalMemory::getSize() -> PhysicalMemory::size()
dev/alpha_console.hh:
    -  FunctionalMemory no longer takes care of mapping my address into
    the proper address space.  It must be done locally.
    -  the memory controller no longer uses a mask, but a size, and the
    size is determined by the device, not the .ini file
    -  fix up address calculations to reflect the removal of a mask
    -  get rid of MmapDevice and inherit from FunctionalMemory

--HG--
extra : convert_revision : e3a65c9debf6f899632d62c70781cbdc2826616b

20 years agoMerge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
Nathan Binkert [Mon, 9 Feb 2004 15:36:32 +0000 (10:36 -0500)]
Merge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/.automount/ziff/z/binkertn/research/m5/memory

--HG--
extra : convert_revision : 9f385ee5b6958373a9a1bc600eb3e5e8b7987f38

20 years agoAdd that one IPR memory space address that we keep seeing
Nathan Binkert [Mon, 9 Feb 2004 14:06:20 +0000 (09:06 -0500)]
Add that one IPR memory space address that we keep seeing

--HG--
extra : convert_revision : 81b365ac9ca8b33cae99107e5b1900f7c46f0866

20 years agorandom fixes
Nathan Binkert [Mon, 9 Feb 2004 14:04:52 +0000 (09:04 -0500)]
random fixes

base/range.hh:
    Add a constructor that takes the beginning and end as arguments
    size returns T not a bool
    quick make_range() function that is a shortcut for making a range
    kinda like make_pair()

    quick formatting fix

--HG--
extra : convert_revision : 94b1d462710e6fb55e72e1da2ad8c46993af1ef7

20 years agoCommit regenerated trace_flags.* based on merged traceflags.pl.
Steve Reinhardt [Mon, 9 Feb 2004 08:44:56 +0000 (00:44 -0800)]
Commit regenerated trace_flags.* based on merged traceflags.pl.
(bk auto merge messed these up...)

--HG--
extra : convert_revision : 5ebda321ab5ac4b85a1d846affa0035ded853b9d

20 years agobk resolve is making me commit these even though they're broken.
Steve Reinhardt [Mon, 9 Feb 2004 08:32:21 +0000 (00:32 -0800)]
bk resolve is making me commit these even though they're broken.

--HG--
extra : convert_revision : 87b2c4a4a83eec7d696d9d84d14dbdc7532849f9

20 years agoResults of automatic (yet incomplete) merge.
Steve Reinhardt [Mon, 9 Feb 2004 08:30:16 +0000 (00:30 -0800)]
Results of automatic (yet incomplete) merge.

--HG--
extra : convert_revision : 3ad9a929051bfe111a1e10618c8595acbbade542

20 years agoAdd support for memory barriers.
Steve Reinhardt [Mon, 9 Feb 2004 08:22:43 +0000 (00:22 -0800)]
Add support for memory barriers.

arch/alpha/isa_desc:
    Add cache port bindings for mb & wmb.

--HG--
extra : convert_revision : 72f76150fe471d0dc97bd41598cad4d86a035e39

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Sun, 8 Feb 2004 22:27:08 +0000 (17:27 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : b24970f5bbf817d6ef581114178e27f2ab7c3459

20 years agoSeparate template definitions and instantiations into *_impl.hh and *.cc. Eventually...
Erik Hallnor [Sun, 8 Feb 2004 22:26:27 +0000 (17:26 -0500)]
Separate template definitions and instantiations into *_impl.hh and *.cc. Eventually the *.cc fils should be generate by our super-duper python script.

base/compression/null_compression.hh:
    Need some includes.

--HG--
extra : convert_revision : caf52320f6f6ff255e8a93817419ad13ad44224f

20 years agoTotally rework the Range class. Now the range is from [start, end)
Nathan Binkert [Sat, 7 Feb 2004 06:16:50 +0000 (01:16 -0500)]
Totally rework the Range class.  Now the range is from [start, end)
to be consistent with the way that the stl works.  It also makes
lots of other stuff easier.  (Maybe those guys were smart?)
Overload the various comparison operators so that you can test
for overlapping of ranges, etc.

base/range.hh:
    Totally rework the Range class.  Now the range is from [start, end)
    to be consistent with the way that the stl works.  It also makes
    lots of other stuff easier.  (Maybe those guys were smart?)
    Overload the various comparison operators so that you can test
    for overlapping of ranges, etc.

    make parse function private and offer operator= instead
    isValid -> valid
    and for you erik, I add comments
test/Makefile:
    add range.o
test/rangetest.cc:
    better tests

--HG--
extra : convert_revision : dd58720aa3d02f20b03e933f2eaa3320c82bb27a

20 years agoformatting
Nathan Binkert [Sat, 7 Feb 2004 00:47:19 +0000 (19:47 -0500)]
formatting

--HG--
extra : convert_revision : 0cea17bd3a517a1838006d89fac8a923e4576394

20 years agoSmall cleanup
Nathan Binkert [Fri, 6 Feb 2004 23:59:12 +0000 (18:59 -0500)]
Small cleanup

--HG--
extra : convert_revision : 92f6dbd3d2c4336a0f03a9da5c390a7980ca08be

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Fri, 6 Feb 2004 05:13:44 +0000 (00:13 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : 158117a2cba91b8cb04f41a418155149bcbba777

20 years agoVarious extraction of common code into separate functions to make life easier.
Erik Hallnor [Fri, 6 Feb 2004 05:13:26 +0000 (00:13 -0500)]
Various extraction of common code into separate functions to make life easier.

--HG--
extra : convert_revision : ae303904e35975e65b4207f543ac93c9816e1f81

20 years agoModify the emulated system calls to support running the SPEC Int
David Oehmke [Thu, 5 Feb 2004 17:16:17 +0000 (12:16 -0500)]
Modify the emulated system calls to support running the SPEC Int
benchmarks for alpha-linux.

arch/alpha/alpha_linux_process.cc:
    Added some more ioctl commands to ignore.
    Set unlink and rename to the new functions.
    Ignore setrlimit, times and rt_sigaction.
    Should eventually provide a function for times.
arch/alpha/alpha_tru64_process.cc:
    Added some more ioctl commands to ignore.
    Set unlink and rename to the new functions.
    Ignore setrlimit.
sim/syscall_emul.cc:
    Added implementations for unlink and rename.
sim/syscall_emul.hh:
    Added unlink and rename functions.
    Added a couple more ioctl requests to ignore.
    Print out the PC of any ioctl commands that fail.

--HG--
extra : convert_revision : 8af21c7fa7d0645d3f9324c9ce70ad33590c3c8e

20 years agoAdd support for "serializing" instructions that flush
Steve Reinhardt [Thu, 5 Feb 2004 05:42:00 +0000 (21:42 -0800)]
Add support for "serializing" instructions that flush
execution pipeline (Alpha trapb & excb).

Add support for write memory barriers (mostly impacts
store buffer).

Add StaticInst flag to indicate memory barriers, though
this is not modeled in the pipeline yet.

arch/alpha/isa_desc:
    Implement trapb, excb, mb, and wmb as insts with
    no execution effect (empty execute() function) but
    with flags that indicate their side effects.

    Also make sure every instruction that needs to go to
    the execute stage has a real opClass value, since we
    are now using No_OpClass to signal insts that can get
    dropped at dispatch.

    StaticInst::branchTarget() is now a const method.
cpu/static_inst.hh:
    Add flags to indicate serializing insts (trapb, excb) and
    memory and write barriers.

    Also declare some StaticInst methods as const methods.
dev/etherlink.hh:
sim/eventq.hh:
sim/serialize.cc:
sim/serialize.hh:
sim/sim_object.hh:
    Make name() return value const.

--HG--
extra : convert_revision : 39520e71469fa20e0a7446b2e06b494eec17a02c

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Wed, 4 Feb 2004 21:55:17 +0000 (16:55 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : 2f3653bbd0ab20308dcff5db176dc926402e9ad7

20 years agoChange IIC to use param class. Tweak parameters in CacheTags.
Erik Hallnor [Wed, 4 Feb 2004 21:55:05 +0000 (16:55 -0500)]
Change IIC to use param class. Tweak parameters in CacheTags.

--HG--
extra : convert_revision : 8239a7befe49c81b6b1f239fc478910441f64352

20 years agoMore reformatting of reference parameter declarations.
Steve Reinhardt [Wed, 4 Feb 2004 19:16:30 +0000 (11:16 -0800)]
More reformatting of reference parameter declarations.
The last change only caught the ones with types that
started with capitals.  This pass catches the rest
(mostly STL and uint*_t types).

base/cprintf_formats.hh:
cpu/simple_cpu/simple_cpu.cc:
sim/serialize.cc:
sim/serialize.hh:
    Change "foo_t& foo" to "foo_t &foo".

--HG--
extra : convert_revision : fc7f7425db2aef33e490f952b5ce74c8c36d0d41

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Tue, 3 Feb 2004 17:58:34 +0000 (12:58 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : e94049f2b2dfbd2f1a018ddd6c05a4882d0f4a82

20 years agoMerge zizzer.eecs.umich.edu:/bk/m5
Nathan Binkert [Tue, 3 Feb 2004 15:51:10 +0000 (10:51 -0500)]
Merge zizzer.eecs.umich.edu:/bk/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/latest

--HG--
extra : convert_revision : 9b8a94cbaacbbb4a53d15c0893ee4d3183f29ce0

20 years agoRemote debugging cleanup and internal debugging support
Nathan Binkert [Tue, 3 Feb 2004 15:50:04 +0000 (10:50 -0500)]
Remote debugging cleanup and internal debugging support

base/kgdb.h:
    Remove flags that aren't used
base/remote_gdb.cc:
    Better debugging:
    - Give each class a name() function so that the trace infrastructure
    knows the correct object name.
    - Make the remote debugger capable of detach.
    - Split out the RGDB trace flag into a bunch of specific flags.
    Remove dead code
    Add a new trap type
base/remote_gdb.hh:
    Add a name() to the various objects for the trace system
base/trace.hh:
    don't need a using directive
    add DPRINTFNR: debug printf, no flag, raw output
kern/tru64/tru64_system.cc:
    use the INT trap type instead of IF

--HG--
extra : convert_revision : 25e610216c6f43d5d328651bba915f71bade059e

20 years agoFix bug: forgot branchTarget() method on indirect branches.
Steve Reinhardt [Tue, 3 Feb 2004 15:19:05 +0000 (07:19 -0800)]
Fix bug: forgot branchTarget() method on indirect branches.

arch/alpha/isa_desc:
    Add missing branchTarget() method for indirect branches.
cpu/static_inst.hh:
    Add comment clarifying when branchTarget() can be used
    on indirect branches.

--HG--
extra : convert_revision : 0dcfb36a9792a338cefceb3d1501825abace7ac5

20 years agoFix handling of uncacheable loads. Make them wait until they're at the tail of
Steve Reinhardt [Tue, 3 Feb 2004 03:09:47 +0000 (19:09 -0800)]
Fix handling of uncacheable loads.  Make them wait until they're at the tail of
the ROB (so we know they're correct-path) before we mark them ready to issue.

--HG--
extra : convert_revision : be1d431bdc939100d79a5fea3e415b3acf9e8d75

20 years agoGet rid of LVQ-port function unit... only used for redundant
Steve Reinhardt [Tue, 3 Feb 2004 02:58:23 +0000 (18:58 -0800)]
Get rid of LVQ-port function unit... only used for redundant
multithreading, which has been gone for a long time.

--HG--
extra : convert_revision : 717d13455483c3adc7b7cbbcc5f7493d51867974

20 years agoClean up some confusing ROBStation fields left over from SS (ea_comp, in_LSQ).
Steve Reinhardt [Tue, 3 Feb 2004 02:53:27 +0000 (18:53 -0800)]
Clean up some confusing ROBStation fields left over from SS (ea_comp, in_LSQ).
Eliminate indirect decoder.cc dependence on rob_station.hh via full_cpu.hh.

--HG--
extra : convert_revision : 9355cddd6cd8bbe100aae1b2d45d2752e76ba3f6

20 years agoinsn->inst
Steve Reinhardt [Tue, 3 Feb 2004 02:14:11 +0000 (18:14 -0800)]
insn->inst

--HG--
extra : convert_revision : fcc556fb7e65855ec3c04ef272177c8e7a38fff9

20 years agoChange "Foo& foo" declarations to "Foo &foo".
Steve Reinhardt [Mon, 2 Feb 2004 23:55:35 +0000 (15:55 -0800)]
Change "Foo& foo" declarations to "Foo &foo".
This primarily to be internally consistent (sometimes we used one,
sometimes the other, even within the same line of code!).
I picked the latter to be symmetric with "Foo *foo".

base/cprintf_formats.hh:
base/range.hh:
base/refcnt.hh:
base/res_list.hh:
base/statistics.hh:
base/str.hh:
cpu/exec_context.hh:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
sim/serialize.cc:
sim/serialize.hh:
sim/syscall_emul.hh:
    Change "Foo& foo" declarations to "Foo &foo".

--HG--
extra : convert_revision : ca1b0e85a578b539214bda3b8d61ac23792f2e87

20 years agoMore conversions of ref-counted parameters to references:
Steve Reinhardt [Mon, 2 Feb 2004 23:45:22 +0000 (15:45 -0800)]
More conversions of ref-counted parameters to references:
Statistics::NodePtr, StaticInstPtr, ethernet PacketPtr.

base/statistics.hh:
    Change NodePtr parameters to Nodeptr &.
cpu/exetrace.hh:
    Change StaticInstPtr parameters to StaticInstPtr &.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherdump.cc:
dev/etherdump.hh:
dev/etherint.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ethertap.hh:
    change PacketPtr parameters to PacketPtr &.

--HG--
extra : convert_revision : a778efdca33b0ec5beb76cf47db0e9e4728897ee

20 years agoMerge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
Erik Hallnor [Mon, 2 Feb 2004 19:11:59 +0000 (14:11 -0500)]
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5

--HG--
extra : convert_revision : 0cceed934a4f44c27c8293780fc927ef2c00869d

20 years agoChange the way the IIC way list is handled in the primary table.
Erik Hallnor [Mon, 2 Feb 2004 19:10:24 +0000 (14:10 -0500)]
Change the way the IIC way list is handled in the primary table.

--HG--
extra : convert_revision : 476f738d59446bdc43d1bd67950aac310b22a42c

20 years agoChange MemReqPtr parameters to references.
Steve Reinhardt [Mon, 2 Feb 2004 18:47:21 +0000 (10:47 -0800)]
Change MemReqPtr parameters to references.
This avoids incrementing and decrementing the MemReq
reference counters on every call and return.

arch/alpha/alpha_memory.cc:
arch/alpha/alpha_memory.hh:
cpu/exec_context.hh:
cpu/memtest/memtest.cc:
cpu/memtest/memtest.hh:
dev/alpha_console.cc:
dev/alpha_console.hh:
    Change MemReqPtr parameters to references.

--HG--
extra : convert_revision : 3ba18bdd9f996563988402576bfdd3430e1ab1e5